As part of load testing, I have a couple of premade log files that simulate different scenarios.
I'm trying to use Logstash to send the content of 1 file, and resend it again in a loop every time it reaches EOF.
Is there a way for me to do that?
As part of load testing, I have a couple of premade log files that simulate different scenarios.
I'm trying to use Logstash to send the content of 1 file, and resend it again in a loop every time it reaches EOF.
Is there a way for me to do that?
Copyright © 2021 Jogjafile Inc.
better to use an input plugin, called
file, so with this, Logstash will continuously read the log file from the beginning every time it reaches the end!update
by setting
file_completed_actionto "logstash_forward",your file will be sent again to Logstash when it reaches the end!