Menu

#13 splitting message into process and message

open
Alejo S
Version 1.X (7)
5
2004-06-01
2004-06-01
Anonymous
No

Hi,

On my systems I get messages like

May 31 17:56:02 Hostname exim[5029]: 1AcMhb-0003fK-00 Message is frozen

They are logged via MySQL in these table columns:
date
time
host
message

The message field looks like
exim[5029]: 1AcMhb-0003fK-00 Message is frozen

I'd like to have the process (exim in this example) and its PID in an extra column.

Could be done with splitting on the first colon, if there's no colon, leave the process field empty.

Thanks and Greetings

Frank

Discussion


Log in to post a comment.