Answered step by step
Verified Expert Solution
Question
1 Approved Answer
A common practice in programming is writing code to search through and extract data in file. For this we are going to extract data from
A common practice in programming is writing code to search through and extract data in file. For this we are going to extract data from an error log file.
Create a new project in PyCharm titled: YOURAMEAssignment
Insert the errorlogtxt file into your PyCharm project to use.
From the error log file, use Python regular expressions to extract the IP addresses. Then use Python to write the IP addresses to a text file. The addresses should be listed in a
column.
Your submission MUST include this file:
main.py must have main function in it Failure to include main function in your submission will result in Sun Mar ::notice ApacheUnix configured resuming normal operations
Sun Mar ::info Server built: Feb ::
Sun Mar ::notice Accept mutex: sysvsem Default: sysvsem
Sun Mar ::infoclient Connection reset by peer: client stopped connection before send body completed
Sun Mar ::infoclient Connection reset by peer: client stopped connection before send body completed
Sun Mar ::infoclient Connection reset by peer: client stopped connection before send body completed
Sun Mar ::infoclient Connection reset by peer: client stopped connection before send body completed
Sun Mar :: statistics: Use of uninitialized value in concatenation or string at homehttpdtwikilibTWikipm line
Sun Mar :: statistics: Can't create file homehttpdtwikidataMainWebStatisticstxt Permission denied
Sun Mar ::infoclient Connection reset by peer: client stopped connection before send body completed
Sun Mar ::infoclient Connection reset by peer: client stopped connection before send body completed
Sun Mar ::infoclient Connection reset by peer: client stopped connection before send body completed
Sun Mar ::infoclient Connection reset by peer: client stopped connection before send body completed
Sun Mar ::infoclient Connection reset by peer: client stopped connection before send body completed
Sun Mar ::infoclient Connection reset by peer: client stopped connection before send body completed
Sun Mar ::infoclient Connection reset by peer: client stopped connection before send body completed
Sun Mar ::infoclient Connection reset by peer: client stopped connection before send body completed
Sun Mar ::infoclient Connection reset by peer: client stopped connection before send body completed
Sun Mar ::infoclient Connection reset by peer: client stopped connection before send body completed
Sun Mar ::infoclient Connection reset by peer: client stopped connection before send body completed
Sun Mar ::infoclient Connection reset by peer: client stopped connection before send body completed
Sun Mar ::infoclient Connection reset by peer: client stopped connection before send body completed
Sun Mar ::infoclient Connection reset by peer: client stopped connection before send body completed
Sun Mar ::infoclient Connection reset by peer: client stopped connection before send body completed
Sun Mar ::infoclient Connection reset by peer: client stopped connection before send body completed
Sun Mar ::infoclient Connection reset by peer: client stopped connection before send body completed
Sun Mar ::infoclient Connection reset by peer: client stopped connection before send body completed
Sun Mar ::infoclient Connection reset by peer: client stopped connection before send body completed
Sun Mar ::infoclient Connection reset by peer: client stopped connection before send body completed
Sun Mar ::infoclient Connection reset by peer: client stopped connection before send body completed
Sun Mar ::infoclient Connection reset by peer: client stopped connection before send body completed
Sun Mar ::infoclient Connection reset by peer: clien
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started