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
  • faisal79
    New Member
    • Feb 2008
    • 1

    #2
    Hello

    did you find answer to you Question yet......

    i have similar quetion so let me know if u got it

    thanks

    Comment

    Working...