in reply to adaptive syslog message parsing
Given that you could have many types of logged messages, with each having its own format specification, you might apply a regex to determine its type. Once an entry is classified, send it to an appropriate handler (subroutine) that knows how to parse that type of entry into its component parts, and then stuff the guts you care about into an appropriate data structure.
The structure might look like:
a hash of servers a hash of daemon names a hash of messages (and their cumulative frequencies)
For entries that do not classify to a handler you have coded, send these to an exception report (log file), and create the necessary handlers later as needed.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: adaptive syslog message parsing
by neosamuri (Friar) on Jun 07, 2007 at 04:47 UTC | |
by thezip (Vicar) on Jun 07, 2007 at 07:12 UTC |