# Index output not generated to ElasticSearch

**URL:** <https://discuss.elastic.co/t/index-output-not-generated-to-elasticsearch/107429>\
**Category:** Logstash\
**Created:** [November 13, 2017, 4:10pm UTC](https://discuss.elastic.co/t/index-output-not-generated-to-elasticsearch/107429 "2017-11-13T16:10:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssasporta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ssasporta/32/13695_2.png) [@ssasporta](https://discuss.elastic.co/u/ssasporta)\
**Post date:** [November 13, 2017, 4:10pm UTC](https://discuss.elastic.co/t/index-output-not-generated-to-elasticsearch/107429/1 "2017-11-13T16:10:58Z")

</div>

In my filter I did:

```
mutate {
                     add_field => { "[@metadata][indexname]" => "CMServer" }
                     convert => { "cputimeinmillisec" => "float" }
                }

```

and my output is:

```
output {
         elasticsearch { 
              hosts => ["localhost:9200"]
              index => "logstash%{[@metadata][indexname]}%{+YYYY.MM.dd}"
         }
         stdout { codec => rubydebug }
}

```

Output is generated to stdout, **but nothing to elasticsearch.**

If I set the index as below, I can see the output in elasticsearch :

`index => "logstash%{[@metadata][beat]}%{+YYYY.MM.dd}"`

Any Idea?

\*I am running Version 6 Beta on Windows platform.

Thanks  
Sharon.

---

<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 14, 2017, 6:45am UTC](https://discuss.elastic.co/t/index-output-not-generated-to-elasticsearch/107429/2 "2017-11-14T06:45:05Z")

</div>

Elasticsearch index names can't contain uppercase characters. There should be Logstash log entries about this.

---

<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 12, 2017, 6:45am UTC](https://discuss.elastic.co/t/index-output-not-generated-to-elasticsearch/107429/3 "2017-12-12T06:45:15Z")

</div>

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