Syslog plugin
Moderators: Developers, Moderators
Syslog plugin
Anybody having trouble getting their plugin to bring up logs. I think mine is getting crushed from the sheer amount of data. Anyone have an example fof a suse linux box syslog-ng conf file. I have to capture certain events for SOX 404.
This is from Ubuntu, but they should be the same I would think.
http://vermeer.org/docs/1 is a great how-to
Code: Select all
options {
keep_hostname(yes);
long_hostnames(off);
sync(1);
log_fifo_size(1024);
};
source src { unix-stream("/dev/log"); internal(); };
source net {
udp();
tcp();
};
destination d_mysql { pipe("/tmp/mysql.pipe" template("INSERT INTO syslog_incoming
(host, facility, priority, level, tag, date, time, program, msg)
VALUES ( '$HOST', '$FACILITY', '$PRIORITY', '$LEVEL', '$TAG', '$YEAR-$MONTH-$DAY', '$HOUR:$MIN:$SEC',
'$PROGRAM', '$MSG' );\n") template-escape(yes)); };
log { source(net); destination(d_mysql); };
[size=75]Solaris 10 x86 [color=red][b]||[/b][/color] Cacti - 0.8.7 [color=red][b]||[/b][/color] MySQL - 5.0.45 [color=red][b]||[/b][/color] PHP - 5.2.6 [color=red][b]||[/b][/color] RRDTool - 1.2.23 [color=red][b]||[/b][/color] NET-SNMP - 5.4.1 [color=red][b]||[/b][/color] Syslog-ng 2.0.5
[url=http://www.indigo-networks.com]indigo-networks.com[/url][/size]
[url=http://www.indigo-networks.com]indigo-networks.com[/url][/size]
Who is online
Users browsing this forum: No registered users and 0 guests