SlideShare a Scribd company logo
For this part you will need to analyze the provided logfile part2.log. This files contains log
entries from a Linux server over the course of a month. The log entries are structured as follows:
Month Day H:M:S Level Component[ProcessID]: Content
For example the following log entry follows this format. Here the component is sshd(pam_unix)
and the content shows an authentication failure from remote host 218.188.2.4. Jun 14 15:16:01
combo sshd(pam_unix)[19939]: authentication failure; rhost=218.188.2.4
To analyze this logfile, perform the following steps:
1. Open the log file such that only a single line at a time is loaded into memory. [1]
2. Parse the log file and record the fields highlighted above. [5]
3. Create a datetime object to record the date. [2]
4. Find and print the three most commonly used components. [3]
5. Briefly describe these components as a comment in your program/notebook. One or two
sentences for each is sufficient. [3]
6. Create a plot that shows then these three common components were used throughout the day.
Divide the day into 2 periods (working hours and after hours) and plot the number of entrys for
each component during those periods. Working hours are between 9 and 5. [5]

More Related Content

PPT
Lotus 190-980 Domino 8.5 System Administration Fundamentals
DOCX
Low level design template (1)
PDF
Ad basic tech_workshop
DOC
Components lab
PDF
Batch creation of METS files
PPTX
Mule batch
PDF
Your notes DNA
DOC
Components lab
Lotus 190-980 Domino 8.5 System Administration Fundamentals
Low level design template (1)
Ad basic tech_workshop
Components lab
Batch creation of METS files
Mule batch
Your notes DNA
Components lab

Similar to For this part you will need to analyze the provided logfile part2.lo.pdf (20)

PDF
Prep 2-booklet-2nd-term-2016-2017
DOCX
fileop report
PDF
EnterpriseLogManagement.pdf
PDF
idoc.pub_elements-of-assembly-language-programming.pdf
PDF
CIMtrek Archiver
PDF
TechDoc - WMB - Administration - Logs
PDF
Trouble shoot with linux syslog
PPTX
O Level Coursework- System Analysis: Design Phase
PDF
Lecture 2(b) Android Internals A Quick Overview
PPTX
UNIT 1 Overview of GUI programing-1.pptx
DOCX
Sheet1[Project Name]0Gantt ChartSecurity Network UpgradeTeam BToda.docx
ODP
Managing the logs of your (Rails) applications - Arrrrcamp 2011
PDF
Wso2 esb-maintenance-guide
PDF
Linux textbook notes - Graham Helton
PDF
27.1.5 lab convert data into a universal format
PDF
Events Registration System Part 1
PPTX
Mule batch introduction
PDF
Implementation of a Deadline Monotonic algorithm for aperiodic traffic schedu...
DOCX
Dineshmaterial1 091225091539-phpapp02
Prep 2-booklet-2nd-term-2016-2017
fileop report
EnterpriseLogManagement.pdf
idoc.pub_elements-of-assembly-language-programming.pdf
CIMtrek Archiver
TechDoc - WMB - Administration - Logs
Trouble shoot with linux syslog
O Level Coursework- System Analysis: Design Phase
Lecture 2(b) Android Internals A Quick Overview
UNIT 1 Overview of GUI programing-1.pptx
Sheet1[Project Name]0Gantt ChartSecurity Network UpgradeTeam BToda.docx
Managing the logs of your (Rails) applications - Arrrrcamp 2011
Wso2 esb-maintenance-guide
Linux textbook notes - Graham Helton
27.1.5 lab convert data into a universal format
Events Registration System Part 1
Mule batch introduction
Implementation of a Deadline Monotonic algorithm for aperiodic traffic schedu...
Dineshmaterial1 091225091539-phpapp02
Ad

More from mail931892 (14)

PDF
I need help writing test Codepackage org.example;import j.pdf
PDF
I need help on this 5 and 6. here is the code so far import jav.pdf
PDF
I need a substantive comment on this postThe formal structure of .pdf
PDF
I need help debugging some code. I am trying to read a text file and.pdf
PDF
I have these files in picture I wrote most the codes but I stuck wit.pdf
PDF
I am trying to create a dynamic web project in Eclipse IDE that impl.pdf
PDF
How do I fix it in LinkedList.javaLinkedList.java Define.pdf
PDF
How do I fix it in LinkedList.javathis is what i didLabProgra.pdf
PDF
How do I fix it in LinkedList.javaLabProgram.javaLinkedList.jav.pdf
PDF
how can i build this as problem 2 of my code #include iostream.pdf
PDF
Hi All!I have a question regrading creating a subgraph or rather v.pdf
PDF
HeadWallRam Inc. has expanded its reach globally and needs to re-lay.pdf
PDF
Help I keep getting the same error when running a code. Below is the.pdf
PDF
Ginny (45) is unmarried. Who of the following may be Ginnys quali.pdf
I need help writing test Codepackage org.example;import j.pdf
I need help on this 5 and 6. here is the code so far import jav.pdf
I need a substantive comment on this postThe formal structure of .pdf
I need help debugging some code. I am trying to read a text file and.pdf
I have these files in picture I wrote most the codes but I stuck wit.pdf
I am trying to create a dynamic web project in Eclipse IDE that impl.pdf
How do I fix it in LinkedList.javaLinkedList.java Define.pdf
How do I fix it in LinkedList.javathis is what i didLabProgra.pdf
How do I fix it in LinkedList.javaLabProgram.javaLinkedList.jav.pdf
how can i build this as problem 2 of my code #include iostream.pdf
Hi All!I have a question regrading creating a subgraph or rather v.pdf
HeadWallRam Inc. has expanded its reach globally and needs to re-lay.pdf
Help I keep getting the same error when running a code. Below is the.pdf
Ginny (45) is unmarried. Who of the following may be Ginnys quali.pdf
Ad

Recently uploaded (20)

PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
PDF
FORM 1 BIOLOGY MIND MAPS and their schemes
PDF
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
PDF
advance database management system book.pdf
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
Hazard Identification & Risk Assessment .pdf
PPTX
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
PDF
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
PPTX
Virtual and Augmented Reality in Current Scenario
PPTX
B.Sc. DS Unit 2 Software Engineering.pptx
PDF
My India Quiz Book_20210205121199924.pdf
PPTX
20th Century Theater, Methods, History.pptx
PDF
Practical Manual AGRO-233 Principles and Practices of Natural Farming
PDF
1_English_Language_Set_2.pdf probationary
PPTX
Introduction to Building Materials
PDF
What if we spent less time fighting change, and more time building what’s rig...
PDF
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
PDF
Trump Administration's workforce development strategy
PPTX
Computer Architecture Input Output Memory.pptx
A powerpoint presentation on the Revised K-10 Science Shaping Paper
FORM 1 BIOLOGY MIND MAPS and their schemes
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
advance database management system book.pdf
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Hazard Identification & Risk Assessment .pdf
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
Virtual and Augmented Reality in Current Scenario
B.Sc. DS Unit 2 Software Engineering.pptx
My India Quiz Book_20210205121199924.pdf
20th Century Theater, Methods, History.pptx
Practical Manual AGRO-233 Principles and Practices of Natural Farming
1_English_Language_Set_2.pdf probationary
Introduction to Building Materials
What if we spent less time fighting change, and more time building what’s rig...
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
Trump Administration's workforce development strategy
Computer Architecture Input Output Memory.pptx

For this part you will need to analyze the provided logfile part2.lo.pdf

  • 1. For this part you will need to analyze the provided logfile part2.log. This files contains log entries from a Linux server over the course of a month. The log entries are structured as follows: Month Day H:M:S Level Component[ProcessID]: Content For example the following log entry follows this format. Here the component is sshd(pam_unix) and the content shows an authentication failure from remote host 218.188.2.4. Jun 14 15:16:01 combo sshd(pam_unix)[19939]: authentication failure; rhost=218.188.2.4 To analyze this logfile, perform the following steps: 1. Open the log file such that only a single line at a time is loaded into memory. [1] 2. Parse the log file and record the fields highlighted above. [5] 3. Create a datetime object to record the date. [2] 4. Find and print the three most commonly used components. [3] 5. Briefly describe these components as a comment in your program/notebook. One or two sentences for each is sufficient. [3] 6. Create a plot that shows then these three common components were used throughout the day. Divide the day into 2 periods (working hours and after hours) and plot the number of entrys for each component during those periods. Working hours are between 9 and 5. [5]