Skip to content

Commit

Permalink
Merge pull request #14 from MaastrichtUniversity/DHS-2160
Browse files Browse the repository at this point in the history
Add AUDIT_TRAIL to LogFormat for upload
  • Loading branch information
JonathanMELIUS committed Jun 22, 2022
2 parents 7029338 + 4828b7b commit 0768b87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/filebeat-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ filebeat.inputs:
paths:
- /var/log/httpd/apache.access.log
- /var/log/httpd/apache.error.log
- /var/log/httpd/apache.audit.log
tags: ["DAVRODSUPLOAD"]

# Disable filebeat monitoring
Expand Down
3 changes: 2 additions & 1 deletion config/upload-davrods-vhost.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
<VirtualHost *:80>
# We override the logfile location here so we can send these logs via Filebeat
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" proxy

LogFormat "%{[%Y-%m-%d %T]}t[AUDIT_TRAIL][%u][UPLOAD_DATA] %l %r" audit
ErrorLogFormat "%{X-Forwarded-For}i [%{u}t] [%-m:%l] [pid %P:tid %T] %7F: %E: [client\ %a] %M% ,\ referer\ %{Referer}i"
ErrorLog /var/log/httpd/apache.error.log
CustomLog /var/log/httpd/apache.access.log proxy
CustomLog /var/log/httpd/apache.audit.log audit

# Enter your server name here.
ServerName www.example.com
Expand Down

0 comments on commit 0768b87

Please sign in to comment.