Using stdin to ingest multiple files at once

I have added stdin { } into the input of my logstash config file. When running it I've been trying to run it with one config file, one call but for 6 files since it is all being ingested into one index. How can I do this in a single call? I want to run each file once only. So:

/logstash_run_path/logstash -f /logstash_config_file_path/logstash_config_file < /file__path/file1

How can I add file2 , file3, file4, etc. to this call?

cat file1 file2 file3 | /logstash_run_path/logstash -f /logstash_config_file_path/logstash_config_file

Thank you this worked!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.