# Logstash query to text output TOO SLOW

**URL:** <https://discuss.elastic.co/t/logstash-query-to-text-output-too-slow/66246>\
**Category:** Logstash\
**Created:** [November 16, 2016, 12:09pm UTC](https://discuss.elastic.co/t/logstash-query-to-text-output-too-slow/66246 "2016-11-16T12:09:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![billy6](https://avatars.discourse-cdn.com/v4/letter/b/cab0a1/32.png) [@billy6](https://discuss.elastic.co/u/billy6)\
**Post date:** [November 16, 2016, 12:09pm UTC](https://discuss.elastic.co/t/logstash-query-to-text-output-too-slow/66246/1 "2016-11-16T12:09:46Z")

</div>

Hello,  
I have this logstash configuration \>

```
input{
elasticsearch {
        hosts=> ["HOST_A"]
        index => "logstash-syslog-2016.11.17"
        query => '{"filter" : {
            "or" : [
                {
                    "term" : { "host.raw" : "HOST1" }
                },
                {
                    "term" : { "host.raw" : "HOST2" }
                },
                 {
                    "term" : { "host.raw" : "HOST3" }
                }

            ]
        }}'

        }
        }

output {
   file{
         path => "/etc/elk/logout/SR_17_11.log"
        }
}

```

But it takes too much time.  
Is there a way to do that query in a faster way?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [November 21, 2016, 6:39am UTC](https://discuss.elastic.co/t/logstash-query-to-text-output-too-slow/66246/2 "2016-11-21T06:39:11Z")

</div>

What kind of throughput are you seeing?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 19, 2016, 6:39am UTC](https://discuss.elastic.co/t/logstash-query-to-text-output-too-slow/66246/3 "2016-12-19T06:39:12Z")

</div>

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