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

logfile problem, setEnvIf and logrotate

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  virtual users with external authentication and mo..  
Author Message
Andreas Born

External


Since: May 22, 2006
Posts: 1



(Msg. 1) Posted: Mon May 22, 2006 7:50 pm
Post subject: logfile problem, setEnvIf and logrotate
Archived from groups: alt>apache>configuration (more info?)

Hi,

I hope I'm not too offtopic here, since my question refers more likely
to a problem with logrotate than to apache config itself...

I split one of my vhost logs into two parts, depending on the url which
was requested. For this I use the SetEnvIf-directive:

e.g.:
SetEnvIf Request_URI "^/abc/" queryabc
CustomLog /logs/access_abc combvabc env=queryabc
CustomLog /logs/access_std combvstd env=!queryabc

However, this works great, but now logrotate rotates both logfiles
twice!

Does anybody know about this problem, or can point me to the right
direction?

Any help would be appreciated!


Andy

 >> Stay informed about: logfile problem, setEnvIf and logrotate 
Back to top
Login to vote
hans1

External


Since: Mar 29, 2004
Posts: 672



(Msg. 2) Posted: Wed Jul 26, 2006 10:52 pm
Post subject: Re: logfile problem, setEnvIf and logrotate [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Andreas Born" <Andreas.Born.TakeThisOut@gmx.de> schreef in bericht
news:4dec17F198p4rU1@individual.net...
> e.g.:
> SetEnvIf Request_URI "^/abc/" queryabc
> CustomLog /logs/access_abc combvabc env=queryabc
> CustomLog /logs/access_std combvstd env=!queryabc
>
> However, this works great, but now logrotate rotates both logfiles
> twice!
>
> Does anybody know about this problem, or can point me to the right
> direction?
What's in your /etc/logrotate.d/apache2?

HansH

 >> Stay informed about: logfile problem, setEnvIf and logrotate 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
logrotate problem - Hi, I am using logrotate and have the following problem: After the logrotate, the files are not written to any more. they stay size 0. I have to delete them and recreate them by restarting apache. then it works. what could be wrong? Also, the files...

logrotate windows problem - Hi I want to rotate logs on a regular basis. Apache 2.0.48 on win2000. Apache: c:\Programme\Apache Group\Apache2\bin\Apache.exe Logrotate: c:\Programme\Apache Group\Apache2\bin\rotatelogs.exe [...] c:\Programme\Apache Group\Apache2\bin>rotatelogs....

logrotate - Hi there, I would like to rotate my logs with logrotate. But somehow I cant get a good start with this. Maybe somebody could make an example on how to do that? I found the config file logrotate.conf, but everything man logrotate tells me is a bit ..

Apache rotatelogs vs. logrotate questions - Hi, I am just searching the perfect solution for logfile-rotation, I hope that readers of this group are somewhat familiar with that ;) The goal is to get a 24-hour rotation exactly at midnight and the logfiles named "%y-%m-%d-access.log" lo...

SetEnvif - Hi, I'm using setenvif to avoid loggein some entries in my log-file (I'm using Apache 1.3.19). My httpd.conf looks like: ... SetEnvIf Request_URI "^\/servlet.*" servletlog CustomLog /u01/app/oracle/product/iAS/Apache/Apache/logs/access_log ...
   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 ]