diff --git a/ansible/roles/horizon/templates/horizon.conf.j2 b/ansible/roles/horizon/templates/horizon.conf.j2 index 0c6cc0eb25..e5f851aeba 100644 --- a/ansible/roles/horizon/templates/horizon.conf.j2 +++ b/ansible/roles/horizon/templates/horizon.conf.j2 @@ -15,7 +15,8 @@ TraceEnable off LogLevel warn - ErrorLog /var/log/kolla/horizon/horizon.log + ErrorLogFormat "%{cu}t %M" + ErrorLog /var/log/kolla/horizon/horizon-error.log LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b %D \"%{Referer}i\" \"%{User-Agent}i\"" logformat CustomLog /var/log/kolla/horizon/horizon-access.log logformat diff --git a/releasenotes/notes/horizon-log-bugfix-b89f502c2f3ccaf9.yaml b/releasenotes/notes/horizon-log-bugfix-b89f502c2f3ccaf9.yaml new file mode 100644 index 0000000000..cda884b721 --- /dev/null +++ b/releasenotes/notes/horizon-log-bugfix-b89f502c2f3ccaf9.yaml @@ -0,0 +1,8 @@ +--- +fixes: + - | + Fixes an issue where Fluentd was parsing Horizon WSGI application logs + incorrectly. + Horizon error logs are now written to ``horizon-error.log`` instead of + ``horizon.log``. + See `LP#1898174 `__