Hi guys, I am a newbie in logstash. I am trying to forward all my log files to elasticsearch using logstash. The problem is, the previously existing log files are huge and I do not need them. Is there a way to only input the newly generated log files?
To make it clear, I did tried to set the start_position => "end", and sincedb_path => "/dev/null". It did not work. Hope you guys can help me figure it out.
First of all, don't set sincedb_path to /dev/null. Logstash does a pretty good job at keeping track of where it left off. Don't sabotage that.
With start_position => "end" Logstash should under no circumstances process a file from the beginning. Please show your configuration. Also, increasing logging verbosity by starting Logstash with --verbose or --debug should give hints about what Logstash is doing.
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.