472,101 Members | 1,451 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,101 software developers and data experts.

a python program which will summarise an apache web server log file

Please can anyone help me with this ----- I am very new in learning python.

This program should report the total number of successful web server accesses and, if the -p "projectname" option is given then the program should report the number of accesses (in total and as a percentage) under this project. the program should also use a -f option to indicate which web server log file is to be summarised. For example a system administrator might use the program in the following way:

$ ./webscan.py -f access.data

indicates that the total number of accesses as logged in access.data will be displayed.

$ ./webscan.py -f access.data -p /pipermail

indicates that the total number of web server accesses are displayed together with the number of web server accesses in the pipermail folder.

$ ./webscan.py -f access.data
Total number of accesses: 6
$ ./webscan.py -f access.data -p /pipermail
Total number of accesses: 6
Number of accesses in pipermail: 3 (50%)

Jan 2 '08 #1
1 1066
671 Expert 512MB
This is a homework or job assignment. We do not do other people's assignments. Either come back with a real question or don't spam with homework requests.
Jan 2 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by Will Stuyvesant | last post: by
1 post views Thread by Ron Davis | last post: by
2 posts views Thread by arvind | last post: by
14 posts views Thread by nicolasg | last post: by
3 posts views Thread by Mike Orr | last post: by
113 posts views Thread by John Nagle | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.