# Parse Log file using Filebeat, filter the data and save it to elasticsearch database

**URL:** <https://discuss.elastic.co/t/parse-log-file-using-filebeat-filter-the-data-and-save-it-to-elasticsearch-database/203447>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [October 14, 2019, 12:17pm UTC](https://discuss.elastic.co/t/parse-log-file-using-filebeat-filter-the-data-and-save-it-to-elasticsearch-database/203447 "2019-10-14T12:17:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nehajain](https://avatars.discourse-cdn.com/v4/letter/n/7cd45c/32.png) [@Nehajain](https://discuss.elastic.co/u/Nehajain)\
**Post date:** [October 14, 2019, 12:17pm UTC](https://discuss.elastic.co/t/parse-log-file-using-filebeat-filter-the-data-and-save-it-to-elasticsearch-database/203447/1 "2019-10-14T12:17:50Z")

</div>

Hi,

I have to read a log file using File Beat, apply few filters and then save this filtered data to Elastic Search database using PUT and POST queries.

1. I could read log file, get the data in elastic search.
2. I could save and query dummy data to and from elastic search database.

I am unable to create a link between the 2 processes. I have data in elastic search. How does it get filtered based on keywords and how can I save that data into the database.

Please help.

Regards  
Neha jain

---

<div class="post-metadata">

**Author:** ![Tek\_Chand](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tek_chand/32/34318_2.png) [@Tek\_Chand](https://discuss.elastic.co/u/Tek_Chand)\
**Post date:** [October 14, 2019, 12:35pm UTC](https://discuss.elastic.co/t/parse-log-file-using-filebeat-filter-the-data-and-save-it-to-elasticsearch-database/203447/2 "2019-10-14T12:35:25Z")

</div>

@Nehajain, If i am understanding correctly your question you want to store your data in elasticsearch and then want to query it.

If this is the case then you can use Filbeat-\>elasticsearch-\>kibana or Filebeat-\>logstash-\>elasticserach-\>kibana architecture.

Thanks.

---

<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:** [November 11, 2019, 12:35pm UTC](https://discuss.elastic.co/t/parse-log-file-using-filebeat-filter-the-data-and-save-it-to-elasticsearch-database/203447/3 "2019-11-11T12:35:26Z")

</div>

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