in reply to comma delimited, syslog parsing
I know what i need the script to do. Parse out lines with specefic error messages(listed in an external text file), and look for corresponding uptime messages and append the date and time of that to the the original parsed line, and mail it.
Example of what i mean by corresponding line:
A error may get logged that says, for example, "SQL server is down", right now this would get parsed out fine, and in the right format. Later on an error message may come in that says "SQL server is up". This may not come in until after the downtime was logged and the syslog was cleared. I need to be able to have the script know to look for that message, and append the date and time of that message to the "sql server is down" event that was already parsed out. There will be dozens of downtime messages, and each with a different uptime event.
Now, everything works but the whole uptime aspect. Nothing has been done there, and my feeble coding skills are preventing me from getting much further.
I appreciate the help.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: comma delimited, syslog parsing
by dragonchild (Archbishop) on Oct 13, 2003 at 15:16 UTC | |
by jeff061 (Initiate) on Oct 13, 2003 at 16:05 UTC | |
by dragonchild (Archbishop) on Oct 13, 2003 at 16:39 UTC | |
by jeff061 (Initiate) on Oct 13, 2003 at 18:20 UTC | |
by dragonchild (Archbishop) on Oct 13, 2003 at 18:31 UTC | |
|