I am using Logstash Forwarder to process tomcat logs.
My logstash forwarder config file contains :
"files": [
{
"paths": [ "/usr/share/tomcat/impression_logs/impressions.log" ]
}]
I am using log rotation so it will archive log file to different folder after some time or when file size exceeds 1MB.
If logstash-forwarder is down for few minutes logs are getting archived and it does not process those logs.
I am using monit to monitor logstash forwarder, but still there is chance of losing logs.
Is there a way to achieve fault tolerance with logstash forwarder?