# How to ingest logs if they differ from the default filebeat module

**URL:** <https://discuss.elastic.co/t/how-to-ingest-logs-if-they-differ-from-the-default-filebeat-module/205610>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [October 29, 2019, 8:05am UTC](https://discuss.elastic.co/t/how-to-ingest-logs-if-they-differ-from-the-default-filebeat-module/205610 "2019-10-29T08:05:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Muckis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/muckis/32/56905_2.png) [@Muckis](https://discuss.elastic.co/u/Muckis)\
**Post date:** [October 29, 2019, 8:05am UTC](https://discuss.elastic.co/t/how-to-ingest-logs-if-they-differ-from-the-default-filebeat-module/205610/1 "2019-10-29T08:05:45Z")

</div>

Hi,

I'm importing postgreSql logs where the log format is different to what the filebeat-\>postgresql module is set to ingest, so elasticsearch contains none of the postgresql specific fields just the message and the default metadata fields. How can I modify the ingestion so that the postgresql fields are imported as well? I have created a grok filter suitable for my log files. Is there a way to add this grok filter to the filebeat-\>posgresql module? Will I need to apply the grok filter in logstash? Or is there a way to modify the data in elasticsearch?

Thank you for your help

---

<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 26, 2019, 8:05am UTC](https://discuss.elastic.co/t/how-to-ingest-logs-if-they-differ-from-the-default-filebeat-module/205610/2 "2019-11-26T08:05:46Z")

</div>

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