# How to access the value in the logstash metadata

**URL:** <https://discuss.elastic.co/t/how-to-access-the-value-in-the-logstash-metadata/157200>\
**Category:** Logstash\
**Created:** [November 18, 2018, 1:59am UTC](https://discuss.elastic.co/t/how-to-access-the-value-in-the-logstash-metadata/157200 "2018-11-18T01:59:48Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![bijay](https://avatars.discourse-cdn.com/v4/letter/b/8491ac/32.png) [@bijay](https://discuss.elastic.co/u/bijay)\
**Post date:** [November 19, 2018, 8:49am UTC](https://discuss.elastic.co/t/how-to-access-the-value-in-the-logstash-metadata/157200/11 "2018-11-19T08:49:34Z")

</div>

I have another open thread related to this.

> [@Logstash translate filter for multiple fields](https://discuss.elastic.co/t/logstash-translate-filter-for-multiple-fields/156812):
>
> Hi, I want to drop the logs based on multiple fields. Below is the content of drop.yml logstash : '{"info": "drop"}' e.g. I want to drop the loglines which has contain the "component" : "logstash" and "severity": "info" I want to do this dynamically. translate { field =\> "component" destination =\> "logstat" dictionary\_path =\> "/tmp/drop.yml" } json { source =\> "logstat" target =\> "severity" } if [target] == "drop" { drop {…

---

_[View the full topic](https://discuss.elastic.co/t/how-to-access-the-value-in-the-logstash-metadata/157200)._
