Many questions have been seen here in Stackoverflow on the similar subject like this question. But none of them helped to reset Logstash. I've used:
input {
file {
path => ["/var/log/nginx/access.log"]
start_position => "beginning"
}
}
I've read that .sincedb
can be set. But as I don't have these files I think it is unnecessary to set a file path for that.
Is there any other place that I could easily reset logstash? Why such a simple method is so hard to do?
EDIT1:
I've also tried sincedb_path
with /dev/null
as this question has been said. Again it read from today not from the beginning of log file.