Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Apache logfile and Analog report customization

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  htaccess question  
Author Message
briansz

External


Since: Aug 26, 2003
Posts: 2



(Msg. 1) Posted: Tue Aug 26, 2003 6:36 am
Post subject: Apache logfile and Analog report customization
Archived from groups: alt>apache>configuration (more info?)

Can anyone point me toward a web how-to or reference that demonstrates how
to exclude local IP addresses from my logfiles? I want to prevent
192.168.x.x and 127.0.x.x requests from being recorded with the traffic that
originates outside my LAN.

I Can't find a version # anyplace (including inside the config file), but
I assume it's apache v1.3. I'm running a stock distro of RH7.2 (from the
Hpaq site) on a Compaq Alphaserver DS20E.

Also, to what extent can Analog reports be customized? I'd like to
place the charting/graphing emphasis on files transferred instead of page
views (this machine is primarily a photo host). I'd also like to be able
to easily view the daily/hourly/totaL number of transfers for each file in
my ~/Pix directory (from 0, not the default of 20 or greater).

Does another package/program provide this functionality? I'm not very
aware of what's out there since I've only been using Linux exclusively for
the last four months or so. Chances are I'll need something with sources
or a specific Alpha Binary if Analog isn't going to cut it.

I've Googled for a couple hours on this, and while I have apache and the
basic Analog configuration working fine, I'm striking out on the
customization end of things.

Any help or insight is appreciated. Please reply to the group if
possible, I've been having some email issues over the last several days.

Best Regards,

Brian
briansz.DeleteThis@sitemouse.com

 >> Stay informed about: Apache logfile and Analog report customization 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Tue Aug 26, 2003 2:12 pm
Post subject: Re: Apache logfile and Analog report customization [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Brian <briansz DeleteThis @sitemouse.com> wrote:
 > Can anyone point me toward a web how-to or reference that demonstrates how
 > to exclude local IP addresses from my logfiles?

See <a style='text-decoration: underline;' href="http://httpd.apache.org/docs-2.0/env.html" target="_blank">http://httpd.apache.org/docs-2.0/env.html</a>

 > I Can't find a version # anyplace

httpd -v will tell you.

 > Also, to what extent can Analog reports be customized?

As much as you want, it depends how much you want to tinker with it.

 > Does another package/program provide this functionality?

webalizer is also nice.

Davide<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Apache logfile and Analog report customization 
Back to top
Login to vote
briansz

External


Since: Aug 26, 2003
Posts: 2



(Msg. 3) Posted: Tue Aug 26, 2003 10:46 pm
Post subject: Re: Apache logfile and Analog report customization [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Tue, 26 Aug 2003 11:12:10 +0000, Davide Bianchi wrote:

 > Brian <briansz DeleteThis @sitemouse.com> wrote:
  >> Can anyone point me toward a web how-to or reference that demonstrates how
  >> to exclude local IP addresses from my logfiles?
 >
<font color=purple> > See <a style='text-decoration: underline;' href="http://httpd.apache.org/docs-2.0/env.html</font" target="_blank">http://httpd.apache.org/docs-2.0/env.html</font</a>>
 >
  >> I Can't find a version # anyplace
 >
 > httpd -v will tell you.
 >
  >> Also, to what extent can Analog reports be customized?
 >
 > As much as you want, it depends how much you want to tinker with it.
 >
  >> Does another package/program provide this functionality?
 >
 > webalizer is also nice.
 >
 > Davide



Davide,

I tried what you suggested, and it turns out I am running v1.3.36. So I
viwed the analogous apache 1.3 docs pages. I printed out and studied the
sections on Log Files, Module mod_setenvif, and Environment
Variables in Apache. This is somewhat helpful, but at my level of
comprehension, something with more actual examples would be welcome.

My programming experience consists of an intro to BASIC on Apple II
equipment in the seventh grade (circa 1986), and while I'm not incapable
of editing Linux config files, the structure of these commands is not
familiar.

I tried adding the following lines below the 'Customize behavior based on
the browser configuration' section of /etc/httpd/conf/httpd.conf file and
restarted the httpd daemon:


#
# Enable conditional logging
#
<IfModule mod_setenvif.c>

#
# Mark requests from the loop-back interface
SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog
# Mark requests from the local subnet
SetEnvIf Remote_Addr "192\.168\.1\.1" dontlog
# Log what remains
CustomLog /var/log/httpd/access_log common env=!dontlog

</IfModule>


That didn't work. I'm still getting localhost and 192.168.1.1 log entries.

So then I tried changing the log location from /var/log/httpd/access_log (the
actual location of the file) to logs/access_log (I assume as referenced to
apache root).


#
# Enable conditional logging
#
<IfModule mod_setenvif.c>

#
# Mark requests from the loop-back interface
SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog
# Mark requests from the local subnet
SetEnvIf Remote_Addr "192\.168\.1\.1" dontlog
# Log what remains
CustomLog logs/access_log common env=!dontlog

</IfModule>


That doesn't work either.

What am I missing? Is the location of this string in the ~/httpd.conf
file improper, or is the command syntax incorrect? I used what is
available on the mentioned apache 1.3 doc pages as a template.


Regards,

Brian
briansz DeleteThis @sitemouse.com<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Apache logfile and Analog report customization 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
apache 'n' xml-rpc - hi I would want to know as he configure Xml-Rpc server on apache.

Apache and php - I have just innstalled Mandrake 9.1, Apache2 and php 4.3.0. I have added a line in httpd.conf - "AddType application/x-hhtpd-php .php3". The line is in the end of the config-file. Would this be enough to get php to work? I can't read php-files...

Apache::ASP - Has anybody used apache::ASP? On what platforms is it implemented? Is it working with COM components?

Apache 2 + PHP - Hello, are there still any issues about using Apache 2 with PHP? Is there a compatibility list somewhere around? Thanks, Florian -- Abkürzung unbekannt? ++ http://www.xgm.de +++

Version of Apache - Hello, I am new in apache, we run apcahe on solaris 8 how to know if i run the lastest version of apache on my systems and lastest secuirty patch if patchs for solaris exists Thanks
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]