I have managed to configure my RSyslog to put data into the syslog_incoming table.
However nothing appears in the syslog table and nothing shows up from within the plugin.
this is my rsyslog.conf
Code: Select all
# /etc/rsyslog.conf Configuration file for rsyslog.
#
# For more information see
# /usr/share/doc/rsyslog-doc/html/rsyslog_conf.html
$ModLoad ommysql.so
$template cacti_syslog,"INSERT INTO syslog_incoming(facility, priority, date, time, host, message) values (%syslogfacility%, %syslogpriority%, '%timereported:::date-mysql%', '%timereported:::date-mysql%', $
*.* >localhost,syslog,cacti,password;cacti_syslog
*.* :ommysql:localhost,syslog,cacti,password
#################
#### MODULES ####
#################
$ModLoad imuxsock # provides support for local system logging
$WorkDirectory /rsyslog/work # default location for work (spool) files
#$ActionQueueType LinkedList # use asynchronous processing
#$ActionQueueFileName srvrfwd # set file name, also enables disk mode
#$ActionResumeRetryCount -1 # infinite retries on insert failure
#$ActionQueueSaveOnShutdown on # save in-memory data if rsyslog shuts down
#*.* @@server:port
$ModLoad imklog # provides kernel logging support
$ModLoad immark # provides --MARK-- message capability
# provides UDP syslog reception
$ModLoad imudp
$UDPServerRun 514
# provides TCP syslog reception
$ModLoad imtcp
$InputTCPServerRun 514
Code: Select all
/* revert if you dont use the Cacti database */
$use_cacti_db = false;
if (!$use_cacti_db) {
$syslogdb_type = 'mysql';
$syslogdb_default = 'syslog';
$syslogdb_hostname = 'localhost';
$syslogdb_username = 'cacti';
$syslogdb_password = 'password';
$syslogdb_port = 3306;
}else{
$syslogdb_type = $database_type;
$syslogdb_default = $database_default;
$syslogdb_hostname = $database_hostname;
$syslogdb_username = $database_username;
$syslogdb_password = $database_password;
$syslogdb_port = $database_port;
}