for the filebeat PostgreSQL module, what are the expected settings in postgresql.conf (for the PostgreSQL server) on the logging related parameters, Prefix, etc.
I've searched and searched and would love to have this documented, especially for PostgreSQL 11.x
This is the grok filter used by the posgresql module:
"grok" : {
"patterns" : [
"""^%{DATETIME:postgresql.log.timestamp} [%{NUMBER:process.pid:long}(-%{BASE16FLOAT:postgresql.log.core_id:long})?] (([%{USERNAME:user.name}]@[%{POSTGRESQL_DB_NAME:postgresql.log.database}]|%{USERNAME:user.name}@%{POSTGRESQL_DB_NAME:postgresql.log.database}) )?%{WORD:log.level}: (duration: %{NUMBER:temp.duration:float} ms statement: %{GREEDYDATA:postgresql.log.query}|%{GREEDYDATA:message})"""
],
I hope this help to show what the module expects.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.