# Logstash delete postgresql module fields

**URL:** https://discuss.elastic.co/t/logstash-delete-postgresql-module-fields/183598
**Category:** Logstash
**Created:** [May 30, 2019, 7:07pm UTC](https://discuss.elastic.co/t/logstash-delete-postgresql-module-fields/183598 "2019-05-30T19:07:48Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![zolthar-z](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zolthar-z/32/47895_2.png) [@zolthar-z](https://discuss.elastic.co/u/zolthar-z)
#### Post date: [May 30, 2019, 7:07pm UTC](https://discuss.elastic.co/t/logstash-delete-postgresql-module-fields/183598/1 "2019-05-30T19:07:48Z")

</div>

Hi

I have an ELK platform version 7.1.0, to fix a timestamp inconsistency between my servers and Kibana I created a logstash filter, this filter read the timestamp from the logs and applied it in the filed @timestamp in Kibana, so far so good, now I´m trying to use some dashboards for PostgreSQL but when I tried to read the information from the logs all the PostgreSQL module fields that filebeat sent are deleted by logstash (user name, query, log duration, etc) so I was wondering if any of you know how to pass this fields trough logstash and avoid this data loss, this is the filter that I have to fix the timestamp issue.

input {  
beats {  
port =\> 5044  
}  
}  
filter {  
grok {  
match =\> ["message", "%{TIMESTAMP\_ISO8601:timestamp}"]  
}  
date {  
match =\> ["timestamp", "ISO8601"]  
}  
}  
output {  
elasticsearch {  
hosts =\> ["localhost:9200"]  
index =\> "%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}"  
}  
}

Log example from filebeat to elasticsearch

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/f/df3392796646bcee1e5e8e7446e216a92b5ec60d.png)

Log example using logstash filter

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/4/74ddc6a5ec42e5855b644c3190ae295974eaad69.png)

Thanks

Regards

---

<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: [June 27, 2019, 7:07pm UTC](https://discuss.elastic.co/t/logstash-delete-postgresql-module-fields/183598/2 "2019-06-27T19:07:50Z")

</div>

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