I have a very basic pipeline.config:
input {
file {
path => ["/var/log/mylog.log"]
start_position => "beginning"
}
}
filter {
}
output {
elasticsearch {
hosts => ["localhost:9200"]
index => "test"
}
}
lets assume in my /var/log/mylog.log there are below records
line1
line2
when i run logstash -f /etc/logstash/pipeline.config everything is okey but if i added line3 to /var/log/mylog.log all lines repeated to my index and i got repeated data..what is wrong?