I've got a scripted input that is giving me a bit of a headache. My index always be one line behind. For example:
My log looks like this:
2013-03-27 05:30:39 - Event 1
2013-03-27 09:43:29 - Event 2
2013-03-27 10:04:40 - Event 3
But my index only shows 2 events.
2013-03-27 05:30:39 - Event 1
2013-03-27 09:43:29 - Event 2
If another line is added to the output:
2013-03-27 05:30:39 - Event 1
2013-03-27 09:43:29 - Event 2
2013-03-27 10:04:40 - Event 3
2013-03-27 12:24:40 - Event 4
Then my index shows 3 events:
2013-03-27 05:30:39 - Event 1
2013-03-27 09:43:29 - Event 2
2013-03-27 10:04:40 - Event 3
It's like it's one-step behind all the time. I've got the script running in bash, and it shows the events correctly. I also don't think this is a multi-line issue, as each event is added as a separate item in the index correctly, it's not merging the lines.
I also added \n\r to the end of each result so it looked like:
2013-03-27 05:30:39 - Event 1
2013-03-27 09:43:29 - Event 2
2013-03-27 10:04:40 - Event 3
But the index was still one line behind, only showing events 1 and 2 until event 4 came in.
Is there anything I can do in order to debug the input from the script to the index process?
... View more