Michael Salaverry
Posted on March 26, 2023
Using this docker compose yaml:
version: '3.9'
services:
log-generator-syslog:
image: mingrammer/flog
command: flog -f rfc3164 -n 10
logging:
driver: syslog
options:
syslog-address: "udp://nas.local:514"
syslog-format: rfc3164
env: dev
labels: tlv,michael-laptop
tag: "{{.Name}}-{{.ID}}"
We can generate fake logs using https://hub.docker.com/r/mingrammer/flog in the BSD syslog format. These logs are sent via UDP to the NAS in the same network
On the receiving NAS end, open the Log Center, and setup an endpoint for the container to write to.
Then, just run the docker compose file with docker compose up
and you should see your fake logs in synology! These logs can be searched and filtered
💖 💪 🙅 🚩
Michael Salaverry
Posted on March 26, 2023
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
kubernetes Kubernetes Multiple Schedulers: A Step-by-Step Guide to Implementing a Custom Scheduler
November 20, 2024
undefined Dockerfile Essentials: Building and Customizing Docker Images for Your Application
November 19, 2024