jsuto / piler

Email archiving application
https://www.mailpiler.org/
Other
82 stars 9 forks source link

[FEATURE] show logs on /dev/stdout #161

Closed th-2021 closed 2 months ago

th-2021 commented 3 months ago

In kubernetes logs are shown with kubectl logs ... (simple logging). The logs with piler are in /var/log and not shown this way. One solution would be to send important messages to /dev/stdout (in rsyslog config).

jsuto commented 3 months ago

It can be done by fixing the rsyslog config, however you may be better off using a dedicated log shipping app like fluentbit to deliver logs to ELK, Grafana cloud, etc. I use grafana cloud's free tier to display various metrics, dashboards and logs.

th-2021 commented 3 months ago

Sure. I came across this because pilerimport just exited without any output. Later I found in /var/log/syslog: "cannot connect to manticore...". A message like this should imho be also shown on stderr.

jsuto commented 2 months ago

It's possible, however, I still believe that all logs should be at a single place.