hi, you can do as follow:
input {
file {
type => "file1"
...
}
file {
type> "file2"
....
}
}
filter {
if [type] == "file1" {
.. do something
}
if [type] == "file2" {
.. do something
}
}
output {
if [type] == "file1" {
write to elk or someting else ..
}
}
Your Logstash doesn't read log files at all so the question of how to make it read multiple log files doesn't make sense. If you're using Filebeat to read your log files then that's the configuration you need to adjust.
Well, that's a completely different configuration. But yes, that's a good way of reading multiple log files. If they shouldn't be tagged differently you could list multiple filenames or patterns in the same file input.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.