I'm having a problem with how the output is happening. Its filling up my
messages file with repetitive information.
Should my /etc/rsyslog.d/forwardFile.conf look like this?
$ModLoad imfile
# File 1
$InputFileName /var/log/mysqld.log
$InputFileTag mysqld:
$InputFileStateFile stat-file1
$InputFileSeverity notice
$InputFileFacility local0
$InputRunFileMonitor
(no /etc/rsyslog.d/forwardRules.conf was set)
And to have this forwarded from a remote server to a central server. Should
there be a /etc/rsyslog.d/forwardRule.conf?
I'm not quite sure how to put the forwarding rule in rsyslog.conf
If $programname == 'mysqld' then @forward.to.this.ip:514
I'm kinda confused about this....I don't know if mysqld.log (centos box) falls
under something that you have to monitor...or if I can just forward the file
that is created by the program to another server.
On my central syslog server the rsyslog.conf I want to use a template to
receive this data and put it in a file so
$template DYNmysqld,"/var/log/hosts/%HOSTNAME%/mysqld.log"
If \
$source != 'myhostname'\
And \
$programname == 'mysqld' \
Then ?DYNmysqld
Should this be working?
Joshua Bitto
Information Technologist
KCC
_______________________________________________
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.