I am using stdin plugin to load a file of about 2500 events, parse it and then write it to elasticsearch, so what I have is:
$ cat file | ./bin/logstash -f config/myconfig.conf
but what I have is that only about 600 events only are written to elasticsearch.
Afetr that, when I run the command:
$ ./bin/logstash -f config/myconfig.conf
the remaining part of the file is then handled.
do I have a problem with buffering? Can anyone help or expalin what is the problem?