Operating System - HP-UX
1836484 Members
2537 Online
110101 Solutions
New Discussion

Access Log on HP Apache on HPUX

 
SOLVED
Go to solution
Shivkumar
Super Advisor

Access Log on HP Apache on HPUX

Dear Sirs,

I need to find the number hits per day on HP Apache from access log on HPUX 11i.

Does anynone has some shell script for this ?

Thanks,
Shiv
3 REPLIES 3
Joseph Loo
Honored Contributor
Solution

Re: Access Log on HP Apache on HPUX

hi,

i use the freeware, weblog expert lite to analyze the logs:

http://www.weblogexpert.com/

quite easy to use and a great reporting interface.

regards.
what you do not see does not mean you should not believe
Bejoy C Alias
Respected Contributor

Re: Access Log on HP Apache on HPUX

We r using our site for marketing purposes with oracle database as backend , so we made a simple jsp page which will open up as a pop up when the index page is loaded and updates our database to show the no of hits. If ur site uses some databases in backend u can use this.
Or u can use some third party log analyzers like AWStats .
Be Always Joy ......
Ralph Grothe
Honored Contributor

Re: Access Log on HP Apache on HPUX

Hi Shiv,

as the others already have said there are plenty of free webalizer tools that parse the contents of all kinds of access logs of HTTP, FTP, ... servers that use some sort of the common logfile format (or are easily adapteble).
These tools will also produce fancy graphics and statistics that can be viewed in a webbrowser.

However, if you don't care for such sophistication, you can very straight-forward count log entries for a given date.

e.g. at one of our webservers for today


# grep -c $(date +%e/%b/%Y) access_log
59135


But this is very crude counting.
To get something meaningful you would have to further split up the separate client IPs,
or even bundle the requests taht belong to the same session.
This is more or less what the weblog analizers do.
Madness, thy name is system administration