akpw / mktxp-stack

MKTXP Exporter monitoring stack
Other
121 stars 23 forks source link

How to configure Syslog? #3

Closed ksteink closed 1 year ago

ksteink commented 1 year ago

I tried to follow your guide but is not clear what configuration needs to be done to get syslog to work. What I am looking is the following:

If I try to modify the syslog configuration file in the container the container gets restarting all the time.

I appreciate your guidance as I am new on this and I am having a hard time to follow. You installation guide focuses on what I need to configure on the Mikrotik router to send the logs but is very vague on what I need to do on the container side.

Pls advise.

Thanks!

akpw commented 1 year ago

@ksteink I added the requested functionality, feel free to try out via:

docker-compose -f docker-compose-mktxp-stack-fs.yml up -d

described it in the docs as well, basically this configuration tells syslog to log into per-device files and then have promtail take it from there. you can change the default log folder in docker-compose-mktxp-stack-fs.yml, and set up log rotation as needed