Logstash never stops


When I am reading a file with logstash, the logstash reads the file once and then goes back again to the top to read it again.

I am using the below config file:-

input {
file {
path => "/apps/elk/elkscripts/loadfile/file.log"
sincedb_path => '/opt/logstash/log.db'
sincedb_write_interval => 0
type => 'log'

filter {

##filter ocnditions


output {

                                                                    elasticsearch  {
                                                                    hosts => '<IP>'
                                                                    index => 'prod-log-%{+YYYY.MM.dd}'
                                                                    stdout {
                                                                                    codec => rubydebug



Any ideas are welcome.

I just tried a test and it seems as soon as i change the index name to something static like 'log' then it seems to stop.


This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.