# Event attribute not resolved in elasticsearh output

**URL:** <https://discuss.elastic.co/t/event-attribute-not-resolved-in-elasticsearh-output/259472>\
**Category:** Logstash\
**Created:** [December 23, 2020, 10:33am UTC](https://discuss.elastic.co/t/event-attribute-not-resolved-in-elasticsearh-output/259472 "2020-12-23T10:33:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KarlosA](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/karlosa/32/81306_2.png) [@KarlosA](https://discuss.elastic.co/u/KarlosA)\
**Post date:** [December 23, 2020, 10:33am UTC](https://discuss.elastic.co/t/event-attribute-not-resolved-in-elasticsearh-output/259472/1 "2020-12-23T10:33:02Z")

</div>

Hello,  
I'm using helm [chart](https://github.com/elastic/helm-charts/tree/master/logstash) with image:

```auto
image: "docker.elastic.co/logstash/logstash-oss"
imageTag: "7.10.0"

```

I provide the following configuration in values.yml:

```auto
logstashPipeline:
  logstash.conf: |
    input {
      beats {
          port => 5044
          include_codec_tag => false
      }
    }
    filter {
       // some working filter rules here
    }
    output {
      stdout {
        codec => rubydebug
      }
      elasticsearch {
        hosts => ["http://elasticsearch-master:9200"]
        index => "cdn-logstash-%{[country]}-%{+YYYY.MM.dd}"
        manage_template => false
        ilm_enabled => false
        ssl => false
      }
    }

```

But, the event field variable in index name seems not to be resolved:

```auto
> curl -X GET ingress.elastic.io/_cat/indices

yellow open cdn-logstash-%{[country]}-2020.12.23 VEyPS-OlTQ-6hKCExWl43Q 1 1 48 0 80.9kb 80.9kb

```

Should these vars be resolved using the above format ?  
It seems the context is lost and variable format `%{}` is ignored.

Thanks for any help

---

<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:** [January 20, 2021, 10:33am UTC](https://discuss.elastic.co/t/event-attribute-not-resolved-in-elasticsearh-output/259472/2 "2021-01-20T10:33:15Z")

</div>

Closed on January 20, 2021, 10:33am UTC

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