Re: file like, regular expression driven, content splitter
- From: The Natural Philosopher <tnp@xxxxxxxxxxxxxxx>
- Date: Fri, 02 Dec 2011 17:06:29 +0000
J G Miller wrote:
On Friday, December 2nd, 2011, at 00:47:58h -0800, Markus asked:
Is there something like that (or simillar) possible in Linux?
Not with a virtual file,
You CAN open the logfile for reading and wait on its extension - as 'tail -f' does - and then analyse if not in real time, certainly at no great elapsed time.
Thst how I would do itk using a daemon written in C.. and NO REGEXPS. I'd just go looking for the patterns using custom code and string library functions.
Such a daemon could write other log files.
..
but just using the actual log file for analysis --
take a look at Analog, AWstats, W3Perl, Webalizer and see if one of those.
can be easily modified to take the regular expressions you need to use.
Or if you just want something very simple with no fancy interface,
take a look at logwatch which will do what you want from the command line
interface.
<http://sourceforge.NET/projects/logwatch/>
If you require something more "industrial strength" for reporting
on log files, then consider SNARE which is open source and can
be installed from source files --
<http://www.intersectalliance.COM/projects/SnareLinux/>
Perhaps too much choice, rather than too little?
- References:
- file like, regular expression driven, content splitter
- From: Markus
- Re: file like, regular expression driven, content splitter
- From: J G Miller
- file like, regular expression driven, content splitter
- Prev by Date: Re: file like, regular expression driven, content splitter
- Next by Date: Re: You are being tracked
- Previous by thread: Re: file like, regular expression driven, content splitter
- Next by thread: Re: file like, regular expression driven, content splitter
- Index(es):
Relevant Pages
|