New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to config rsyslog's error log #3541
Comments
Messages are reported to the syslog stream as syslog.=error. Done depending on config via journal or direct . |
@rgerhards Thanks for your reply. |
post your full conf |
Check your /etc/rsyslog.conf file. At the begining you need to add global(processInternalMessages="on") to your file. Later in the Rules Part add the following lines syslog.=error /var/log/rsyslog/rsyslog_error.log Which means write every rsyslog message with loglevel error to file /var/log/rsyslog/rsyslog_error.log. The & and stop will stop sending these messages to /var/log/messages. At least if you define that rule before the /var/log/messages definition. |
Expected behavior
We use rsyslog to collect our business logs, and send them to my fwd by relp. But sometimes, business logs are not sent to my fwd.
To find out the reason, I want to see the error log of rsyslog itself. But I don't know where it is and how to set it.
Any help? Thanks.
Environment
The text was updated successfully, but these errors were encountered: