Skip to content
Snippets Groups Projects
Commit 3010d4c3 authored by Isaac Prior's avatar Isaac Prior
Browse files

Fixes Monasca log transformer UTC offset exception

Monasca log transformer currently throws exceptions on encountering a 
non-UTC time offset (+0000):
"""
"exception": "Invalid format: \"2019-08-08 17:39:45 +0100\" is malformed at \" +0100\"",
"config_parsers":"yyyy-MM-dd HH:mm:ss +0000,ISO8601"}
"""

This fix allows logstash to interpret any valid ISO8601 offset.

Change-Id: Id70c3dd9cdcf681e955931f18a054e19cc284c0a
Closes-Bug: #1839597
parent ee5e99fc
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,7 @@ input { ...@@ -14,7 +14,7 @@ input {
filter { filter {
# Update the timestamp of the event based on the time in the message. # Update the timestamp of the event based on the time in the message.
date { date {
match => [ "[log][dimensions][timestamp]", "yyyy-MM-dd HH:mm:ss +0000", "ISO8601"] match => [ "[log][dimensions][timestamp]", "yyyy-MM-dd HH:mm:ss Z", "ISO8601"]
remove_field => [ "[log][dimensions][timestamp]", "[log][dimensions][Timestamp]" ] remove_field => [ "[log][dimensions][timestamp]", "[log][dimensions][Timestamp]" ]
} }
......
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