-
Notifications
You must be signed in to change notification settings - Fork 22
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
Fixes #6421: Messages can be dropped on the node, resulting in Unknown reports on the Web Interface #937
Conversation
@@ -494,7 +494,7 @@ bundle agent check_log_system | |||
|
|||
!windows.rsyslogd.!policy_server:: | |||
"/etc/rsyslog.d/rudder-agent.conf" | |||
edit_line => append_if_no_lines("#Rudder log system${const.n}if $syslogfacility-text == 'local6' and $programname startswith 'rudder' then @@${server_info.cfserved}:&SYSLOGPORT&${const.n}if $syslogfacility-text == 'local6' and $programname startswith 'rudder' then ~"), | |||
edit_line => append_if_no_lines("#Rudder log system${const.n}$RepeatedMsgReduction off${const.n}if $syslogfacility-text == 'local6' and $programname startswith 'rudder' then @@${server_info.cfserved}:&SYSLOGPORT&${const.n}if $syslogfacility-text == 'local6' and $programname startswith 'rudder' then ~"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This only addresses the rsyslog case. Is there no equivalent for syslog-ng? syslog?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about existing configuration ?
This will append a new line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought that, but actually it won't, because of the line a bit below:
edit_defaults => empty_backup,
Ping @amousset |
I'm doing some tests on syslog-ng with the |
The suppress option is not supported by the syslog-ng version in SELS11 repos. I am trying to ensure we won't have issue with the rsyslog option on old versions as well, I could not find the precise version where it was included for now. |
I tried to locate when it was first added also, without success. I seem to recall that it was there at least in 3.8 (but not sure at all) |
Rsyslog was apparently introduced in RHEL repos in RHEL5.2 (http://lists.adiscon.net/pipermail/rsyslog/2008-June/000836.html), and was a 2.0 version, which seems not to support this option (http://rpm.pbone.net/index.php3/stat/45/idpl/11534950/numer/5/nazwa/rsyslog.conf) |
We can:
The is no simple way to disable message deduplication on syslogd on Linux (on BSD there is a command-line option). For syslog-ng, it was introduced in a recent version (for now, unknown too...), so we would need the same mechanism. By the way, it seems at the time it was introduced, all Linux distributions had already switched to rsyslog by default. |
Great news, @amousset ! Let's focus on rsyslog, then, since that seems to be the most widely used, and the only one we've actually experienced the problem with. |
Commit modified |
a3a7ba5
to
b76e111
Compare
…n reports on the Web Interface
b76e111
to
66cedff
Compare
This looks great! |
rsyslogd.check_rsyslog_version_present:: | ||
# 5.6.4 is the first version mentionning RepeatedMsgReduction in http://www.rsyslog.com/change-log/ | ||
# The option is probably older though. | ||
"${g.rudder_tools}/check-rsyslog-version 5.6.4" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hum, we have a conflict there. Classes defined by module are global, so if we hve a version 5.6.5, we'll have both rsyslog_version_ok and rsyslog_version_not_ok defined
https://www.rudder-project.org/redmine/issues/6421