Howto process syslog log files
There are tools out there which will process (and do other things) the syslog log files. But if you just need to look for specfic things in the logfiles, then somehow installing Snort might be a bit drastic. So what other options are there.
Syslog can log to files (which is quite normal), or FIFO pipes. The syntax for pipes are:
facilty.priority |<path>/<pipe -file>
To create the pipe use mkfifo:
# mkfifo <path>
An example of how to set this up in syslog.conf:
authpriv.* |/tmp/syslog-secure.pipe
authpriv.* /var/log/secure
The above example will make sure that authpriv.* will be send to both a file and a pipe. Now the next thing which is needed is a program (preferable a daemon), which will continue to read the pipe, and do interesting stuff
For that I use perl… To be continued
recent books
- Gary Gibson
- Nova War
- Adrian Tchaikovsky
- Heirs of the Blade
- Brian Herbert,Kevin J. Anderson
- Sisterhood of Dune
- Michael Cobley
- The Ascendant Stars
- Michael Cobley
- The Orphaned Worlds
- Markus Heitz
- The Revenge Of The Dwarves
- Christopher Paolini
- Inheritance
- Tom Holt
- The Better Mousetrap
- Frederick Forsyth
- The Afghan
- Terry Pratchett
- Snuff
charities
recent comments
- Balkan 2011 – Part 6 | Casper's Life on Balkan 2011 – Part 1
- Balkan 2011 – Part 5 | Casper's Life on Balkan 2011 – Part 1
- Balkan 2011 – Part 4 | Casper's Life on Balkan 2011 – Part 1
- Balkan 2011 – Part 2 | Casper's Life on Balkan 2011 – Part 3
- Balkan 2011 – Part 2 | Casper's Life on Balkan 2011 – Part 1
categories
- apple (61)
- books (5)
- chat (1)
- computers (32)
- driving (11)
- gps (7)
- graphics (1)
- hardware (18)
- howto (7)
- idm (6)
- internet (5)
- iphone (8)
- kvm (1)
- life in it's simplest form… (29)
- linux (11)
- motorbikes (20)
- music (3)
- networking (1)
- opinion (11)
- os (5)
- osx (26)
- photography (13)
- politics (8)
- programming (3)
- rant (18)
- rhel6 (1)
- science fiction (1)
- software (44)
- technology (7)
- trash (2)
- travel (20)
- tv (3)
- uncategorized (3)
- video (1)
- vmware (1)
- widget (1)
- wireless (1)
- wordpress (1)
- xen (1)







