Jon,
On 4/4/23 15:01, jonmcalexan...@wellsfargo.com.INVALID wrote:
Hi everybody,
I'm trying to understand the Logging Valve better for the Access Logs. I saw in
there that the Apache HTTPD Logging format is supported, but not entirely sure
on how to implement. Is something like this kosher? We would like to output
this in json format.
LogFormat "{ \"timestamp\":\"%{%Y-%m-%dT%H:%M:%S%z}t\", \"src_ip\":\"%a\", \"src_port\":\"%{canonical}p\", \"dest_ip\":\"%A\", \"dest_port\":\"%p\", \"http_host\":\"%{Host}i\", \"dest_name\":\"%V\", \"uri_path\":\"%U\", \"uri_query\":\"%q\", \"http_method\":\"%m\", \"status\":\"%>s\",
\"http_user_agent\":\"%{User-Agent}i\", \"http_referrer\":\"%{Referer}i\", \"cookie\":\"%{wfacookie}C %{JSESSIONID}C %{CSISESSION}C %{CSESESSION}C\", \"ssl_version\":\"%{version}c\", \"ssl_cipher\":\"%{cipher}c\", \"bytes_out\":\"%B\", \"x_forwarded_for\":\"%{X-Forwarded-For}i\", \"user\":\"%u\", \"http_content_type\":\"%{Content-Type}i\",
\"duration_microseconds\":\"%D\", \"protocol\":\"%H\", \"keep_alive\":\"%k\" }" json
What happens if I send this header to you?
Referer: ", "src_ip" : "127.0.0.1", "
-chris
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org