Skip to content

Commit

Permalink
Revert "Revert "17212 Extend Site Apache CustomLog LogFormat""
Browse files Browse the repository at this point in the history
Integration has been adapted.

This reverts commit 9a1b457.

Change-Id: Ib3c3fb47c74a821284002cf50439fb54380dd2c0
  • Loading branch information
SoloJacobs committed Oct 22, 2024
1 parent fe76209 commit bd793df
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .werks/17212.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[//]: # (werk v2)
# Extend Site Apache CustomLog LogFormat

key | value
---------- | ---
date | 2024-10-17T15:04:08+00:00
version | 2.3.0p20
class | feature
edition | cre
component | omd
level | 1
compatible | yes

The site Apache process writes to `var/log/apache/access_log`.
With this Werk, the log format includes the time taken to serve the request, in microseconds.
2 changes: 1 addition & 1 deletion omd/packages/apache-omd/skel/etc/apache/apache.conf
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ TypesConfig /etc/mime.types

# Loglevel and logfile configuration
LogLevel warn
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %D" combined

#
# Language configuration
Expand Down

0 comments on commit bd793df

Please sign in to comment.