You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Tosh, Michael J" <mi...@lmco.com> on 2012/03/22 20:06:48 UTC

[users@httpd] LogFormat

I'm running a Bugzilla instance on my apache server.  Bugzilla contains two cookies when a user is logged in, Bugzilla_login (an integer) and Bugzilla_logincookie. (a hex string)  I'd like to capture the value of Bugzilla_login in my CustomLog.

I have the following CustomLog directive:
  CustomLog logs/my-access_log "%h %{Bugzilla_login}C %T %t"

Unfortunately, I get the following in my logfile:
10.0.0.1 ookie=gVcCn9lyLP 3 [22/Mar/2012:15:01:08 -0400]
10.0.0.2 254 14 [22/Mar/2012:15:01:14 -0400]

Does the %{}C Format do a regexp search or substring match?  How can I force it to match the full string?

Thanks,
Mike