From faf41c5c6b8706c891108b62dd41a6ef936780ea Mon Sep 17 00:00:00 2001 From: Jumpy Squirrel Date: Fri, 22 Dec 2023 14:35:11 +0100 Subject: [PATCH] fix(#213): fix log config --- httpd-container.conf | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/httpd-container.conf b/httpd-container.conf index f09c3b8..18fcb93 100644 --- a/httpd-container.conf +++ b/httpd-container.conf @@ -60,8 +60,8 @@ DocumentRoot "/static-html/htdocs" ErrorLog /dev/stdout ErrorLogFormat "{ \"@timestamp\":\"%{cu}tZ\", \"log.level\": \"WARN\", \"function\" : \"[%-m:%l]\" , \"process\" : \"[pid %P:tid %T]\" , \"message\" : \"%M\"}" LogLevel warn -LogFormat "{ \"@timestamp\":\"%{%Y-%m-%dT%T}t.%{usec_frac}t%{%z}t\", \"remoteIP\":\"%a\", \"host\":\"%V\", \"requestPath\":\"%U\", \"query\":\"%q\", \"method\":\"%m\", \"status\":\"%>s\", \"userAgent\":\"%{User-agent}i\", \"referer\":\"%{Referer}i\" }" json -TransferLog /dev/stdout +LogFormat "{ \"@timestamp\":\"%{%Y-%m-%dT%T}t.%{usec_frac}t%{%z}t\", \"log.level\": \"INFO\", \"remoteIP\":\"%a\", \"host\":\"%V\", \"requestPath\":\"%U\", \"query\":\"%q\", \"method\":\"%m\", \"status\":\"%>s\", \"userAgent\":\"%{User-agent}i\", \"referer\":\"%{Referer}i\" }" json +CustomLog /dev/stdout json TypesConfig /etc/apache2/mime.types @@ -134,9 +134,6 @@ TransferLog /dev/stdout SubstituteMaxLineLength 5M Substitute "s|aN3nNFwFoi5QkyPaVJ54dDTDc6HrrCYGAL6U6GUuyV2uvvekgOxqYe6K2hur|${HTTPD_CONF_PATH_PREFIX_NO_SLASHES}|n" - ErrorLog /dev/stdout - CustomLog /dev/stdout combined - LogLevel warn ServerSignature Off ErrorDocument 404 /404.html