Run the PostgreSQL and Beats containers
It will give you the ability to analyze and visualize PostgreSQL logs in Kibana.
Based on the official Docker images:
This configuration uses docker-elk
1.Clone docker-elk repository
2.Clone this repository
3.Start the Elastic and PostgreSQL with Beats using docker-compose
:
$ cd docker-elk
$ docker-compose up -d
$ cd ../docker-postgres-elk
$ docker-compose up -d
There are two configuration file:
- postgres.docker.conf - basic configuration with minimum changes from default
- postgres.docker.beats.conf - configuration with changes to make filebeat and metricbeat fully work
By default, the stack exposes the following ports:
- 5432: PostgreSQL