[rsyslog-notify] Forum Thread: RainerScript problem - (Mode 'post')

noreply at adiscon.com noreply at adiscon.com
Wed Jan 22 20:27:56 CET 2014


User: szczepan 
Forumlink: http://kb.monitorware.com/viewtopic.php?p=24127#p24127

Message: 
----------
Hello.

I'm experimenting with rsyslog 7.4.8 (latest stable release) taken from
adiscon's rpm repo.

when I use classic syntax like this:
[code:1tjbrb3i]:msg, contains, "FAN"
:ompgsql:127.0.0.1,syslog,syslog,syslog
& /var/log/rsyslog/fan.log
& ~
[/code:1tjbrb3i]
everything works as expected.

But when I switch to new format:
[code:1tjbrb3i]module(load="ompgsql")
if $msg contains 'FAN' then {
 action(type="ompgsql" server="localhost" serverport="5432" db="syslog"
uid="syslog" pwd="syslog")
 action(type="omfile" file="/var/log/rsyslog/fan.log")
& stop
}
[/code:1tjbrb3i]
I get the error:
[quote:1tjbrb3i]
rsyslogd: module name 'ompgsql' is unknown [try <!-- m --><a
class="postlink"
href="http://www.rsyslog.com/e/2209">http://www.rsyslog.com/e/2209</a><!--
m --> ]
[/quote:1tjbrb3i]
 on the line with "action" statement.
The problem does not exist when using ommysql.

Is there something wrong with Postgresql output module ?


More information about the rsyslog-notify mailing list