From d9d1e3e44027da122e6f4e9306e9e88058d37288 Mon Sep 17 00:00:00 2001 From: Steven Dickenson Date: Fri, 11 Mar 2022 10:36:11 -0500 Subject: [PATCH] Support custom logging formats for Apache vhost --- defaults/main.yml | 3 +++ templates/etc.httpd.conf.d.iqserver.conf.j2 | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index 9fb3f94..dacf72f 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -23,6 +23,9 @@ iqserver_heap_size: "2048m" # Log level. Ships with DEBUG iqserver_base_log_level: DEBUG +# Pre-definfed logging format to use for Apache CustomLogging +iqserver_apache_log_format: json + # whether or not to create sample data when a new install is detected iqserver_create_sample_data: false diff --git a/templates/etc.httpd.conf.d.iqserver.conf.j2 b/templates/etc.httpd.conf.d.iqserver.conf.j2 index 50b5803..39e6ae4 100644 --- a/templates/etc.httpd.conf.d.iqserver.conf.j2 +++ b/templates/etc.httpd.conf.d.iqserver.conf.j2 @@ -13,5 +13,5 @@ ProxyPreserveHost On ProxyPassReverse {{ iqserver_url_context_path }} http://localhost:8070{{ iqserver_url_context_path }} ErrorLog /var/log/httpd/error_log - CustomLog /var/log/httpd/access_log json + CustomLog /var/log/httpd/access_log {{ iqserver_apache_log_format }}