Project

General

Profile

Bug #7635

syslog-ng's loghost regex does not match with set line

Added by Janos Mattyasovszky over 4 years ago. Updated over 4 years ago.

Status:
Released
Priority:
1
Category:
Techniques
Target version:
Severity:
User visibility:
Effort required:
Priority:

Description

Hi,

Please check this:

https://github.com/Normation/rudder-techniques/commit/24ee9cd0dc7e80022d8f6d3f6ebfbe3d45c6c5b1
https://github.com/Normation/rudder-techniques/commit/39ca4bd861bbd4f8b2a11563de4e76191c87981b

The first commit changed the name of the loghost to rudder_loghost, but then the second fix reverts the regex-matching var to use a hard-coded version instead of the perviously changed variable...

-      "syslog_ng_conf_regex"  string => concat(escape("${syslog_ng_conf_prefix}"), "[^\"]+", escape("${syslog_ng_conf_suffix}"), ".*");
+      "syslog_ng_conf_regex"  string => concat("filter\ f\_local\_rudder\{facility\(local6\)\ and\ program\(\"rudder\.\*\"\)\;\}\;destination\ loghost\ \{(tcp|udp)\(\"", "[^\"]+", escape("${syslog_ng_conf_suffix}"), ".*");

The implemented Fix should please also fix the misconfigured logfiles :-)


Related issues

Related to Rudder - Bug #5773: Syslog configuration on agent can conflict with loghostsReleased2014-11-13Jonathan CLARKEActions
Related to Rudder - Bug #5799: system technique can only setup log settings *once* on syslog-ngReleased2014-11-20Jonathan CLARKEActions
#1

Updated by Vincent MEMBRÉ over 4 years ago

  • Related to Bug #5773: Syslog configuration on agent can conflict with loghosts added
#2

Updated by Vincent MEMBRÉ over 4 years ago

  • Related to Bug #5799: system technique can only setup log settings *once* on syslog-ng added
#3

Updated by Jonathan CLARKE over 4 years ago

  • Target version set to 3.0.13

Oh dear. Well spotted, Janos. Thanks for the detailed bug report. Fix coming.

#4

Updated by Jonathan CLARKE over 4 years ago

  • Status changed from New to In progress
  • Assignee set to Jonathan CLARKE
#5

Updated by Jonathan CLARKE over 4 years ago

  • Tags set to Quick and important
#6

Updated by Benoît PECCATTE over 4 years ago

  • Assignee changed from Jonathan CLARKE to Benoît PECCATTE
#7

Updated by Benoît PECCATTE over 4 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/838
#8

Updated by Nicolas CHARLES over 4 years ago

  • Assignee changed from Nicolas CHARLES to Jonathan CLARKE
#9

Updated by Jonathan CLARKE over 4 years ago

  • Assignee changed from Jonathan CLARKE to Benoît PECCATTE
  • Pull Request changed from https://github.com/Normation/rudder-techniques/pull/838 to https://github.com/Normation/rudder-techniques/pull/839
#10

Updated by Jonathan CLARKE over 4 years ago

  • Assignee changed from Benoît PECCATTE to Nicolas CHARLES
#11

Updated by Jonathan CLARKE over 4 years ago

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100
#12

Updated by Vincent MEMBRÉ over 4 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 3.0.13, 3.1.6 and 3.2.0 which were released today.

Also available in: Atom PDF