I am using ES as an input tool. I am trying to output data to stdout, but I want to see only about 5 data as a test. But until I stop logstash, logstash continues to load data. How can I control the data for as many cases as I want?
Change your elasticsearch query and change the
size in the query to only return five documents.