Skip to content

vyasswaroop/parselog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

# Parse Log

A simple python script to parse a log file and for a given time period: #. gives errors per minute #. gives 50, 90, 95 percentile of the successful response time

Requires python3

Approach

  1. Read the log file and get list of error and success log within the particular time period separately.
  2. Group the error log per minute and print the count
  3. Separate out the response time from success log list and take percentile

Run time performance

  1. Made use of generators to read line by line of logfile so that whole logfile wont be loaded at one go
  2. If the file is too large it will take more time to process.

Improvement

  1. Since the logfile comes with sorted timestamp, the reading of logfile could be stopped after the time period specified ends.
  2. Error and Exception handling

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages