# How to not log extra metadata from Logstash to Elasticsearch

**URL:** <https://discuss.elastic.co/t/how-to-not-log-extra-metadata-from-logstash-to-elasticsearch/264524>\
**Category:** Logstash\
**Created:** [February 17, 2021, 7:48am UTC](https://discuss.elastic.co/t/how-to-not-log-extra-metadata-from-logstash-to-elasticsearch/264524 "2021-02-17T07:48:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arclinear](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@arclinear](https://discuss.elastic.co/u/arclinear)\
**Post date:** [February 17, 2021, 7:48am UTC](https://discuss.elastic.co/t/how-to-not-log-extra-metadata-from-logstash-to-elasticsearch/264524/1 "2021-02-17T07:48:00Z")

</div>

Hello, currently I have a working example of an ELK stack, however, in my indices I do not want to log the following fields :

![path](https://us1.discourse-cdn.com/elastic/original/3X/3/0/3093c7a54acff855ae645c65b67e3c71feee502e.png)

Ideally, in Elasticsearch, I only want to see "message" and "@timestamp", the other 4 is seemingly generated on Logstash's end, may I know if there is a way to NOT send those pieces into elasticsearch?

---

<div class="post-metadata">

**Author:** ![aaron-nimocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron-nimocks/32/73965_2.png) [@aaron-nimocks](https://discuss.elastic.co/u/aaron-nimocks)\
**Post date:** [February 17, 2021, 1:40pm UTC](https://discuss.elastic.co/t/how-to-not-log-extra-metadata-from-logstash-to-elasticsearch/264524/2 "2021-02-17T13:40:22Z")

</div>

I do not believe there is a way to remove those meta fields.

---

<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:** [March 17, 2021, 1:40pm UTC](https://discuss.elastic.co/t/how-to-not-log-extra-metadata-from-logstash-to-elasticsearch/264524/3 "2021-03-17T13:40:23Z")

</div>

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