LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How do I webalizer a specific link / URL ? (https://www.linuxquestions.org/questions/linux-general-1/how-do-i-webalizer-a-specific-link-url-789874/)

ytd 02-18-2010 01:05 AM

How do I webalizer a specific link / URL ?
 
Hello everyone,

I have a question for you guys. How do I monitor a URL (link) in my server ? I want to see how many times a page has been accessed. In webalizer, there is such thing but there's a TOP 30 URL access, and I want to monitor (count) a specific URL. Is that possible ? If yes, how and what do I need to do.

They say:

Securing and Optimizing Linux: RedHat Edition -A Hands on Guide
Prev Chapter 30. Optional component to install with Apache Next
30.3. Configure the /etc/webalizer.conf file

The /etc/webalizer.conf is the default configuration file for Webalizer. With it, you can specify which directories or pages in your web site to analyze, which URLs to hide, and so on. By default, the Webalizer program will install a sample configuration file named webalizer.conf.sample under the /etc/ directory of Linux. You can use this file to configure your choices and then rename it webalizer.conf, and the Webalizer program will be able to find and use it. A lot of options exist and it's important to read the documentation that comes with Webalizer for more information on all of the different setting and parameters. Also, it's important to note that we comment in this Webalizer configuration file only the most common and used parameters.

Edit the webalizer.conf.sample file, vi /etc/webalizer.conf.sample or create the webalizer.conf file, touch /etc/webalizer.conf and add/change in this file:

LogFile /var/log/httpd/access_log
OutputDir /home/httpd/usage
Incremental yes
PageType htm*
PageType cgi
PageType php
HideURL *.gif
HideURL *.GIF
HideURL *.jpg
HideURL *.JPG
HideURL *.ra
IgnoreURL /taskbar*


But I don't get it, what should I type in order for the webalizer to monitor a specific URL. :(

Thanks in advance.

smoker 02-18-2010 06:33 AM

A lot of options exist and it's important to read the documentation that comes with Webalizer for more information on all of the different setting and parameters.

IncludeURL name

http://www.mrunix.net/webalizer/webalizer.1.html

ytd 02-19-2010 06:49 AM

One last question (I hope :) )

How do I need to write ?

IncludeURL http://mysite/webalizerpage

or do I need to enter just the webpage, for example:

/thewebalizerpagethatIneedtomonitor/

Maybe it sounds silly, but... I preffer to ask rather than to test.

smoker 02-19-2010 07:19 AM

If your type /thewebalizerpagethatIneedtomonitor/ in your browser does it work ?

If not then you need to use the URL (URI)

http://en.wikipedia.org/wiki/Uniform...Ls_as_locators

Sometimes trying things is quicker.

ytd 02-20-2010 02:38 AM

I can't test it, don't have enough time.
Ofc it dosen't work if I only type /thewebalizerpagethatInedtomonitor/
I already put http://www.mysite/thewebalizerpage/

I hope it will work.

Sanford Stein 03-09-2010 02:27 PM

A followup question: Is it possible to have two webalizers running on the same server, one which provides monthly usage stats for the server in general, and another which provides stats for a specific domain only?


All times are GMT -5. The time now is 10:12 PM.