All, I''m trying to get shorewall to log into a separate file. at the moment it''s spilling it''s guts into /var/log/messages i''ve done the following: cat /etc/rsyslog.d/shorewall.conf :msg, startswith, "Shorewall:" -/var/log/shorewall.log & ~ and restarted rsyslog, the file gets created but nothing is logged. even though at the same time var/log/messages is getting filled with logs. Any advice? ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb
On 02/20/2013 07:14 AM, Roland RoLaNd wrote:> > All, > > I''m trying to get shorewall to log into a separate file. > at the moment it''s spilling it''s guts into /var/log/messages > > i''ve done the following: > > cat /etc/rsyslog.d/shorewall.conf > :msg, startswith, "Shorewall:" -/var/log/shorewall.log > & ~ > > and restarted rsyslog, the file gets created but nothing is logged. even though at the same time var/log/messages is getting filled with logs. > > Any advice?Switch to using ULOG as recommended in Shorewall FAQ 16c. This will also eliminate Netfilter log messages in the output of ''dmesg'' (note that it is Netfilter in your kernel that is generating these messages and not Shorewall). -Tom -- Tom Eastep \ When I die, I want to go like my Grandfather who Shoreline, \ died peacefully in his sleep. Not screaming like Washington, USA \ all of the passengers in his car http://shorewall.net \________________________________________________ ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb
Hi, in RHEL6/CentOS6 ulogd is not available, so I use this rsyslog rule: # cat /etc/rsyslog.d/10-shorewall.conf if $syslogfacility-text == ''kern'' and $msg contains ''Shorewall'' then /var/log/shorewall/shorewall.log & ~ Best regards, -- Karel Ziegler e-mail: ziegleka@gmail.com On Wed, Feb 20, 2013 at 4:14 PM, Roland RoLaNd <r_o_l_a_n_d@hotmail.com>wrote:> > All, > > I''m trying to get shorewall to log into a separate file. > at the moment it''s spilling it''s guts into /var/log/messages > > i''ve done the following: > > cat /etc/rsyslog.d/shorewall.conf > :msg, startswith, "Shorewall:" -/var/log/shorewall.log > & ~ > > and restarted rsyslog, the file gets created but nothing is logged. even > though at the same time var/log/messages is getting filled with logs. > > Any advice? > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_feb > _______________________________________________ > Shorewall-users mailing list > Shorewall-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/shorewall-users >------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb