LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   apache logging chege question (https://www.linuxquestions.org/questions/linux-software-2/apache-logging-chege-question-35447/)

santellij 11-14-2002 10:05 AM

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"

markus1982 11-14-2002 12:12 PM

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 ...

santellij 11-14-2002 12:31 PM

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.

markus1982 11-15-2002 12:47 AM

What version of apache are you using ?

santellij 11-15-2002 07:36 AM

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...)

santellij 11-18-2002 09:20 AM

No help?

Anyone know a good apache list?


All times are GMT -5. The time now is 07:00 AM.