How to limit data Print When I use ES as input

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.

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