Netware Webserver - Disable Access logging?

This is Interesting: Free IT Magazines  
Home > Archive > Netware Webserver > March 2007 > Disable Access logging?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Disable Access logging?
m_jonis

2006-05-17, 1:11 pm

How/where do I configure the Apache Access Logs?

For some reason my apache server is filling up my SYS volume with iPrint
Access logging and I've looked in the iprint.conf and httpd.conf files
and I don't see anywhere for access logging (I've got the "warn" turned
on which is the default I believe)

Apache2 on NW 6.5 SP4a

Anders Gustafsson

2006-05-17, 1:11 pm

M_jonis,
> How/where do I configure the Apache Access Logs?
>

Httpd.conf

- Anders Gustafsson, Engineer, CNE6, ASE
NSC Volunteer Sysop
Pedago, The Aaland Islands (N60 E20)

Novell does not monitor these forums officially.
Enhancement requests for all Novell products may be made at
http://support.novell.com/enhancement

Using VA 5.51 build 315 on Windows 2000 build 2195

m_jonis

2006-05-18, 1:11 pm

In article <VA.0000196b.0029cd21@nomail.to.me>, dalton@nomail.to.me
says...
> M_jonis,
> Httpd.conf
>
> - Anders Gustafsson, Engineer, CNE6, ASE
> NSC Volunteer Sysop
> Pedago, The Aaland Islands (N60 E20)
>
> Novell does not monitor these forums officially.
> Enhancement requests for all Novell products may be made at
> http://support.novell.com/enhancement
>
> Using VA 5.51 build 315 on Windows 2000 build 2195
>
>


I see the LOCATION for the error_log (right below it it has the log
level which is warn)

Then a few sections down it list a location for the access_log but
there's no corresponding section for the "level" of that log file.

I'm looking for a way to shut off the access_log because for some reason
iPrint is causing the access_logs to be generated and they're filling up
the SYS volume (anytime someone access the page to install a printer
driver, it makes an entry in the access_log file)



Anders Gustafsson

2006-05-18, 1:11 pm

M_jonis,
> I'm looking for a way to shut off the access_log because for some reason
> iPrint is causing the access_logs to be generated and they're filling up
> the SYS volume (anytime someone access the page to install a printer
> driver, it makes an entry in the access_log file)
>

http://httpd.apache.org/docs/2.0/logs.html

Conditional Logs

There are times when it is convenient to exclude certain entries from the
access logs based on characteristics of the client request. This is easily
accomplished with the help of environment variables. First, an environment
variable must be set to indicate that the request meets certain conditions.
This is usually accomplished with SetEnvIf. Then the env= clause of the
CustomLog directive is used to include or exclude requests where the
environment variable is set. Some examples:

# Mark requests from the loop-back interface
SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog
# Mark requests for the robots.txt file
SetEnvIf Request_URI "^/robots\.txt$" dontlog
# Log what remains
CustomLog logs/access_log common env=!dontlog

- Anders Gustafsson, Engineer, CNE6, ASE
NSC Volunteer Sysop
Pedago, The Aaland Islands (N60 E20)

Novell does not monitor these forums officially.
Enhancement requests for all Novell products may be made at
http://support.novell.com/enhancement

Using VA 5.51 build 315 on Windows 2000 build 2195

m_jonis

2006-05-18, 7:11 pm

In article <VA.0000197e.005efc18@nomail.to.me>, dalton@nomail.to.me
says...
> M_jonis,
> http://httpd.apache.org/docs/2.0/logs.html
>
> Conditional Logs
>
> There are times when it is convenient to exclude certain entries from the
> access logs based on characteristics of the client request. This is easily
> accomplished with the help of environment variables. First, an environment
> variable must be set to indicate that the request meets certain conditions.
> This is usually accomplished with SetEnvIf. Then the env= clause of the
> CustomLog directive is used to include or exclude requests where the
> environment variable is set. Some examples:
>
> # Mark requests from the loop-back interface
> SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog
> # Mark requests for the robots.txt file
> SetEnvIf Request_URI "^/robots\.txt$" dontlog
> # Log what remains
> CustomLog logs/access_log common env=!dontlog
>
> - Anders Gustafsson, Engineer, CNE6, ASE
> NSC Volunteer Sysop
> Pedago, The Aaland Islands (N60 E20)
>
> Novell does not monitor these forums officially.
> Enhancement requests for all Novell products may be made at
> http://support.novell.com/enhancement
>
> Using VA 5.51 build 315 on Windows 2000 build 2195
>
>



Thank you. I was searching Novell's docs and couldn't find it, but I
forgot that Apache.org has some goodies.

Thanks again, you've been very helpful!
m_jonis

2006-05-22, 7:11 pm

In article <VA.0000197e.005efc18@nomail.to.me>, dalton@nomail.to.me
says...
> M_jonis,
> http://httpd.apache.org/docs/2.0/logs.html
>
> Conditional Logs
>
> There are times when it is convenient to exclude certain entries from the
> access logs based on characteristics of the client request. This is easily
> accomplished with the help of environment variables. First, an environment
> variable must be set to indicate that the request meets certain conditions.
> This is usually accomplished with SetEnvIf. Then the env= clause of the
> CustomLog directive is used to include or exclude requests where the
> environment variable is set. Some examples:
>
> # Mark requests from the loop-back interface
> SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog
> # Mark requests for the robots.txt file
> SetEnvIf Request_URI "^/robots\.txt$" dontlog
> # Log what remains
> CustomLog logs/access_log common env=!dontlog
>
> - Anders Gustafsson, Engineer, CNE6, ASE
> NSC Volunteer Sysop
> Pedago, The Aaland Islands (N60 E20)
>
> Novell does not monitor these forums officially.
> Enhancement requests for all Novell products may be made at
> http://support.novell.com/enhancement
>
> Using VA 5.51 build 315 on Windows 2000 build 2195
>
>


Hmmm, the plot thickens. I perused that website link you had. It seems
that Apache is setup to rotate the log files, but it's not doing it.

Here's the line in my Apache log file (this is on NetWare 6.5 SP4a,
BTW):

CustomLog "|sys:/apache2/bin/rotlogs.nlm sys:/apache2/logs/access_log
5M" common

From what I read, this is supposed to pipe the rotlogs.nlm (which is
there) and only keep 5 files, yes? (here's what my rotate.ini) says:

#
# rotate.ini - configuration file for use with PERL script rotate.pl
#
# Usage: PERL rotate.pl rotate.ini
#
# Configuration Directives:

# LogDir dir - dir is full path to directory of log files
LogDir sys:/apache2/logs

# ArchiveDir dir - dir is full path to directory where old log
files
# - are to be moved (archived)
ArchiveDir sys:/apache2/archive

# LogFileMatch regex - regex is regular expression with wildcards for
# - matching log files. e.g. access_log.*
LogFileMatch access_log.*

# MaxFiles number - number is maximum number of uncompressed files
to
# - keep in LogDir. Log files in excess of this
number
# - are deleted, moved, and/or compressed as
directed.
MaxFiles 5

# Delete - Excess log files are deleted.
#Delete

# Move - Excess log files are moved to ArchiveDir.
Move

# Compress - Excess log files are compressed. When combined
with
# - Move, compressed files are also moved to
ArchiveDir.
Compress

# ZipCommand command - Command to use when compressing the files. Use
the
# - keywords [archive] and [file] to represent each
# - archive and file to be processed. e.g.
# - ZipCommand jar cvf [archive] [file]
ZipCommand jar cvf [archive] [file]

# ZipSuffix suffix - suffix of compressed file. (for example .zip or
..jar)
# - [file]ZipSuffix = [archive]
ZipSuffix .jar
Anders Gustafsson

2006-05-23, 1:11 am

M_jonis,
> From what I read, this is supposed to pipe the rotlogs.nlm (which is
> there) and only keep 5 files, yes? (here's what my rotate.ini) says:
>

Where did you read that? The INI file is for rotate.pl AFAIK.

- Anders Gustafsson, Engineer, CNE6, ASE
NSC Volunteer Sysop
Pedago, The Aaland Islands (N60 E20)

Novell does not monitor these forums officially.
Enhancement requests for all Novell products may be made at
http://support.novell.com/enhancement

Using VA 5.51 build 315 on Windows 2000 build 2195

Simon Flood

2006-05-23, 7:12 am

On 22/05/2006 19:57, m_jonis wrote:

> Hmmm, the plot thickens. I perused that website link you had. It seems
> that Apache is setup to rotate the log files, but it's not doing it.
>
> Here's the line in my Apache log file (this is on NetWare 6.5 SP4a,
> BTW):
>
> CustomLog "|sys:/apache2/bin/rotlogs.nlm sys:/apache2/logs/access_log
> 5M" common
>
> From what I read, this is supposed to pipe the rotlogs.nlm (which is
> there) and only keep 5 files, yes? (here's what my rotate.ini) says:
>
> #
> # rotate.ini - configuration file for use with PERL script rotate.pl
> #
> # Usage: PERL rotate.pl rotate.ini


...snip..

rotate.ini is used by rotate.pl. rotate.pl is NOT rotlogs.nlm.

For information on using rotlogs.nlm to rotate log files see
http://httpd.apache.org/docs/2.0/pr...rotatelogs.html (rotlogs.nlm
is the NetWare equivalent of the *nix rotatelogs program).

Essentially from the example CustomLog command you quoted above, the
'5M' after 'access_log' means rotate the log (ie. start a new file) when
the size is 5MB. It doesn't mean keep 5 files - you happen to have 5
files because by coincidence you have restarted Apache (or the server) 5
times.

HTH

Simon
m_jonis

2006-05-29, 4:57 pm

In article <VA.000019a2.0015ff1a@nomail.to.me>, dalton@nomail.to.me
says...
> M_jonis,
> Where did you read that? The INI file is for rotate.pl AFAIK.
>
> - Anders Gustafsson, Engineer, CNE6, ASE
> NSC Volunteer Sysop
> Pedago, The Aaland Islands (N60 E20)
>
> Novell does not monitor these forums officially.
> Enhancement requests for all Novell products may be made at
> http://support.novell.com/enhancement
>
> Using VA 5.51 build 315 on Windows 2000 build 2195
>
>


Ah, you're right. So no go about the rotate.ini (rats)
m_jonis

2006-05-29, 4:57 pm

In article <0TBcg.1643$Mr.819@prv-forum2.provo.novell.com>,
S.M.Flood@ucs.cam.ac.uk says...
> On 22/05/2006 19:57, m_jonis wrote:
>
>
> ..snip..
>
> rotate.ini is used by rotate.pl. rotate.pl is NOT rotlogs.nlm.
>
> For information on using rotlogs.nlm to rotate log files see
> http://httpd.apache.org/docs/2.0/pr...rotatelogs.html (rotlogs.nlm
> is the NetWare equivalent of the *nix rotatelogs program).
>
> Essentially from the example CustomLog command you quoted above, the
> '5M' after 'access_log' means rotate the log (ie. start a new file) when
> the size is 5MB. It doesn't mean keep 5 files - you happen to have 5
> files because by coincidence you have restarted Apache (or the server) 5
> times.
>
> HTH
>
> Simon
>


Thanks (yes, 5M would be 5 MB). Okay, I guess I will have to figure out
how to script it to not log the iPrint stuff (not sure WHY iPrint is
such a hog on log files), or script a deletion or just not do access
logging at all.


Anders Gustafsson

2006-05-29, 4:57 pm

M_jonis,
> Ah, you're right. So no go about the rotate.ini (rats)
>

Yes, so what is it you want to do. Purge old logs?

- Anders Gustafsson, Engineer, CNE6, ASE
NSC Volunteer Sysop
Pedago, The Aaland Islands (N60 E20)

Novell does not monitor these forums officially.
Enhancement requests for all Novell products may be made at
http://support.novell.com/enhancement

Using VA 5.51 build 315 on Windows 2000 build 2195

Anders Gustafsson

2006-05-29, 4:57 pm

M_jonis,
> Okay, I guess I will have to figure out
> how to script it to not log the iPrint stuff
>

Just exclude it. It is documented in the apache docs.

- Anders Gustafsson, Engineer, CNE6, ASE
NSC Volunteer Sysop
Pedago, The Aaland Islands (N60 E20)

Novell does not monitor these forums officially.
Enhancement requests for all Novell products may be made at
http://support.novell.com/enhancement

Using VA 5.51 build 315 on Windows 2000 build 2195

m_jonis

2006-05-29, 4:57 pm

In article <VA.000019d8.0016c407@nomail.to.me>, dalton@nomail.to.me
says...
> M_jonis,
> Yes, so what is it you want to do. Purge old logs?
>
> - Anders Gustafsson, Engineer, CNE6, ASE
> NSC Volunteer Sysop
> Pedago, The Aaland Islands (N60 E20)
>
> Novell does not monitor these forums officially.
> Enhancement requests for all Novell products may be made at
> http://support.novell.com/enhancement
>
> Using VA 5.51 build 315 on Windows 2000 build 2195
>
>


Yes, that would be ideal. From what I could tell, I could write some
sort of script (although this is NetWare), so I guess some sort of
cronjob with toolbox or something?

--Kevin
Anders Gustafsson

2006-05-29, 4:57 pm

M_jonis,
> Yes, that would be ideal. From what I could tell, I could write some
> sort of script (although this is NetWare), so I guess some sort of
> cronjob with toolbox or something?


Well, you could write a script in NetBasic, PERL or Java. Or have a look
at TaskMaster from Avanti-Tech

- Anders Gustafsson, Engineer, CNE6, ASE
NSC Volunteer Sysop
Pedago, The Aaland Islands (N60 E20)

Novell does not monitor these forums officially.
Enhancement requests for all Novell products may be made at
http://support.novell.com/enhancement

Using VA 5.51 build 315 on Windows 2000 build 2195

m_jonis

2006-07-28, 1:11 pm

In article <VA.000019d9.0016c75a@nomail.to.me>, dalton@nomail.to.me
says...
> M_jonis,
> Just exclude it. It is documented in the apache docs.
>
> - Anders Gustafsson, Engineer, CNE6, ASE
> NSC Volunteer Sysop
> Pedago, The Aaland Islands (N60 E20)
>
> Novell does not monitor these forums officially.
> Enhancement requests for all Novell products may be made at
> http://support.novell.com/enhancement
>
> Using VA 5.51 build 315 on Windows 2000 build 2195
>
>


found out there's a few different options:

1) disable logging all together (as you noted above).

2) Use the Apache Admin server to specify the rotation and deletion.
This essentially creates an access_log.ini file that'll run the
rotate.pl on NetWare

3) Copy/modify/create the access_log.ini manually

Anders Gustafsson

2006-07-28, 1:11 pm

Did you try #4: Suppress certain events?

- Anders Gustafsson, Engineer, CNE6, ASE
NSC Volunteer Sysop
Pedago, The Aaland Islands (N60 E20)

Novell does not monitor these forums officially.
Enhancement requests for all Novell products may be made at
http://support.novell.com/enhancement

Using VA 5.51 build 315 on Windows 2000 build 2195

Andy_Konecny@ainsworth.REMOVESPAM.com

2007-03-21, 7:12 pm

> In article <VA.000019d9.0016c75a@nomail.to.me>, dalton@nomail.to.me

> 2) Use the Apache Admin server to specify the rotation and deletion.
> This essentially creates an access_log.ini file that'll run the
> rotate.pl on NetWare


or
edit the sys:\apache2\rotate.ini file to your desires
(ex., uncomment Delete, comment out Move and Compress, MaxFiles 20.)
the using either cron or schedule a task in NetWare Remote Manager
https://serverIP:8009, Manage Server, Schedule Tasks, set a new task to
either daily or weekly depending on how fast the logs grow, with the command of
perl sys:\apache2\rotate.pl sys:\apache2\rotate.ini

this applies to any reason for growth of the logs. the the case I figured
it out it was iFolder that was the load on it. Browsing, NetStorage, GW
WebAccess, and any other Apache based application will cause those logs to
grow and this helps keep them in check


Andy Konecny of Ainsworth in Toronto

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com