# Postgres module for filebeat is not matching the logs

**URL:** <https://discuss.elastic.co/t/postgres-module-for-filebeat-is-not-matching-the-logs/200680>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [September 23, 2019, 11:18am UTC](https://discuss.elastic.co/t/postgres-module-for-filebeat-is-not-matching-the-logs/200680 "2019-09-23T11:18:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![zozo6015](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zozo6015/32/12117_2.png) [@zozo6015](https://discuss.elastic.co/u/zozo6015)\
**Post date:** [September 23, 2019, 11:18am UTC](https://discuss.elastic.co/t/postgres-module-for-filebeat-is-not-matching-the-logs/200680/1 "2019-09-23T11:18:43Z")

</div>

Hello,

I have set up filebeat postgres module to get the logs and send it to the dashboard but I have observed that the patterns are not matching the logs coming from postgresq. Therefore I am wondering what versions of postgresql you have compiled the logs for? Is there anything I could do to match the patterns to the logs I have coming from postgresql and be able to use the filebeat postgresql dashboard. Also I am using postgresql 10.x with the default logging so nothing custom on our side.

---

<div class="post-metadata">

**Author:** ![Kaiyan\_Sheng](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kaiyan_sheng/32/38247_2.png) [@Kaiyan\_Sheng](https://discuss.elastic.co/u/Kaiyan_Sheng)\
**Post date:** [September 26, 2019, 4:07am UTC](https://discuss.elastic.co/t/postgres-module-for-filebeat-is-not-matching-the-logs/200680/2 "2019-09-26T04:07:24Z")

</div>

Hi! If it's ok, could you show us several lines of postgres logs as example here? That would be extremely helpful. Thanks!

---

<div class="post-metadata">

**Author:** ![zozo6015](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zozo6015/32/12117_2.png) [@zozo6015](https://discuss.elastic.co/u/zozo6015)\
**Post date:** [September 26, 2019, 8:57am UTC](https://discuss.elastic.co/t/postgres-module-for-filebeat-is-not-matching-the-logs/200680/3 "2019-09-26T08:57:25Z")

</div>

[https://pastebin.com/RqrWg5W6](https://pastebin.com/RqrWg5W6)

---

<div class="post-metadata">

**Author:** ![Kaiyan\_Sheng](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kaiyan_sheng/32/38247_2.png) [@Kaiyan\_Sheng](https://discuss.elastic.co/u/Kaiyan_Sheng)\
**Post date:** [September 26, 2019, 2:07pm UTC](https://discuss.elastic.co/t/postgres-module-for-filebeat-is-not-matching-the-logs/200680/4 "2019-09-26T14:07:51Z")

</div>

Thank you for the examples. I tested it locally with current postgresql filebeat module and turned out we don't support this version of log format right now. I just filed a new issue to add support for 10.x version with your examples:

> <https://github.com/elastic/beats/issues/13810>

  
We will get it prioritized and hopefully add it soon. Thank you for all the help!

---

<div class="post-metadata">

**Author:** ![zozo6015](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zozo6015/32/12117_2.png) [@zozo6015](https://discuss.elastic.co/u/zozo6015)\
**Post date:** [September 26, 2019, 2:29pm UTC](https://discuss.elastic.co/t/postgres-module-for-filebeat-is-not-matching-the-logs/200680/5 "2019-09-26T14:29:23Z")

</div>

In the meantime is there anything I can change on the server side so that I would make it work?

---

<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 24, 2019, 2:29pm UTC](https://discuss.elastic.co/t/postgres-module-for-filebeat-is-not-matching-the-logs/200680/6 "2019-10-24T14:29:25Z")

</div>

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