-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
4.6 destination flags #54
base: main
Are you sure you want to change the base?
Changes from 2 commits
62d80ea
0c296d3
c9dd9bd
a43c7a5
34bd8f7
037189a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,14 +6,31 @@ | |
|
||
| | | | ||
| -------- | ------------------------------ | | ||
| Type: | no-multi-line, syslog-protocol | | ||
| Type: | `ignore-errors`, `no-multi-line`, `no-seqnum-all`, `seqnum-all`, `syslog-protocol`, `threaded` | | ||
| Default: | empty set | | ||
|
||
*Description:* Flags influence the behavior of the destination driver. | ||
|
||
- `ignore-errors`: <!-- FIXME --> | ||
- `no-multi-line`: The `no-multi-line` flag disables line-breaking in the messages: the entire message is converted to a single line. | ||
- `no-seqnum-all`: <!-- FIXME --> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The @bazsi Do I understand this right? I feel like this should return 0 seqnum even for locally generated messages, but the flag does not clear the Do we even need this flag? The Also, why do we need the I feel like there are 3 cases:
The first is the default behavior, which does not necessarily need an explicit flag. I don't see the point of having any other SEQNUM related flags. |
||
- `seqnum-all`: Available in {{% param "product.abbrev" %}} version 4.6 and later. By default, {{% param "product.abbrev" %}} follows the logic of the RFC5424 `meta.sequenceId` structured data element: it adds a sequence number to local messages, forwarded messages retain their original sequenceId. | ||
|
||
*Description:* Flags influence the behavior of the destination driver. | ||
The `seqnum-all` flag adds a sequence number to every message sent to the destination, not just local messages. This also changes the behavior of the `${SEQNUM}` macro. For example: | ||
|
||
```shell | ||
destination { syslog("127.0.0.1" port(2001) flags(seqnum-all)); }; | ||
``` | ||
|
||
- *no-multi-line*: The `no-multi-line` flag disables line-breaking in the messages: the entire message is converted to a single line. | ||
The output messages have increasing sequence numbers: | ||
|
||
- *syslog-protocol*: The `syslog-protocol` flag instructs the driver to format the messages according to the new IETF syslog protocol standard (RFC5424), but without the frame header. If this flag is enabled, macros used for the message have effect only for the text of the message, the message header is formatted to the new standard. Note that this flag is not needed for the `syslog` driver, and that the `syslog` driver automatically adds the frame header to the messages. | ||
```shell | ||
<13>1 2023-12-09T21:51:30+00:00 localhost sdff - - [meta sequenceId="1"] f sdf fsd | ||
<13>1 2023-12-09T21:51:32+00:00 localhost sdff - - [meta sequenceId="2"] f sdf fsd | ||
<13>1 2023-12-09T21:51:32+00:00 localhost sdff - - [meta sequenceId="3"] f sdf fsd | ||
<13>1 2023-12-09T21:51:32+00:00 localhost sdff - - [meta sequenceId="4"] f sdf fsd | ||
<13>1 2023-12-09T21:51:32+00:00 localhost sdff - - [meta sequenceId="5"] f sdf fsd | ||
``` | ||
|
||
- `syslog-protocol`: The `syslog-protocol` flag instructs the driver to format the messages according to the new IETF syslog protocol standard (RFC5424), but without the frame header. If this flag is enabled, macros used for the message have effect only for the text of the message, the message header is formatted to the new standard. Note that this flag is not needed for the `syslog` driver, and that the `syslog` driver automatically adds the frame header to the messages. | ||
- `threaded`: <!-- FIXME --> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
ignore-error
flag silently drops messages which have not been successfully sent out because of unrecoverable low-level errors (e.g. I/O errors).