With the file input, I understand that sincedb traces if that file has been processed or not. If I have a new file, that never has being processed by logstash (so is not in sincedb).
My input config is like this:
input
{
file { start_position => "beginning" path => "/some/folder/*.log" add_field => { "client" => "myclient" "product" => "myprosuct" } }
}
If I move that file to the folder where logstash is "looking" (/some/folder/*.log), nothing happened, until I edit that file and change anything inside the file, that file is processed.. the same as it would be in sincedb.
How I know that is not in sincedb? because I execute:
$ ls -i file.log
96993940 /some/folder/file.log
Then:
$ grep 96993940 /var/lib/logstash/.sincedb*
and nothing...
Any clues whay this happen? I'm editing log files that each has 3GB... so it's painfully slow.