Logstash Input plugin for Elasticsearch to query once based on scedule instead of scrolling

As visible in the screenshot for 1-minute duration, the data is queried multiple times. I wish to disable this and for a schedule "* * * * *" collect data only once in 1 minute. My current config for logstash input plugin is as follows:

input {
    elasticsearch {
        hosts => "http://localhost:9200"
        index => "*-prod-*"
        docinfo => true
        query => '{
            "query": {
                "bool": {
                    "filter": {
                        "range": {
                            "@timestamp": {
                                "gte": "now-1m"
                            }
                        }
                    }
                }
            }
        }'
        schedule => "* * * * *" 
    }
}

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