Merge "Set log message field name in Monasca Fluentd plugin"

This commit is contained in:
Zuul 2019-06-11 12:43:40 +00:00 committed by Gerrit Code Review
commit 806e6be181
3 changed files with 3 additions and 14 deletions

View File

@ -37,20 +37,6 @@
</filter>
{% if enable_monasca | bool %}
# Kolla Fluentd input config configures Fluentd to save all log messages
# under the 'Payload' field, however the fluentd-monasca plugin assumes
# that log messages are saved under the 'message' field. Here we map the
# 'Payload' field to the 'message' field so that log can be forwarded to
# Monasca.
<filter *.**>
@type record_transformer
enable_ruby true
<record>
message ${record["Payload"]}
</record>
remove_keys Payload
</filter>
# Kolla configures Fluentd to extract timestamps from OpenStack service
# logs, however these timestamps are not saved in the event and are not
# forwarded to Monasca. Here we save the timestamp which has been

View File

@ -39,6 +39,7 @@
password {{ monasca_agent_password }}
domain_id default
project_name {{ monasca_control_plane_project }}
message_field_name Payload
</store>
{% endif %}
</match>
@ -86,6 +87,7 @@
password {{ monasca_agent_password }}
domain_id default
project_name {{ monasca_control_plane_project }}
message_field_name Payload
</store>
{% endif %}
</match>

View File

@ -9,5 +9,6 @@
password {{ monasca_agent_password }}
domain_id default
project_name {{ monasca_control_plane_project }}
message_field_name Payload
</store>
</match>