Skip to content

Commit ee5a108

Browse files
authored
multi-line-timeout() option added to documentation (#99)
The multi-line-timeout() option was totally missing from documentation of multi-line capable sources. Added a snippet to fix this.
2 parents 15f1c02 + 3936826 commit ee5a108

File tree

6 files changed

+38
-0
lines changed

6 files changed

+38
-0
lines changed

_data/external_links.yml

+5
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ sn-docker-log:
9292
url: https://www.syslog-ng.com/whitepaper/logging-in-docker-using-syslogng8132325/
9393
title: [ "Logging in Docker using syslog-ng" ]
9494

95+
sn-ml-timeout:
96+
id: sn-ml-timeout
97+
url: https://www.syslog-ng.com/community/b/blog/posts/multi-line-timeout-making-sure-your-last-multi-line-message-is-not-lost
98+
title: [ "Multi-line-timeout: making sure your last multi-line message is not lost"]
99+
95100
sn-ose:
96101
id: sn-ose
97102
url: https://syslog-ng.com/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
## multi-line-timeout()
2+
3+
| Type:| number|
4+
|Default:| N/A|
5+
6+
*Description:* Specifies the time (in seconds) {{ site.product.short_name }} waits without reading new data from the source, before the last (potentially partial) message is flushed and sent through the pipeline as a LogMessage.
7+
8+
Since the multi-line source detects the end of a message via finding the beginning of the subsequent message (indented or no-garbage/suffix mode), this option can be used to flush the last multi-line message in the file after a given time.
9+
10+
There is no default value, so it must be explicitly configured with a value higher than follow-freq(). We recommend it to be set to a multiple of follow-freq().
11+
12+
### Example: multi-line-timeout()
13+
14+
```config
15+
source s_multi {
16+
file("/some/folder/events"
17+
multi-line-mode("prefix-garbage")
18+
multi-line-prefix('^EVENT: ')
19+
multi-line-timeout(10)
20+
flags("no-parse")
21+
);
22+
}
23+
```
24+
25+
For more details see the blog post Multi-line-timeout: making sure your last multi-line message is not lost.

doc/_admin-guide/060_Sources/020_File/001_File_source_options.md

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ The file() driver has the following options:
3535

3636
{% include doc/admin-guide/options/multi-line-suffix.md %}
3737

38+
{% include doc/admin-guide/options/multi-line-timeout.md %}
39+
3840
{% include doc/admin-guide/options/pad-size.md %}
3941

4042
{% include doc/admin-guide/options/program-override.md %}

doc/_admin-guide/060_Sources/030_Wildcard-file/000_Wildcard-file_options.md

+2
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ available, set this option to **poll**.
124124

125125
{% include doc/admin-guide/options/multi-line-suffix.md %}
126126

127+
{% include doc/admin-guide/options/multi-line-timeout.md %}
128+
127129
{% include doc/admin-guide/options/pad-size.md %}
128130

129131
{% include doc/admin-guide/options/program-override.md %}

doc/_admin-guide/060_Sources/110_Pipe/000_Pipe_source_options.md

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ The pipe driver has the following options:
3131

3232
{% include doc/admin-guide/options/multi-line-suffix.md %}
3333

34+
{% include doc/admin-guide/options/multi-line-timeout.md %}
35+
3436
{% include doc/admin-guide/options/optional.md %}
3537

3638
{% include doc/admin-guide/options/pad-size.md %}

doc/_admin-guide/060_Sources/230_stdin/000_stdin_options.md

+2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ The stdin() driver has the following options:
3636

3737
{% include doc/admin-guide/options/multi-line-suffix.md %}
3838

39+
{% include doc/admin-guide/options/multi-line-timeout.md %}
40+
3941
{% include doc/admin-guide/options/pad-size.md %}
4042

4143
{% include doc/admin-guide/options/program-override.md %}

0 commit comments

Comments
 (0)