You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _includes/doc/admin-guide/options/flags.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,8 +9,9 @@
9
9
*`expect-hostname`: When this flag is used syslog-ng OSE expects a log message that contains a hostname and parses the message accordingly. This is the default behavior for TCP sources. Note that pipe sources use the `no-hostname` flag by default.
10
10
*`guess-timezone`: This flag allows the source to attempt to guess the timezone of the message if this information is not available in the message. Works when the incoming message stream is close to real time, and the timezone information is missing from the timestamp.
11
11
*`kernel`: This flag sets the source default to the `LOG_KERN | LOG_NOTICE` priority if not specified otherwise.
12
-
*`no-header`: This flag triggers syslog-ng OSE to parse only the PRI field of incoming messages, and put the rest of the message contents into `$MSG`.
13
-
The functionality of `no-header` is similar to the `no-parse` flag, but the `no-header` flag does not skip the `PRI` field. The `no-header` flag signals syslog-ng OSE that the syslog header is not present (or does not adhere to the conventions / RFCs), so the entire message (except from the PRI field) is put into `$MSG`.
12
+
*`no-header`: This flag triggers syslog-ng OSE to parse only the `PRI` field of incoming messages, and put the rest of the message contents into `MSG`.
13
+
The functionality of `no-header` is similar to the `no-parse` flag, but the `no-header` flag does not skip the `PRI` field. The `no-header` flag signals syslog-ng OSE that the syslog header is not present (or does not adhere to the conventions / RFCs), so the entire message (except from the `PRI` field) is put into `MSG`.
14
+
14
15
```config
15
16
parser p_syslog {
16
17
syslog-parser(
@@ -19,7 +20,7 @@ The functionality of `no-header` is similar to the `no-parse` flag, but the `no-
19
20
};
20
21
```
21
22
22
-
*`no-hostname`: Enable this flag if the log message does not include the hostname of the sender host. This results in syslog-ng OSE assuming that the first part of the message header is `${PROGRAM}` instead of `${HOST}`.
23
+
*`no-hostname`: Enable this flag if the log message does not include the hostname of the sender host. This results in syslog-ng OSE assuming that the first part of the message header is `PROGRAM` instead of `HOST`.
23
24
```config
24
25
source s_dell {
25
26
network(
@@ -30,7 +31,7 @@ The functionality of `no-header` is similar to the `no-parse` flag, but the `no-
30
31
```
31
32
32
33
*`no-multi-line`: This flag disables line-breaking in the messages and converts the entire message into a single line. Note that this happens only if the underlying transport method supports multi-line messages. Currently only the `file()` and `pipe()` drivers support multi-line messages.
33
-
*`no-parse`: By default, syslog-ng OSE parses incoming messages as syslog messages. The `no-parse` flag disables syslog message parsing and processes the complete line as the message part of a syslog message. The syslog-ng OSE application generates a new syslog header (timestamp, host, and so on) automatically and puts the entire incoming message into the `MESSAGE` part of the syslog message (available using the `${MESSAGE}` macro). This flag is useful for parsing messages that do not complying to the syslog format.
34
+
*`no-parse`: By default, syslog-ng OSE parses incoming messages as syslog messages. The `no-parse` flag disables syslog message parsing and processes the complete line as the message part of a syslog message. The syslog-ng OSE application generates a new syslog header (timestamp, host, and so on) automatically and puts the entire incoming message into the `MESSAGE` part of the syslog message (available using the ${MESSAGE} macro). This flag is useful for parsing messages that do not complying to the syslog format.
34
35
*`dont-store-legacy-msghdr`: During default operation, syslog-ng OSE stores the original incoming header of the log message. This is useful if the original format of a non-syslog-compliant message must be retained. The syslog-ng OSE application automatically corrects minor header errors, for example, it adds a whitespace before "msg" in the following message: `Jan 22 10:06:11 host program:msg`. If storage of the original header of the message is not needed, enable the `dont-store-legacy-msghdr` flag.
35
36
*`sanitize-utf8`: When this flag is used, syslog-ng OSE converts non-UTF-8 input to an escaped format, adhering to UTF-8.
36
37
Prior to version 4.6, this only worked with parsing RFC3164 messages. In syslog-ng OSE 4.6 and later versions, RFC5424 and raw messages can also be parsed using this flag.
Copy file name to clipboardExpand all lines: _includes/doc/admin-guide/options/value-pairs.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,8 +12,8 @@ formatted to JSON format, or directly used in a mongodb() destination.
12
12
13
13
The following example selects every available information about the log
14
14
message, except for the date-related macros (R\_\* and S\_\*), selects
15
-
the .SDATA.meta.sequenceId macro, and defines a new value-pair called
16
-
MSGHDR that contains the program name and PID of the application that
15
+
the ${.SDATA.meta.sequenceId} macro, and defines a new value-pair called
16
+
`MSGHDR` that contains the program name and `PID` of the application that
17
17
sent the log message.
18
18
19
19
```config
@@ -55,7 +55,7 @@ are evaluated in the following order:
55
55
56
56
*Description:* This option removes the specified macros from the selection. Use it to remove unneeded macros selected using the scope() parameter.
57
57
58
-
For example, the following example removes the SDATA macros from the selection.
58
+
For example, the following example removes the `SDATA` macros from the selection.
59
59
60
60
```config
61
61
value-pairs(
@@ -200,7 +200,7 @@ The rekey() option can be used with the format-json template-function as well, u
200
200
201
201
-*rfc5424*: The macros that correspond to the RFC-5424 (IETF-syslog) message format: ${FACILITY}, ${PRIORITY}, ${HOST}, ${PROGRAM}, ${PID}, ${MESSAGE}, ${MSGID}, ${R_DATE}, and the metadata from the structured-data (SDATA) part of RFC-5424 formatted messages, that is, every macro that starts with .SDATA..
202
202
203
-
The rfc5424 group also has the following alias: syslog-proto. Note that the value of ${R_DATE} will be listed under the DATE key. The rfc5424 group does not contain any metadata about the message, only information that was present in the original message. To include the most commonly used metadata (for example, the ${SOURCEIP} macro), use the selected-macros group instead.
203
+
The rfc5424 group also has the following alias: syslog-proto. Note that the value of ${R_DATE} will be listed under the `DATE` key. The rfc5424 group does not contain any metadata about the message, only information that was present in the original message. To include the most commonly used metadata (for example, the ${SOURCEIP} macro), use the selected-macros group instead.
204
204
205
205
-*all-macros*: Include every hard macro. This group is mainly useful for debugging, as it contains redundant information (for example, the date-related macros include the date-related information several times in various formats).
Copy file name to clipboardExpand all lines: doc/_admin-guide/020_The_concepts_of_syslog-ng/007_The_structure_of_a_log_message/000_BSD_syslog_messages.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,10 +34,10 @@ size when using UDP destinations.
34
34
35
35
## The PRI message part
36
36
37
-
This section describes the PRI message part of a syslog message, according to the
37
+
This section describes the `PRI` message part of a syslog message, according to the
38
38
legacy syslog (BSD-syslog) protocol.
39
39
40
-
The PRI part of the syslog message (known as Priority value) represents
40
+
The `PRI` part of the syslog message (known as Priority value) represents
41
41
the Facility and Severity of the message. Facility represents the part
42
42
of the system sending the message, while Severity marks its importance.
43
43
@@ -57,7 +57,7 @@ PRI field (that is, Priority value):
57
57
58
58
>\<133\> Feb 25 14:09:07 webserver syslogd: restart
59
59
60
-
In this example, \<133\> represents the PRI field (Priority value). The
60
+
In this example, \<133\> represents the `PRI` field (Priority value). The
61
61
syslog message\'s Facility value is 16, and the Severity value is 5.
62
62
63
63
Substituting the numerical values into the \<PRI\> = ( \<facility\>\*
@@ -96,9 +96,9 @@ format. For details, see the ts-format() option in Global options.
96
96
97
97
## The MSG message part
98
98
99
-
This section describes the MSG message part of a syslog message, according to
99
+
This section describes the `MSG` message part of a syslog message, according to
100
100
the legacy syslog (BSD-syslog) protocol.
101
101
102
-
The MSG part contains the name of the program or process that generated
103
-
the message, and the text of the message itself. The MSG part is usually
102
+
The `MSG` part contains the name of the program or process that generated
103
+
the message, and the text of the message itself. The `MSG` part is usually
104
104
in the following format: *program\[pid\]: message text*.
Copy file name to clipboardExpand all lines: doc/_admin-guide/020_The_concepts_of_syslog-ng/007_The_structure_of_a_log_message/001_IETF_syslog_messages.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ The message corresponds to the following format:
0 commit comments