Thursday, June 2, 2022

Top 10 ip address access with how many time and last time access in Unix.

Requirement: 

Top 10 ip address access with how many time and last time access.

Which can parse an Apache access log file and it can extract the top 10 domain name or IP address which have accessed any page of the web site; how many times the domain or the IP address has accessed any page of the web site and the last time of access of the web site. The date should be printed as YEAR-MONTH-DAY. 

Input: access.log which contain 3485 records.

access.log





Result:

Output


No comments:

Post a Comment