Skip to content
Snippets Groups Projects
Commit e8f210a2 authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "Format internal Fluentd logs"

parents 01bc357d d89a89c2
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,27 @@
</record>
</filter>
# Rename internal Fluent message field to match other logs. This removes
# all other fields by default, including the original message field. This is
# intented to avoid duplication of the log message and to prevent passing
# invalid dimensions to Monasca, if it is enabled. Note that if this step
# is moved to the format folder, then it will applied after the second step
# below which will break the logic.
<filter fluent.**>
@type parser
key_name message
format /^(?<Payload>.*)$/
</filter>
<filter fluent.**>
@type record_transformer
<record>
Hostname "#{Socket.gethostname}"
programname ${tag_parts[0]}
log_level ${tag_parts[1]}
</record>
</filter>
{% if enable_monasca | bool %}
# Kolla configures Fluentd to extract timestamps from OpenStack service
# logs, however these timestamps are not saved in the event and are not
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment