Re: Logfile analysing with pyparsing

2006-09-26 Thread Paul McGuire
"Andi Clemens" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > we had some problems in the last weeks with our mailserver. > Some messages were not delivered and we wanted to know why. > But looking through the logfile is a time consuming process. > So I wanted to write a par

Re: Logfile analysing with pyparsing

2006-09-26 Thread Nick Vatamaniuc
You can parse it just once, you just have to setup your data structure (the structure of your XML schema) and fill it up as you parse. For example, you can represent you data structure as a dictionaries in Python: message={ MID : { ' timestamp' : TIMESTAMP,

Logfile analysing with pyparsing

2006-09-25 Thread Andi Clemens
Hi, we had some problems in the last weeks with our mailserver. Some messages were not delivered and we wanted to know why. But looking through the logfile is a time consuming process. So I wanted to write a parser to analyse the logs and parse them as XML. But I have never written a parser befor