I'm getting following error
Error: :exception=>#<LogStash::Json::ParserError: Unexpected character ('(' (code 40)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
my conf file looks like
input {
sqs {
QUEUE_DETAILS
codec => "plain"
}
}
filter {
mutate {
gsub => [
"message", "\[", "(",
"message", "\]", ")"
]
}
json {
source => "message"
}
}
output {
stdout{codec=> "rubydebug" }
}
my log is
{"output":"04:05:22.832345727: Error File below a monitored directory opened for writing (user=test) k8s.ns=iam-ce k8s.pod=redisearch-replicas-0 container=test k8s.ns=iam-ce k8s.pod=rtest container=test","priority":"Error","rule":"Write below monitored dir","time":"2022-07-12T04:05:22.832345727Z","output_fields":{"cluster":"eks","clustername":"ptest","container.id":"test","container.image.repository":null,"csp":"test","evt.time":1657598722832345727,"fd.name":"/usr/lib/test","k8s.ns.name":"test","k8s.pod.name":"redisearch-replicas-0","proc.aname[2]":null,"proc.cmdline":"test 1","proc.pcmdline":"busybox /health/test.sh 1","proc.pname":"busybox","region":"us-west-2","tenant_id":"123456789012","user.loginuid":-1,"user.name":null,"version":"1.0"}}