# Logstash - Match metadata from filebeat

**URL:** https://discuss.elastic.co/t/logstash-match-metadata-from-filebeat/181743
**Category:** Logstash
**Created:** [May 20, 2019, 6:32am UTC](https://discuss.elastic.co/t/logstash-match-metadata-from-filebeat/181743 "2019-05-20T06:32:01Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![shortcommand](https://avatars.discourse-cdn.com/v4/letter/s/50afbb/32.png) [@shortcommand](https://discuss.elastic.co/u/shortcommand)
#### Post date: [May 20, 2019, 6:32am UTC](https://discuss.elastic.co/t/logstash-match-metadata-from-filebeat/181743/1 "2019-05-20T06:32:01Z")

</div>

Hi,

I've noticed filebeat sends some additional metadata for each generated event such as:  
host.hostname, log.file.path and host.os.family.

Can I access them in logstash and create additional fields to my event, based on the metadata values?

In logstash I use a grok filter to parse my IIS logs.

Thanks in advance.

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [May 20, 2019, 10:57am UTC](https://discuss.elastic.co/t/logstash-match-metadata-from-filebeat/181743/2 "2019-05-20T10:57:38Z")

</div>

> [@shortcommand](#):
>
> Can I access them in logstash

Yes, but in logstash you refer to nested fields as [host][hostname] or [log][file][path].

---

<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: [June 17, 2019, 10:57am UTC](https://discuss.elastic.co/t/logstash-match-metadata-from-filebeat/181743/3 "2019-06-17T10:57:39Z")

</div>

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