Skip to content

clausqr/rsyslog-server-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Simple Docker rsyslog Server + lnav Viewer 🎉

Welcome to your all-in-one, minimal rsyslog server in Docker! This container listens on 514/udp for syslog messages, writes them to /var/log/syslog 📄, and launches lnav for a live view of incoming logs. Perfect for quick setups, testing, or getting visibility into logs in real-time! 🎬

rsyslog-server-docker running

🌐 Default Format: Logs follow the standardized RFC 5242 format, but feel free to customize!


🛠️ How to Build

Start by building your Docker image:

docker build -t simple-syslog-server .

▶️ How to Run

Run the container in detached mode to keep it running in the background:

docker run -d --name syslog-server -p 514:514/udp simple-syslog-server

Or use the provided convenience script:

bash run.bash

Voilà! Your syslog server is up and ready to go! 🎉


📢 How to Test

Want to check if everything’s working? 🕵️‍♀️ Use the logger command to send a test message:

logger -n 127.0.0.1 -P 514 -d -t test-app -p user.error "Test syslog message: lemon apple pear"

Now pop open lnav and watch your message appear in the live log viewer! 👀 🍋🍏🍐


🛠️ Customization

Need to tweak the configuration? 🎛️

Simply edit rsyslog.conf to customize filters, log paths, or other settings to your needs. Then rebuild and rerun the container.


🌟 Enjoy your streamlined syslog server setup with real-time views and easy customization. 🎉 Happy logging!

References

About

A lightweight Dockerized rsyslog server with real-time log viewing using lnav. Easily set up, capture, and monitor syslog messages on UDP port 514 with customizable configurations and a user-friendly terminal log viewer. Perfect for quick logging solutions and sysadmin testing!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors