Prefix Apache Traces with Part of the Url

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

 



Hello list,

I try to customize my apache logs.

currently I have this setting:

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

resulting in this log format:

/iDM/iDM.php 10.0.0.98 - - [23/Aug/2017:11:20:18 +0200] "POST /iDM/iDM.php HTTP/1.1" 401 -
/iAPI/db 10.0.0.98 - - [23/Aug/2017:11:21:08 +0200] "GET /iAPI/db HTTP/1.1" 200 175


What i like to have is something where only part of the URL String is prefixed for
every entry. Like this:


iDM: 10.0.0.98 - - [23/Aug/2017:11:20:18 +0200] "POST /iDM/iDM.php HTTP/1.1" 401 -
iAPI: 10.0.0.98 - - [23/Aug/2017:11:21:08 +0200] "GET /iAPI/db HTTP/1.1" 200 175

is such format possible?

Best Regards,

Oliver

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