# How to configure filebeat to store logs in elasticsearch correctly

**URL:** <https://discuss.elastic.co/t/how-to-configure-filebeat-to-store-logs-in-elasticsearch-correctly/374865>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [February 21, 2025, 6:42pm UTC](https://discuss.elastic.co/t/how-to-configure-filebeat-to-store-logs-in-elasticsearch-correctly/374865 "2025-02-21T18:42:04Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Alex\_Salgado-Elastic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_salgado-elastic/32/103081_2.png) [@Alex\_Salgado-Elastic](https://discuss.elastic.co/u/Alex_Salgado-Elastic)\
**Post date:** [February 21, 2025, 8:25pm UTC](https://discuss.elastic.co/t/how-to-configure-filebeat-to-store-logs-in-elasticsearch-correctly/374865/2 "2025-02-21T20:25:25Z")

</div>

Hi @Mirali_Rafiyev, welcome to our community!

This link might give you a broader perspective:

[Dec 4th 2022: [EN] Ingesting JSON logs with Elastic-Agent (and/or Filebeat)](https://discuss.elastic.co/t/dec-4th-2022-en-ingesting-json-logs-with-elastic-agent-and-or-filebeat/319536))

It primarily covers JSON parsing in the initial steps.

---

_[View the full topic](https://discuss.elastic.co/t/how-to-configure-filebeat-to-store-logs-in-elasticsearch-correctly/374865)._
