-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
Disable rsyslog logging for ST2 services #532
Comments
Thanks @sibirajal for opening an issue! So as discussed, the reason behind this behavior, We can't do anything in our service unit files since it's core Here is an example of working
The possible resolution would be shipping that But the decision is not that clearly beneficial. I'm not sure yet if we should ship our "force no-log" rsyslogd config, so I'm leaving the issue here for gathering more feedback. |
I had the same problem, put the rsyslog config snippet from above in /etc/rsyslog.d, and it looks like it is working properly now. I now only have hubot spamming my global log. See : #300. By adding the following line:
to the rsyslog config, I can get rid of those entries from the global log, but they are getting nowhere now... Still missing the /etc/st2/logging.chatops_or_hubot.conf |
Two more lines if someone search for solution:
|
If you find an issue in packages, please file an issue and we'll have a look as soon as we can.
In order to expedite the process, it would be helpful to follow this checklist and provide
relevant information.
uname -a
,./etc/lsb_release
orcat /etc/redhat-release
st2 --version
Issue details
I have noticed in our ST2 instance that rsyslog messages log file is flooded by st2 services. All the execution results are logged in their own st2 log files in /var/log/st2 and /var/log/messages.
Since each st2 service is configured with the dedicated log file, rsyslogd shouldn't be used for logging. This is causing disk space problem in our production instance as the logs are written redundantly in 2 places.
Can you please disable the ST2 default logging to rsyslog? This can be further manually enabled if something needed in future.
The text was updated successfully, but these errors were encountered: