[Tutor] How to create a structure from a Log file

Mats Wichmann mats at wichmann.us
Sat Mar 9 13:02:57 EST 2019


On March 9, 2019 6:08:03 AM MST, Asad <asad.hasan2004 at gmail.com> wrote:
>Hi All ,
>
>       I would like to know , how can I approach this problem to create
>a easy structure from the logfile using python so I can review the
>logfiles
>quite efficiently . Please share suggestion tip or already written
>codes.
>
>
>
>Thanks,
>_______________________________________________
>Tutor maillist  -  Tutor at python.org
>To unsubscribe or change subscription options:
>https://mail.python.org/mailman/listinfo/tutor

The great things about logfiles is they're (typically) all text, and they have regular, prredictable  contents.  Before you can do anything useful, though, you have to figure out the pattern of the contents.  That can vary wildly... in a system logfile there may be many programs that contribute so the patterns can take more work to figure out; if it's a logfile for one specific program, it may be easier.  What kinds of things are you looking for?  What kind of data are you expecting?

You should be able to find lots of  examples of logfile processing on the internet, but whether any of that is of any use to you beyond providing a model for techniques is up to whether your logfile is like any of the ones being processed in those examples.

As in other replies - tell us more.   Also, just a general comment, this list usually works out better if you have more specific questions (I tried AAA and instead of giving me BBB I got CCC),
-- 
Sent from a mobile device with K-9 Mail. Please excuse my brevity.


More information about the Tutor mailing list