# Elasticsearch Input Filter Returns %{message}

**URL:** <https://discuss.elastic.co/t/elasticsearch-input-filter-returns-message/74934>\
**Category:** Logstash\
**Created:** [February 13, 2017, 10:11pm UTC](https://discuss.elastic.co/t/elasticsearch-input-filter-returns-message/74934 "2017-02-13T22:11:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ben-10](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ben-10/32/12306_2.png) [@ben-10](https://discuss.elastic.co/u/ben-10)\
**Post date:** [February 13, 2017, 10:11pm UTC](https://discuss.elastic.co/t/elasticsearch-input-filter-returns-message/74934/1 "2017-02-13T22:11:40Z")

</div>

Attempting to use the Elasticsearch input plugin on Logstash 5.2.0, but with the following config:

```
input {
   elasticsearch {
      hosts => "esearch-cn1:9200"
      index => "logstash_sa_2017.02.06"
      query => '{ "query": { "term": { "parsed_xml.UserID": "testuser" } } }'
   }
}
output {
   std{}
}

```

With or without the query, the data returned looks like:

```
2017-02-06T11:37:50.000Z logaggp %{message}
2017-02-06T11:39:50.000Z logaggp %{message}
2017-02-06T12:19:52.000Z logaggp %{message}

```

Before I go any deeper with query or the final out, what am I missing to get the actual data?

---

<div class="post-metadata">

**Author:** ![msimos](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@msimos](https://discuss.elastic.co/u/msimos)\
**Post date:** [February 13, 2017, 11:29pm UTC](https://discuss.elastic.co/t/elasticsearch-input-filter-returns-message/74934/2 "2017-02-13T23:29:33Z")

</div>

Hi,

Try using:

output {  
stdout { codec =\> rubydebug }  
}

You can start off by using a match\_all query and see if that works to be sure you're getting some data.

---

<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:** [March 13, 2017, 11:29pm UTC](https://discuss.elastic.co/t/elasticsearch-input-filter-returns-message/74934/3 "2017-03-13T23:29:34Z")

</div>

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