I'm sending JSON logs using filebeat and suddenly I started to get this error:
{"log.level":"warn","@timestamp":"2022-12-08T23:33:51.575+0200","log.logger":"conditions","log.origin":{"file.name":"conditions/matcher.go","file.line":96},"message":"unexpected type mapstr.M in contains condition as it accepts only strings.","service.name":"filebeat","ecs.version":"1.6.0"}
Can't understand what exactly causing it. I checked all log entries, all of them are valid JSON's ...
Welcome to Community!
It seems your contains condition is throwing an error as it is expecting strings only. Check your filebeat processors configuration?
More details here: Define processors | Filebeat Reference [8.5] | Elastic
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.