Skip to content

Separate the log entries into instances where the server was running fine and not working fine. Compare the time difference between these instances to find the maximum uptime of host.

Notifications You must be signed in to change notification settings

NEBUSALIM/Analysis-of-Server-Logs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Exercise 2 : Analysis of Server Logs Problem Statement : • Check logs in the Logs.csv file and find the uptime of each host Solution Abstract :

  1. Separate the log entries into instances where the server was running fine and not working fine.
  2. Compare the time difference between these instances to find the maximum uptime of host. Tools/Packages Used: • Datetime • Numpy • Pandas Result :
  3. Successfully read the log files.
  4. Converted the log_time to dateTime format for further processing.
  5. Sorted the data based on log_time.
  6. Grouped the data based on ‘host’ so that the maximum uptime for each host can be calculated.
  7. Created two dataframes, one for the instances when the server was up and running and another when it was not up and running.
  8. Calculated the difference in log_time between these two dataframes to get the uptime for the host.
  9. The highest value from this is taken as the maximum uptime for the host.
  10. Refer appendix for final results Future Scope :
  11. We can predict future failures provided we have data on network traffic, server load, performance matrix etc.

About

Separate the log entries into instances where the server was running fine and not working fine. Compare the time difference between these instances to find the maximum uptime of host.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published