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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • docdoc
    New Member
    • Jan 2008
    • 2

    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 "projectnam e" 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.


    examples
    $ ./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%)

    Thanks
  • oler1s
    Recognized Expert Contributor
    • Aug 2007
    • 671

    #2
    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.

    Comment

    Working...