Hello guys,
I'm having an error when adding a grok filter to my logstash config:
[FATAL] 2019-05-03 09:53:36.256 [LogStash::Runner] runner - The given configuration is invalid. Reason: Expected one of #, {, ,, ] at line 7, column 17 (byte 140) after filter {
I've tried to count every "{" in the file, but it doesn't look like there is any missing. Are you somehow able to help me identify the issue?
This is my file for the check:
filter {
grok {
overwrite => ["log"]
break_on_match => true
remove_field => ["log"]
match => [
"log","{"log":"{\"v\":\"%{GREEDYDATA:v}\",\"category\":\"%{GREEDYDATA:category}\",\"level\":\"%{GREEDYDATA:level}\",\"timestamp\":\"%{GREEDYDATA:timestamp}\",\"application\":{\"name\":\"%{GREEDYDATA:name}\",\"version\":\"%{GREEDYDATA:version}\",\"component\":\"%{GREEDYDATA:component}\",\"thread\":\"%{GREEDYDATA:thread}\",\"instanceId\":\"%{GREEDYDATA:instanceId}\",\"process\":\"%{GREEDYDATA:process}\"},\"context\":{\"sessionId\":\"%{GREEDYDATA:sessionId}\",\"tenantId\":\"%{GREEDYDATA:tenantId}\",\"principalId\":\"%{GREEDYDATA:principalId}\",\"ext\":{\"CorrelationId\":\"%{GREEDYDATA:CorrelationId}\",\"x-ol-channel\":\"%{GREEDYDATA:x-ol-channel}\",\"x-ol-correlation-id\":\"%{GREEDYDATA:x-ol-correlation-id}\",\"jti\":\"%{GREEDYDATA:jti}\",\"scenarioName\":\"%{GREEDYDATA:scenarioName}\",\"scenarioId\":\"%{GREEDYDATA:scenarioId}\",\"connector\":\"%{GREEDYDATA:connector}\",\"taskId\":\"%{GREEDYDATA:taskId}\"}},\"details\":{\"type\":\"%{GREEDYDATA:type}\",\"description\":\"%{GREEDYDATA:description}\",\"details\":{\"billing\":\"%{GREEDYDATA:billing}\",\"status\":\"%{GREEDYDATA:status}\"}}}\n","stream":%{GREEDYDATA:stream},"time":"%{GREEDYDATA:time}"}",
"log","%{GREEDYDATA:message}"
]
}
}
Thanks in advance,
Gerardo