LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-14-2002, 11:05 AM   #1
santellij
LQ Newbie
 
Registered: Oct 2002
Posts: 8

Rep: Reputation: 0
Question apache logging chege question


I am trying to change the logging format from common to combined. I commented out the common line and uncommented the combined. After I restarted apache the logs did not change.

The next thing I tried was to stop apache, move the current log and then restart apache.

Am I missing something?


LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

# CustomLog /prod/apache/logs/access_log common
CustomLog /prod/apache/logs/access_log combined


TransferLog "|/prod/apache/bin/rotatelogs /prod/apache/logs/access_log 604800"
 
Old 11-14-2002, 01:12 PM   #2
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
The logs themself don't change unless you run a script over them to change them ... I had a script somewhere sometime but don't remember that part!

Just connect to the HTTP-Server and see if the logging changed then ...
 
Old 11-14-2002, 01:31 PM   #3
santellij
LQ Newbie
 
Registered: Oct 2002
Posts: 8

Original Poster
Rep: Reputation: 0
No, I understand that the past logs don't change but the new activity that is being logged is not including the referrer and user agent information that it should now include.
 
Old 11-15-2002, 01:47 AM   #4
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
What version of apache are you using ?
 
Old 11-15-2002, 08:36 AM   #5
santellij
LQ Newbie
 
Registered: Oct 2002
Posts: 8

Original Poster
Rep: Reputation: 0
1.3.26 on solaris8 (I know it's not linux)

I also tried to add the logging rules to the virtual host section for this

<VirtualHost xxx.org>
ServerAdmin xxx@xxx.org
ServerName xxx.org
DocumentRoot /prod/apache/htdocs
ErrorLog /prod/apache/logs/error_log
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
CustomLog /prod/apache/logs/access_log combined
TransferLog "|/prod/apache/bin/rotatelogs /prod/apache/logs/access_log 604800"

(goes on...)
 
Old 11-18-2002, 10:20 AM   #6
santellij
LQ Newbie
 
Registered: Oct 2002
Posts: 8

Original Poster
Rep: Reputation: 0
Thumbs down

No help?

Anyone know a good apache list?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache: prevent logging certain URLs ? michaelsanford Linux - Software 1 07-22-2005 08:48 PM
Disable logging RH 7.3 qmail-apache etc DropHit Red Hat 3 04-13-2005 05:44 AM
Apache mod_security logging everything? ridertech Linux - Security 2 08-13-2004 02:10 PM
Disable all Apache 2.x logging hakcenter Linux - Networking 2 12-05-2003 01:34 AM
Apache logging WiWa Linux - Software 2 08-13-2003 03:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration