2801 Fulllog Project Need Create Python Script Parse Attached Log File Report Many Bad Log Q37078400

File2801-full.log

For this project, youwill need to create a Python script that will parse through theattached log file and report how many bad login attempts for theuser “root” are in this log file.  You only need tooutput the number of bad user attempts in the following format,where XX is the integer for bad logins:

“There were XX amountof bad login attempts for the root user.”

You may not be able toaccess the log file. I just need the code I can input the file


Answer


filename = input(‘Enter file name: ‘)count = 0f = open(filename, ‘r’)sentence

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.