# Accesing with Logstash to Filebeat parameter fields

**URL:** <https://discuss.elastic.co/t/accesing-with-logstash-to-filebeat-parameter-fields/120571>\
**Category:** Logstash\
**Created:** [February 20, 2018, 7:37am UTC](https://discuss.elastic.co/t/accesing-with-logstash-to-filebeat-parameter-fields/120571 "2018-02-20T07:37:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Asier\_Saluena](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@Asier\_Saluena](https://discuss.elastic.co/u/Asier_Saluena)\
**Post date:** [February 20, 2018, 7:37am UTC](https://discuss.elastic.co/t/accesing-with-logstash-to-filebeat-parameter-fields/120571/1 "2018-02-20T07:37:30Z")

</div>

Hi all,

I'm trying new ELK version (6.2), and I'm using the new config options 'fields' to create a field named logtype. I want to detect logs in Logstash using this parameter.

> ```
> filebeat.prospectors:
> - type: log
> enabled: true
> paths:
> - /var/log/filebeat/filebeat
> fields:
> doc_type: syslog
> 
> ```

How can I access to this field in logstash?

---

<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:** [February 20, 2018, 1:35pm UTC](https://discuss.elastic.co/t/accesing-with-logstash-to-filebeat-parameter-fields/120571/2 "2018-02-20T13:35:14Z")

</div>

You can access it like any other field, see [https://www.elastic.co/guide/en/logstash/current/event-dependent-configuration.html](https://www.elastic.co/guide/en/logstash/current/event-dependent-configuration.html). If you describe what you want to accomplish it will be possible to provide an example.

---

<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 20, 2018, 1:37pm UTC](https://discuss.elastic.co/t/accesing-with-logstash-to-filebeat-parameter-fields/120571/3 "2018-03-20T13:37:07Z")

</div>

Closed on March 20, 2018, 1:37pm UTC

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