# Logstash: problem for querying elasticsearch

**URL:** <https://discuss.elastic.co/t/logstash-problem-for-querying-elasticsearch/52977>\
**Category:** Logstash\
**Created:** [June 16, 2016, 10:47am UTC](https://discuss.elastic.co/t/logstash-problem-for-querying-elasticsearch/52977 "2016-06-16T10:47:58Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Alaska](https://avatars.discourse-cdn.com/v4/letter/a/3bc359/32.png) [@Alaska](https://discuss.elastic.co/u/Alaska)\
**Post date:** [June 16, 2016, 3:42pm UTC](https://discuss.elastic.co/t/logstash-problem-for-querying-elasticsearch/52977/9 "2016-06-16T15:42:35Z")

</div>

See here:

> [@Elasticsearch filter no longer working in 2.3.1](https://discuss.elastic.co/t/elasticsearch-filter-no-longer-working-in-2-3-1/47908/2):
>
> And now I am having another similar problem with translate plugin. I have been using translate filter using logstash 2.3.1 and it was working fine. like translate { field =\> "xxxx" dictionary\_path =\> "/yyyy/zzzz.csv" destination =\> "wwww" } The configuration works in logstash 2.3.1, but when running with logstash 2.2.0, I got this error The error reported is: LogStash::Filters::Translate: Bad Syntax in dictionary file /yyyy/zzzz.csv Combining this issue and the issue above, I cannot run…

Seems the documentation on [Elasticsearch filter plugin | Logstash Reference [8.11] | Elastic](https://www.elastic.co/guide/en/logstash/current/plugins-filters-elasticsearch.html) is wrong still. I did what was posted and changed

fields =\> ["field1", "field2"]

to

fields =\> [["field1", "field2"]]

and it worked for me as well. Was running into the same error as you with Logstash 2.3.2.

---

_[View the full topic](https://discuss.elastic.co/t/logstash-problem-for-querying-elasticsearch/52977)._
