Details
-
Help
-
Resolution: Fixed
-
Trivial
-
None
-
None
-
None
Description
The documentation at http://observium.org/docs/syslog/#rsyslogd looks kind of outdated. The syntax for rsyslog configuration changed in version 7 which is already outdated. Version 8.x is stable at the moment. As some things didn't work with the documented config I changed it like this:
#---------------------------------------------------------
|
#send remote logs to observium
|
|
template(name="observium"
|
type="string"
|
string="%fromhost-ip%||%syslogfacility%||%syslogpriority%||%syslogseverity%||%syslogtag%||%$year%-%$month%-%$day% %timereported:8:25%||%msg%||%programname%\n")
|
|
$ModLoad omprog
|
|
# rsyslog Input Modules
|
input(type="imudp"
|
port="514"
|
ruleset="observium")
|
|
# rsyslog RuleSets
|
ruleset(name="observium") {
|
action(type="omprog"
|
binary="/opt/observium/syslog.php"
|
template="observium")
|
action(type="omfile"
|
file="/opt/rsyslog/remote.log")
|
}
|
*.* stop
|
#---------------------------------------------------------
|
I just noticed, that the following part of the configuration is no good:
*.* stop
It stops the whole logging workflow and results in a non working local message logging i.e. to /var/log/messages.
In former versions it was needed to prevent remote syslog messages for observium to occur in local message log files like /var/log/messages but this isn't the case any more.
=> this line is not needed any more in the configuration for v8 and later.