Skip to content

Instantly share code, notes, and snippets.

@holybit
Last active August 29, 2015 14:13
Show Gist options
  • Save holybit/044aa24005cf584f199d to your computer and use it in GitHub Desktop.
Save holybit/044aa24005cf584f199d to your computer and use it in GitHub Desktop.
rsyslog filter/template problem rules work OK under 7.x but not 8.x
$ /sbin/rsyslogd -N1
rsyslogd: error during parsing file /etc/rsyslog.d/central.conf, on or before line 105: invalid character '�' in expression - is there an invalid escape sequence somewhere? [try http://www.rsyslog.com/e/2207 ]
rsyslogd: error during parsing file /etc/rsyslog.d/central.conf, on or before line 105: invalid character '�' in expression - is there an invalid escape sequence somewhere? [try http://www.rsyslog.com/e/2207 ]
rsyslogd: error during parsing file /etc/rsyslog.d/central.conf, on or before line 105: invalid character '�' in expression - is there an invalid escape sequence somewhere? [try http://www.rsyslog.com/e/2207 ]
rsyslogd: error during parsing file /etc/rsyslog.d/central.conf, on or before line 105: syntax error on token '-' [try http://www.rsyslog.com/e/2207 ]
rsyslogd: CONFIG ERROR: could not interpret master config file '/etc/rsyslog.conf'. [try http://www.rsyslog.com/e/2207 ]
rsyslogd: run failed with error -2207 (see rsyslog.h or try http://www.rsyslog.com/e/2207 to learn what that number means)
$template WebLogFile, "/data/syslog/index/application/%app-name%"
if $syslogfacility-text == 'local4' and $app-name startswith ‘php-access_log-' then -?WebLogFile
& stop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment