diff --git a/templates/etc/haproxy/defaults.cfg.j2 b/templates/etc/haproxy/defaults.cfg.j2 index 8abe4df5..1a9930e0 100644 --- a/templates/etc/haproxy/defaults.cfg.j2 +++ b/templates/etc/haproxy/defaults.cfg.j2 @@ -3,7 +3,7 @@ {% endif %} {% if haproxy_defaults_logformat is defined %} - log-format {{ haproxy_defaults_logformat }} + log-format "{{ haproxy_defaults_logformat }}" {% endif %} {% if haproxy_defaults_mode != false %} diff --git a/templates/etc/haproxy/frontend.cfg.j2 b/templates/etc/haproxy/frontend.cfg.j2 index c6d51063..c8e53655 100644 --- a/templates/etc/haproxy/frontend.cfg.j2 +++ b/templates/etc/haproxy/frontend.cfg.j2 @@ -32,7 +32,7 @@ frontend {{ frontend.name }} {% endfor %} {% if frontend.logformat is defined %} - log-format {{ frontend.logformat }} + log-format "{{ frontend.logformat }}" {% endif %} {% if frontend.no_log | default(false) == true %}