How to stop logstash after first process

Hi,

I have a logstash conf whose input is elasticsearch and also output is to another elasticserach. I would like to read the input only once and stop the process so that it will not reinsert the same data to output elastic.

For example
10 records in input elasticsearch
and output this 10 to another elasticsearch.
and stop the process.

But in my case its keep on inserting the same 10 records again and again after some interval(1 sec).

Is there any param to stop input after first read ?

Help very much appreciated.
Thanks

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