Hi, I have been trying to use the logstash file input but it is not reading the file, the sincedb file is empty, I have tried all options available, mentioned in all similar threads. Setting sincedb_path to null, tried changing mode from tail to read, the start_position = beginning, none seem to working.
input {
file {
path => "/home/vagrant/sample.log"
start_position => "beginning"
# sincedb_path => "/dev/null"
ignore_older => 0
}
}
output {
stdout { codec => rubydebug }
elasticsearch {
hosts => [ "192.168.10.20"]
user => "elastic"
index => "test-logs-%{+yyyy.MM.dd}"
}
}
I only see this in the logstash-plain.log
[2018-10-12T09:55:06,168][INFO ][filewatch.observingtail ] START, creating Discoverer, Watch with file and sincedb collection
s