On 23/08/17, Eric Covener wrote: > > 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? > > You can grab part of the URL and put it in a new environment variable: > > # Optional: make sure we always have something > SetEnvIf Request_URI (.*) my-ctx=$1 > # Try to grab something context-root like > SetEnvIf Request_URI ^/+([^/]+)/ my-ctx=$1 > > Then add this to your current CustomLog or LogFormat > > %{my-ctx}e this braught me to the right track. Thanks, Oliver --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx