Skip to content

Commit 7be8fdf

Browse files
committed
Review comments and a few more macro-related corrections
Signed-off-by: mrgarris0n <gergely.karacsonyi@gmail.com>
1 parent 80f30c8 commit 7be8fdf

File tree

23 files changed

+52
-53
lines changed

23 files changed

+52
-53
lines changed

_includes/doc/admin-guide/options/flags.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The functionality of `no-header` is similar to the `no-parse` flag, but the `no-
3131
```
3232

3333
* `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.
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+
* `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.
3535
* `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.
3636
* `sanitize-utf8`: When this flag is used, syslog-ng OSE converts non-UTF-8 input to an escaped format, adhering to UTF-8.
3737
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.

_includes/doc/admin-guide/options/keep-hostname.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
*Description:* Enable or disable hostname rewriting.
77

88
- If enabled (**keep-hostname(yes)**), {{ site.product.short_name }} assumes that the
9-
incoming log message was sent by the host specified in the HOST
9+
incoming log message was sent by the host specified in the `HOST`
1010
field of the message.
1111

12-
- If disabled (**keep-hostname(no)**), {{ site.product.short_name }} rewrites the HOST
12+
- If disabled (**keep-hostname(no)**), {{ site.product.short_name }} rewrites the `HOST`
1313
field of the message, either to the IP address (if the use-dns()
1414
parameter is set to **no**), or to the hostname (if the use-dns()
1515
parameter is set to **yes** and the IP address can be resolved to a

_includes/doc/admin-guide/options/source-flags.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@
5555
5656
- *no-hostname*: Enable the no-hostname flag if the log message does
5757
not include the hostname of the sender host. That way {{ site.product.short_name }}
58-
assumes that the first part of the message header is PROGRAM
59-
instead of HOST. For example:
58+
assumes that the first part of the message header is `PROGRAM`
59+
instead of `HOST`. For example:
6060
6161
```config
6262
source s_dell {

_includes/doc/admin-guide/options/value-pairs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ formatted to JSON format, or directly used in a mongodb() destination.
1212

1313
The following example selects every available information about the log
1414
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
1717
sent the log message.
1818

1919
```config

doc/_admin-guide/020_The_concepts_of_syslog-ng/007_The_structure_of_a_log_message/000_BSD_syslog_messages.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ size when using UDP destinations.
3434

3535
## The PRI message part
3636

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
3838
legacy syslog (BSD-syslog) protocol.
3939

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
4141
the Facility and Severity of the message. Facility represents the part
4242
of the system sending the message, while Severity marks its importance.
4343

@@ -57,7 +57,7 @@ PRI field (that is, Priority value):
5757

5858
>\<133\> Feb 25 14:09:07 webserver syslogd: restart
5959
60-
In this example, \<133\> represents the PRI field (Priority value). The
60+
In this example, \<133\> represents the `PRI` field (Priority value). The
6161
syslog message\'s Facility value is 16, and the Severity value is 5.
6262

6363
Substituting the numerical values into the \<PRI\> = ( \<facility\> \*

doc/_admin-guide/020_The_concepts_of_syslog-ng/009_Structuring_macros/000_Specifying_data_types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function supports data types.
3333

3434
## Example: Using type-hinting
3535

36-
The following example stores the MESSAGE, PID, DATE, and `PROGRAM` fields
36+
The following example stores the `MESSAGE`, `PID`, `DATE`, and `PROGRAM` fields
3737
of a log message in a MongoDB database. The `DATE` and `PID` parts are
3838
stored as numbers instead of strings.
3939

doc/_admin-guide/040_Quick-start_guide/002_Configuring_syslog-ng_relays/001_How_relaying_works.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Depending on the settings of syslog-ng-relay, the following can happen.
4141
(syslog-ng-server) as well, so if syslog-ng-relay is configured
4242
properly, use the **keep-hostname(yes)** option on syslog-ng-server
4343
to retain the proper `HOST` field. Setting **keep-hostname(no)** on
44-
syslog-ng-server would result in {{ site.product.short_name }} rewriting the HOST
44+
syslog-ng-server would result in {{ site.product.short_name }} rewriting the `HOST`
4545
field to the address of the host that sent the message to
4646
syslog-ng-server, which is syslog-ng-relay in this case.
4747

doc/_admin-guide/060_Sources/150_snmptrap/000_snmptrap_options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Default value: .snmp. option.
3030
*Description:* The snmptrap() source automatically parses the traps into
3131
name-value pairs, so you can handle the content of the trap as a
3232
structured message. Consequently, you might not even need the
33-
MESSAGE part of the log message. If set-message-macro() is set to
33+
`MESSAGE` part of the log message. If set-message-macro() is set to
3434
**no**, {{ site.product.short_name }} leaves the `MESSAGE` part empty. If
3535
set-message-macro() is set to **yes**, {{ site.product.short_name }} generates a regular
3636
log message from the trap.

doc/_admin-guide/070_Destinations/240_SMTP/000_SMTP_options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ When using the header option, note the following points:
103103
- If you set the same custom header multiple times, only the first
104104
will be added to the email, other occurrences will be ignored.
105105

106-
- It is not possible to set the DATE, Return-Path, Original-Recipient,
106+
- It is not possible to set the `DATE`, Return-Path, Original-Recipient,
107107
Content-\*, MIME-\*, Resent-\*, Received headers.
108108

109109
{% include doc/admin-guide/options/hook.md %}

doc/_admin-guide/080_Log/030_Filters/002_Comparing_macro_values.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ ${PID} macro is not empty):
6868
filter f_pid {"${PID}" !=""};
6969
```
7070

71-
The following expression selects log messages that do not contain a PID.
71+
The following expression selects log messages that do not contain a `PID`.
7272
Also, it uses a template as the left argument of the operator and
7373
compares the values as strings:
7474

0 commit comments

Comments
 (0)