User story #5622
closedLet the user choose between udp and tcp for syslog messages
Description
We use tcp for syslog messages, which allow for consistency, however, if the messages can't be inserted in database (if locked), then messages are blocked, and all systemes grinds to halt.
It would be cool, at least according to coredumb, to let user chose between TCP et UDP
Updated by Daniel Stan almost 10 years ago
Hello
I will like to push this option too. This had caused us problems in the past and it is also causing problems now. The issue is that all the services that relies on syslog for logging get stuck and stop responding when the syslog server on rudder is not available which, as you imagine, is not welcomed at all.
Updated by Andrew Cranson almost 10 years ago
Also, is there any way we can customise this in the meantime (even if it will be overwritten by Rudder upgrades)? Thank you
Updated by Daniel Stan almost 10 years ago
Hey
Any update on this? The problem is still active and can cause lots of headaches if it is not fixed.
Updated by Nicolas CHARLES almost 10 years ago
Here is a workaroudn for this issue, for rsyslog
On the rudder policy server, in /var/rudder/configuration-repository/techniques/system/common/1.0/promises.st, replace
!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 ~"), create => "true", edit_defaults => empty_backup, classes => kept_if_else("rsyslog_kept", "rsyslog_repaired" , "rsyslog_failed");
by
!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 ~"), create => "true", edit_defaults => empty_backup, classes => kept_if_else("rsyslog_kept", "rsyslog_repaired" , "rsyslog_failed");
then execute, in the folder /var/rudder/configuration-repository/techniques/system/common/1.0/, the following commands:
git add promises.st git commit -m "Use UDP rather than TCP for rsyslog"
and then, in the web interface, go to administration page, and click on "Update technique now".
If you are not using rsyslog, please tell me so that I can offer another workaround
Updated by François ARMAND almost 10 years ago
- Category changed from 39 to System integration
- Status changed from New to 8
- Priority changed from N/A to 1 (highest)
- Target version set to 3.1.0~beta1
This is important and should be adressed in the next version.
Updated by Vincent MEMBRÉ over 9 years ago
- Target version changed from 3.1.0~beta1 to 3.1.0~rc1
Updated by Benoît PECCATTE over 9 years ago
- Status changed from New to In progress
- Assignee set to Benoît PECCATTE
Updated by Benoît PECCATTE over 9 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Benoît PECCATTE to Nicolas CHARLES
- Pull Request set to https://github.com/Normation/rudder-techniques/pull/689
Updated by Benoît PECCATTE over 9 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder-techniques|fa5a28851259cd02f1af9053af636c39f97d2cb8.
Updated by Vincent MEMBRÉ over 9 years ago
Applied in changeset rudder-techniques|fbc428842a9efc9370ece414811bb802441a3909.
Updated by Vincent MEMBRÉ over 9 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 3.1.0~rc1 which was released on the 16th June 2015.
- Announcement 3.1
- Changelog 3.1
- Download information: https://www.rudder-project.org/site/get-rudder/downloads/