Skip to content
/ minilog Public

Example showing how to use rsyslog and postgresql for centralized logging

License

Notifications You must be signed in to change notification settings

emkor/minilog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minilog

Example showing how to set up forwarding incoming logs in syslog format using rsyslog server into PostgreSQL database for further log management and visualization

usage

Just run docker-compose up in main directory, four containers starts:

  • one having PostgreSQL with pre-created tables using pgsql/init/log_init.sql
  • one having rsyslog server, exposing port 10514 using TCP and UDP
  • example python app configured to log in syslog format into the rsyslog container
  • adminer UI on port 8080 for verifying logged content in PostgreSQL (use infra for both user and password, postgres as DB server and log as DB name)