way to flush /var/log/message

Alan J. Gagne alanjgagne at gmail.com
Mon May 21 20:19:09 UTC 2012


> On 5/21/2012 12:15 PM, Alan J. Gagne wrote:
> >/
> />/  You could look at sending iptables messages to /var/log/iptables using
> />/  rsyslog.
> />/
> />/  http://blog.shadypixel.com/log-iptables-messages-to-a-separate-file-with-rsyslog/
> />/
> />/  Alan
> />/
> />/
> /
> Alan:
>
> Thanks for the reply. I did an initial read of the page and it looks
> interesting. That being said, I'm going to have to take a few more
> passes to make sure I understand it.
>
> If I read correctly, it isn't a replacement for logging to
> /var/log/messages, just a way to filter those logs into another log that
> only gets what I want to see?

You can use it to redirect all iptables messages to a seperate log only.

You may want to look at ulogd in the fedora repo. I have used this in 
the past
for saving data to mysql.

Alan


Name        : ulogd
Arch        : x86_64
Version     : 1.24
Release     : 15.fc16
Size        : 131 k
Repo        : fedora
Summary     : The userspace logging daemon for netfilter
URL         : http://gnumonks.org/projects
License     : GPLv2
Description : Ulogd is an universal logging daemon for the ULOG target 
of netfilter, the
             : Linux 2.4+ firewalling subsystem. Ulogd is able to log 
packets in various
             : formats to different targets (text files, databases, 
etc..). It has an
             : easy-to-use plugin interface to add new protocols and new 
output targets.

Name        : ulogd-mysql
Arch        : x86_64
Version     : 1.24
Release     : 15.fc16
Size        : 11 k
Repo        : fedora
Summary     : MySQL output plugin for ulogd
URL         : http://gnumonks.org/projects
License     : GPLv2
Description : Ulogd-mysql is a MySQL output plugin for ulogd. It enables 
logging of
             : firewall information into a MySQL database.

Name        : ulogd-pcap
Arch        : x86_64
Version     : 1.24
Release     : 15.fc16
Size        : 9.2 k
Repo        : fedora
Summary     : PCAP output plugin for ulogd
URL         : http://gnumonks.org/projects
License     : GPLv2
Description : ulogd-pcap is a output plugin for ulogd that saves packet 
logs as PCAP file.
             : PCAP is a standard format that can be later analyzed by a 
lot of tools such as
             : tcpdump and wireshark.

Name        : ulogd-pgsql
Arch        : x86_64
Version     : 1.24
Release     : 15.fc16
Size        : 11 k
Repo        : fedora
Summary     : PostgreSQL output plugin for ulogd
URL         : http://gnumonks.org/projects
License     : GPLv2
Description : Ulogd-pgsql is a PostgreSQL output plugin for ulogd. It 
enables logging of
             : firewall information into a PostgreSQL database.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20120521/0890cd0c/attachment-0001.html>


More information about the users mailing list