Hello,
This is the SAMPLE config file that I'm using.
input {
file {
path => "/my/path/*/logfile.log"
start_position => beginning
ignore_older => 0
sincedb_path => "/my/sincedb/path/demo.db"
codec => plain { charset => "UTF-8" }
}
}
filter {
if "xyz" in [message]
{
mutate
{ add_tag => ["TAG_ADDED"] }
}
grok
{
match => { "path" => "/my/path/%{WORD:cluster}/%{DATA}" }
overwrite => [ "cluster" ]
}
}
output {
file {
path => "/my/output/path/demo.txt"
}
stdout { codec => rubydebug { metadata => true } }
}
But, instead of using path => "/my/path/*/logfile.log"
I want to use text file (say, abc.txt).
and this text file (abc.txt) will contain a list of log file paths like below
path1/abc/a.log
path2/def/b.log
path3/ghi/c.log
...
....
etc.
How can I do that, please help.