mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
Add ignore_older option and related tip.
Add option to handle example file even if it is older than 86440s. Fixes #4714
This commit is contained in:
parent
02f5b54c46
commit
ee87fcfa9b
1 changed files with 2 additions and 0 deletions
2
docs/static/advanced-pipeline.asciidoc
vendored
2
docs/static/advanced-pipeline.asciidoc
vendored
|
@ -59,6 +59,7 @@ input {
|
|||
file {
|
||||
path => "/path/to/logstash-tutorial.log"
|
||||
start_position => beginning <1>
|
||||
ignore_older => 0 <2>
|
||||
}
|
||||
}
|
||||
--------------------------------------------------------------------------------
|
||||
|
@ -66,6 +67,7 @@ input {
|
|||
<1> The default behavior of the file input plugin is to monitor a file for new information, in a manner similar to the
|
||||
UNIX `tail -f` command. To change this default behavior and process the entire file, we need to specify the position
|
||||
where Logstash starts processing the file.
|
||||
<2> The default behavior of the file input plugin is to ignore files whose last modification is greater than 86400s. To change this default behavior and process the tutorial file (which date can be much older than a day), we need to specify to not ignore old files.
|
||||
|
||||
Replace `/path/to/` with the actual path to the location of `logstash-tutorial.log` in your file system.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue