Hi!
I use cacti 1.1.9 (Debian7) + syslog plugin(syslog-ng). And collects different .log files from same linux(debian) servers by rsyslog.
-------------------------
$ModLoad imfile #Load the imfile input module
$InputFilePollInterval 10
$InputFileName \usr\local\apache-tomcat-7.0.64-kre-be\logs\catalina.out.log
$InputFileTag tomcat7-catalina:
$InputFileStateFile stat-tomcat7-catalina
$InputFileSeverity Info
$InputRunFileMonitor
$template cas_log, " %msg% "
if $programname == 'tomcat7-catalina' then @10.10.10.7:514;cas_log
if $programname == 'tomcat7-catalina' then stop
--------------------------
This work well. But!
In cacti syslog webpage, column "Program" is containing not valid text. How is possible configured rsyslog for my.log file options, so that program cell is for example "tomcat7out".
In order to filter the different log files, from one server.
Cacti 1.1.9 + syslog 1.21 from remote rsyslog .log file
Moderators: Developers, Moderators
Cacti 1.1.9 + syslog 1.21 from remote rsyslog .log file
- Attachments
-
- syslog.program.png (68.98 KiB) Viewed 808 times
Re: Cacti 1.1.9 + syslog 1.21 from remote rsyslog .log file
I find resolving for my:
Elementary change:
$template cas_log, " %msg% "
to:
$template cas_log, " MyNameLog %msg% "
Elementary change:
$template cas_log, " %msg% "
to:
$template cas_log, " MyNameLog %msg% "
Who is online
Users browsing this forum: No registered users and 1 guest