Hi all,
 
I actually try to do a simple condition in my rsyslog.conf , to forward message 
from a specific host to an other database instance:
 
i try to do something like this (i use "localhost" there for exemple) 
 
 
#-----------------------------------------------------------------------------------
 
if $hostname == 'localhost' :ompgsql:localhost,mysyslogbase,myuser,mypassword
 
#---------------------------------------------------------------------------------
 
but i have an error...
 
so i try to do this other kind of configuration:
 
#-----------------------------------------------------------------------------------
if $fromhost-ip == '127.0.0.1' then {
action(type="ompgsql" server="localhost" db="mysyslogbase" uid="myuser" 
pwd="mypassword")
}
#-----------------------------------------------------------------------------------
 
and i also have an error...
 
I saw many configuration and this 2 seems to work..so i don't understand why 
error occurs here...
 
Any idea?
 
Regards,
                                          
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to