# How to harvest YAML files using Filebeat and process them in Logstash

**URL:** <https://discuss.elastic.co/t/how-to-harvest-yaml-files-using-filebeat-and-process-them-in-logstash/247910>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [September 8, 2020, 4:07pm UTC](https://discuss.elastic.co/t/how-to-harvest-yaml-files-using-filebeat-and-process-them-in-logstash/247910 "2020-09-08T16:07:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![abregman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abregman/32/63862_2.png) [@abregman](https://discuss.elastic.co/u/abregman)\
**Post date:** [September 8, 2020, 4:07pm UTC](https://discuss.elastic.co/t/how-to-harvest-yaml-files-using-filebeat-and-process-them-in-logstash/247910/1 "2020-09-08T16:07:55Z")

</div>

I have a YAML file similar to this:

```
---
install:
  boot:
    mode: bios
  build: None
  buildmods: pin
  ceph:
    cluster:
      name: ceph
    hci:
      memreserve: false

```

How can I configure filebeat to collect it and logstash to process it so I eventually have in elasticsearch fields such as:

install.boot.mode: bios  
ceph.cluster.name: ceph  
hci.memreserve: false

---

<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:** [October 6, 2020, 6:07pm UTC](https://discuss.elastic.co/t/how-to-harvest-yaml-files-using-filebeat-and-process-them-in-logstash/247910/2 "2020-10-06T18:07:57Z")

</div>

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