# Elastic not indexing correctly. Showing "%{\[@metadata\]\[beat\]}-

**URL:** <https://discuss.elastic.co/t/elastic-not-indexing-correctly-showing-metadata-beat/55653>\
**Category:** Beats\
**Created:** [July 15, 2016, 8:23pm UTC](https://discuss.elastic.co/t/elastic-not-indexing-correctly-showing-metadata-beat/55653 "2016-07-15T20:23:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pip0](https://avatars.discourse-cdn.com/v4/letter/p/7feea3/32.png) [@pip0](https://discuss.elastic.co/u/pip0)\
**Post date:** [July 15, 2016, 8:23pm UTC](https://discuss.elastic.co/t/elastic-not-indexing-correctly-showing-metadata-beat/55653/1 "2016-07-15T20:23:35Z")

</div>

My elastic node is not indexing my filebeat correctly. The index is showing up as "%{[@metadata][beat]}-

I have attached all my configs for further investigation. Any help is appreciate it!

Input  
[http://pastebin.com/r9qz3cjX](http://pastebin.com/r9qz3cjX)

filter  
[http://pastebin.com/2bPvq2cX](http://pastebin.com/2bPvq2cX)

output  
[http://pastebin.com/mnSSj8Mj](http://pastebin.com/mnSSj8Mj)

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [July 15, 2016, 9:09pm UTC](https://discuss.elastic.co/t/elastic-not-indexing-correctly-showing-metadata-beat/55653/2 "2016-07-15T21:09:49Z")

</div>

I think you'll have more luck asking this in the beats section. Sorry!

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 17, 2016, 4:27am UTC](https://discuss.elastic.co/t/elastic-not-indexing-correctly-showing-metadata-beat/55653/3 "2016-07-17T04:27:57Z")

</div>

What if you put a stdout and include metadata?  
[https://www.elastic.co/guide/en/logstash/current/plugins-codecs-rubydebug.html](https://www.elastic.co/guide/en/logstash/current/plugins-codecs-rubydebug.html)

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [July 19, 2016, 10:14pm UTC](https://discuss.elastic.co/t/elastic-not-indexing-correctly-showing-metadata-beat/55653/4 "2016-07-19T22:14:35Z")

</div>

Add a `stdout { codec => rubydebug { metadata => true } }` to the output section to show the event with metadata.

---

<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:** [July 5, 2017, 9:50pm UTC](https://discuss.elastic.co/t/elastic-not-indexing-correctly-showing-metadata-beat/55653/5 "2017-07-05T21:50:55Z")

</div>


