# Query error with .keywords

**URL:** <https://discuss.elastic.co/t/query-error-with-keywords/289587>\
**Category:** Logstash\
**Created:** [November 18, 2021, 12:41pm UTC](https://discuss.elastic.co/t/query-error-with-keywords/289587 "2021-11-18T12:41:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rodri.gz](https://avatars.discourse-cdn.com/v4/letter/r/aca169/32.png) [@rodri.gz](https://discuss.elastic.co/u/rodri.gz)\
**Post date:** [November 18, 2021, 12:41pm UTC](https://discuss.elastic.co/t/query-error-with-keywords/289587/1 "2021-11-18T12:41:42Z")

</div>

Hello!

I am trying to enrich my index with logstash's elastic filter.

the problem is that it analyzes instead of taking the concrete value.

How can I query to use the .keyword?

im want something like this:

```auto

  elasticsearch {
    hosts => "http://xxxxxx:9200"
    index => "prueba-agentes"
    query => "alias.keyword:%{[alias.keyword]}"
    fields => {
      "estado_agente" => "estado_agente_enriquecido"
    }

  elasticsearch {
    hosts => "http://xxxxxx:9200"
    index => "prueba-agentes"
    query => "alias.keyword:%{[alias][keyword]}"
    fields => {
      "estado_agente" => "estado_agente_enriquecido"
    }

```

Thanks in advanced!

---

<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 16, 2021, 12:41pm UTC](https://discuss.elastic.co/t/query-error-with-keywords/289587/2 "2021-12-16T12:41:54Z")

</div>

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