Log Parser

Python program for log file analysis.

By Myung Guk Lee in Theme Features

August 30, 2022

Log Parser In order to solve numerous bugs and problems, I need to look at log data generated by many drives. However, sometimes the log amount exceeds several hundred megabytes. In order to save time and effort, I created a parser python script, which is helping me to solve more problems in a timely manner while reducing time and effort.


How it works

[1] Enter the path of the file where the Enum values are defined. In the code used as an example, two enum define hpp files are read.

screenshot
screenshot

[2] Put the search list I want to find in the log file into a profile file. screenshot

[3] Specifies the log file location to be analyzed.

screenshot

Result

The log file in the example below and the file filtered by the parser program can be checked through the link below. https://github.com/truelinker/TraceParser/blob/main/LogExample.txt https://github.com/truelinker/TraceParser/blob/main/LogExample.txtFilterEnumID.txt And you can see in the picture below that a numeric enum value is converted to an enum string. screenshot

Posted on:
August 30, 2022
Length:
1 minute read, 160 words
Categories:
Theme Features
Series:
Getting Started
Tags:
hugo-site
See Also:
Flash FileSystem
Word Memorization App
Web RTC