Is it possible to ship postgres log to logstash via GELF?


Trying to send log from postgres docker container to ELK stack using gelf log driver.
My understanding is that the following setting in the postgresql.conf generates log including query information.
log_statement = ‘all’

In Kibana, I can only see the message below and it seems no log has been collected in elk.
LOG: redirecting log output to logging collector process

The reason why I would like to avoid using filebeat module for postgres is that I don’t want to manage log lotation. In order for filebeat to read postgres logs, volume mount is required that means that log lotate would be required. For that reason it’s better if GELF can collect postgres database logs.


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