# Postgresql module not populating event fields (Windows)

**URL:** <https://discuss.elastic.co/t/postgresql-module-not-populating-event-fields-windows/120056>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [February 15, 2018, 6:45pm UTC](https://discuss.elastic.co/t/postgresql-module-not-populating-event-fields-windows/120056 "2018-02-15T18:45:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andyliddle](https://avatars.discourse-cdn.com/v4/letter/a/7ea924/32.png) [@andyliddle](https://discuss.elastic.co/u/andyliddle)\
**Post date:** [February 15, 2018, 6:45pm UTC](https://discuss.elastic.co/t/postgresql-module-not-populating-event-fields-windows/120056/1 "2018-02-15T18:45:46Z")

</div>

Hi,

I have enabled to the postgres module pointing to my log files. When i start filebeat i can see that is picks up the logs and processes them, but it does not seem to be populating the postgresql fields in the event

Config

- module: postgresql

Event:

{  
"\_index": "eth-filebeat-6.2.1-2018.02.15",  
"\_type": "doc",  
"\_id": "zwu9mmEB7PoIeysneRls",  
"\_version": 1,  
"\_score": null,  
"\_source": {  
"tags": [  
"service-o",  
"app-tier",  
"beats\_input\_codec\_plain\_applied"  
],  
"host": "POSTGRESQL",  
"source": "C:\Program Files\PostgreSQL\9.6\data\pg\_log\postgresql-2017-06-09\_000000.log",  
"offset": 796555,  
"@timestamp": "2018-02-15T18:32:37.747Z",  
"message": "2017-06-09 15:35:30 BST STATEMENT: GRANT ALL ON SEQUENCE sds\_org\_person\_seq TO "spinalTapAcc\_nf ";",  
"fields": {  
"source\_type": "filebeat",  
"env": "ETH"  
},  
"beat": {  
"name": "POSTGRESQL",  
"hostname": "POSTGRESQL",  
"version": "6.2.1"  
},  
"@version": "1",  
"prospector": {  
"type": "log"  
},  
"fileset": {  
"module": "postgresql",  
"name": "log"  
}  
},  
"fields": {  
"@timestamp": [  
"2018-02-15T18:32:37.747Z"  
]  
},  
"highlight": {  
"fileset.module": [  
"@kibana-highlighted-field@postgresql@/kibana-highlighted-field@"  
]  
},  
"sort": [  
1518719557747  
]  
}

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [February 16, 2018, 9:49am UTC](https://discuss.elastic.co/t/postgresql-module-not-populating-event-fields-windows/120056/2 "2018-02-16T09:49:30Z")

</div>

What is your Postgresql version? Do you have custom a log format?  
Could you share a few example input logs which cannot be parsed correctly?

---

<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:** [March 16, 2018, 9:49am UTC](https://discuss.elastic.co/t/postgresql-module-not-populating-event-fields-windows/120056/3 "2018-03-16T09:49:44Z")

</div>

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