Re: is there a way to split access_log into two?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Yes, you can use Apache env vars:

CustomLog "|${cronolog} -z GMT ${logpath}/access.${shost}.%Y%m%d%H" common env=!special_log

CustomLog "|${cronolog} -z GMT ${logpath}/redir.${shost}.%Y%m%d%H" redirFormat env=rd

<location /redir>
    SetEnv rd 1
    SetEnv special_log 1
</location>




On Tue, Jan 28, 2014 at 1:21 PM, Qingshan Xie <xieq_49@xxxxxxxxx> wrote:
Hello, 

    I'd like to filter some non-business requests into a separate log file.  Is there any a way to do it?

Thanks, Q.Xie

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux