Syslog Server Reference
Refer to the following configuration information for the Syslog Server driver.
Parameter | Description |
---|---|
Browse devices supported: | No |
Browse tags supported: | No |
Driver Settings: |
|
Tag Settings: |
|
Tag Types: |
|
Pattern matching string fields:
- If this wildcard is changed from default "*", all string match settings must be updated to reflect the active wildcard.
- The wildcard cannot be escaped. It must not appear anywhere in the string as a literal character.
String Match Types:
- IsExact ("value")
- BeginsWith ("prefix*")
- EndsWith ("*suffix")
- Contains ("*middle*")
- IsEmpty ("")
- IsAny ("*")
Structured Data Matching (two exact key matches, delimited by Wildcard, followed by a String Match):
- IsAny ("*")
- IsEmpty ("")
- HasField ("key")
- HasParam ("key1*key2")
- FieldIsEmpty ("key*")
- ParamIsEmpty ("key1*key2*")
String Matching applies to the value of a data match ("key1*key2*")
- ValueIsExact ("key1*key2*value")
- ValueBeginsWith ("key1*key2*prefix*")
- ValueEndsWith ("key1*key2**suffix")
- ValueContains ("key1*key2**middle*")
- ValueIsEmpty ("key1*key2*")
- ValueIsAny ("key1*key2**") <- equivalent to HasParam
Address matching requires a valid CIDR block.
- 172.22.0.1/16 -> matches client IPs starting with "172.22"
Address matches starting with a wildcard are negated.
- *172.22.0.1/16 -> matches client IPs which do not start with "172.22"
Note that any unmasked bits in the specified CIDR range have no effect.
- 172.22.0.1/16 == 172.22.99.99/16
Custom publish payloads.
Symbol | Definition | Type |
---|---|---|
$ | A special character that indicates that a variable character will follow. A variable represents some dynamic string value. Supported variables are defined below. | - |
$F | Facility | uint8 (<=23) OR keyword string |
$S | Severity | uint8 (<=7) OR keyword string |
$P | Priority (Facility * 8 + Severity) | uint8 (<=191) |
$T | Timestamp | RFC3339 string |
$H | Hostname | string |
$A | Appname | string |
$X | ProcessID | string |
$I | MessageID | string |
$D | Structured Data | string OR json object (string:string:string, rfc5424 only) |
$M | Message | string |
$V | Version | uint16 (>=1 && <=999, rfc5424 only) |
$C | Client | string (IP from connection, not log) |
String Format Directive Notes:
- To use a special character in its literal form, enter symbol twice ($$ -> $) Example "$$$H.$A" -> "$hostABC.appXYZ"
- A special character must be followed by either itself, or one of the supported characters in the table above. Any other condition will result in an error. Example1 "$H.$A$Z" -> error Example2 "$H.$A$" -> error Example3 "$H.$A$#" -> error