)]}'
{"ansible/roles/common/templates/conf/filter/00-record_transformer.conf.j2":[{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"32388141e5aad31208a55afbfbd4f97d00a97e7b","unresolved":false,"context_lines":[{"line_number":36,"context_line":"    \u003c/record\u003e"},{"line_number":37,"context_line":"\u003c/filter\u003e"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"# Rename internal Fluent message field to match other logs"},{"line_number":40,"context_line":"\u003cfilter fluent.**\u003e"},{"line_number":41,"context_line":"    @type parser"},{"line_number":42,"context_line":"    key_name message"},{"line_number":43,"context_line":"    format /^(?\u003cPayload\u003e.*)$/"},{"line_number":44,"context_line":"\u003c/filter\u003e"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"\u003cfilter fluent.**\u003e"},{"line_number":47,"context_line":"    @type record_transformer"}],"source_content_type":"text/x-jinja2","patch_set":2,"id":"9fb8cfa7_e6b644dd","line":44,"range":{"start_line":39,"start_character":0,"end_line":44,"end_character":9},"updated":"2019-06-18 13:43:59.000000000","message":"Other parsers are included in the format directory.","commit_id":"70366598b9edd72b7bd221cf085e63b560aae6ad"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"17a5705581fd8ba99bc26b9ee5b6a17bca4cfbc4","unresolved":false,"context_lines":[{"line_number":36,"context_line":"    \u003c/record\u003e"},{"line_number":37,"context_line":"\u003c/filter\u003e"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"# Rename internal Fluent message field to match other logs"},{"line_number":40,"context_line":"\u003cfilter fluent.**\u003e"},{"line_number":41,"context_line":"    @type parser"},{"line_number":42,"context_line":"    key_name message"},{"line_number":43,"context_line":"    format /^(?\u003cPayload\u003e.*)$/"},{"line_number":44,"context_line":"\u003c/filter\u003e"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"\u003cfilter fluent.**\u003e"},{"line_number":47,"context_line":"    @type record_transformer"}],"source_content_type":"text/x-jinja2","patch_set":2,"id":"9fb8cfa7_0c7a9787","line":44,"range":{"start_line":39,"start_character":0,"end_line":44,"end_character":9},"in_reply_to":"9fb8cfa7_49a72151","updated":"2019-06-18 14:46:40.000000000","message":"If it causes a problem to move then let\u0027s just keep it here. Maybe add a comment so that someone doesn\u0027t \u0027tidy\u0027 it up in future.","commit_id":"70366598b9edd72b7bd221cf085e63b560aae6ad"},{"author":{"_account_id":17669,"name":"Doug Szumski","email":"doug@stackhpc.com","username":"DougSzumski"},"change_message_id":"119412327be0b080359f4e1e6b70deeee3af89f3","unresolved":false,"context_lines":[{"line_number":36,"context_line":"    \u003c/record\u003e"},{"line_number":37,"context_line":"\u003c/filter\u003e"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"# Rename internal Fluent message field to match other logs"},{"line_number":40,"context_line":"\u003cfilter fluent.**\u003e"},{"line_number":41,"context_line":"    @type parser"},{"line_number":42,"context_line":"    key_name message"},{"line_number":43,"context_line":"    format /^(?\u003cPayload\u003e.*)$/"},{"line_number":44,"context_line":"\u003c/filter\u003e"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"\u003cfilter fluent.**\u003e"},{"line_number":47,"context_line":"    @type record_transformer"}],"source_content_type":"text/x-jinja2","patch_set":2,"id":"9fb8cfa7_49a72151","line":44,"range":{"start_line":39,"start_character":0,"end_line":44,"end_character":9},"in_reply_to":"9fb8cfa7_e6b644dd","updated":"2019-06-18 14:37:35.000000000","message":"It is a bit of a pain that split, as Jeffrey pointed out a while back.\n\nIf I move this to the format directory, then it reverses the order in which these two filters are applied.\n\nThe fields added below are then dropped by the parser. I can retain them, but then I also retain the message field which is dropped above (I do not want the message field because it is passed to Monasca as a dimension, and may be an invalid dimension), so I need to add another filter using the record_transformer to remove the message field again. At that stage I begin to think it is simpler just to keep this as-is.\n\nI have been down a different path of trying to rename the message field, and it ends up creating a shallow copy which means that the renamed field is deleted when the message field is removed.\n\nHow strong are your feelings on moving this to the format directory?","commit_id":"70366598b9edd72b7bd221cf085e63b560aae6ad"}]}
