Skip to content

Commit

Permalink
Merge pull request #9 from rhythmictech/alb-logging
Browse files Browse the repository at this point in the history
Support custom logging formats for Apache vhost
  • Loading branch information
sdickenson authored Mar 11, 2022
2 parents 58b15c2 + d9d1e3e commit 6cada74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion templates/etc.httpd.conf.d.iqserver.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
</VirtualHost>

0 comments on commit 6cada74

Please sign in to comment.