There is an error within filebeat plugin after integrating aws sqs with filebeat. The error occured after receivng this message: handleSQSMessage failed: json unmarshal sqs message body failed: invalid character 'e' in literal true (expecting 'r').
Using filebeat version 7.9.0 (latest).
The logs :
26T10:05:09.712Z DEBUG [processors] processing/processors.go:187 Publish event: { ... }
2020-08-26T10:05:09.713Z DEBUG [s3] s3/input.go:269 handleS3Objects succeed
2020-08-26T10:05:10.714Z DEBUG [logstash] logstash/async.go:172 2 events out of 2 events sent to logstash host Continue sending
2020-08-26T10:05:10.723Z DEBUG [publisher] memqueue/ackloop.go:160 ackloop: receive ack [1: 0, 2]
2020-08-26T10:05:10.724Z DEBUG [publisher] memqueue/eventloop.go:535 broker ACK events: count=2, start-seq=3, end-seq=4
2020-08-26T10:05:10.724Z DEBUG [acker] beater/acker.go:64 stateless ack {"count": 2}
2020-08-26T10:05:10.724Z DEBUG [publisher] memqueue/ackloop.go:128 ackloop: return ack to broker loop:2
2020-08-26T10:05:10.724Z DEBUG [publisher] memqueue/ackloop.go:131 ackloop: done send ack
2020-08-26T10:05:10.724Z DEBUG [s3] s3/input.go:290 Deleting message from SQS: 0xc00053a190
2020-08-26T10:05:10.780Z DEBUG [s3] s3/input.go:240 Processing 1 messages
2020-08-26T10:05:10.780Z ERROR [s3] s3/input.go:257 handleSQSMessage failed: json unmarshal sqs message body failed: invalid character 'e' in literal true (expecting 'r')
2020-08-26T10:05:13.837Z DEBUG [input] input/input.go:139 Run input
2020-08-26T10:05:23.837Z DEBUG [input] input/input.go:139 Run input
2020-08-26T10:05:33.837Z DEBUG [input] input/input.go:139 Run input
2020-08-26T10:05:43.837Z DEBUG [input] input/input.go:139 Run input
2020-08-26T10:05:53.837Z DEBUG [input] input/input.go:139 Run input
2020-08-26T10:06:03.838Z DEBUG [input] input/input.go:139 Run input
2020-08-26T10:06:13.838Z DEBUG [input] input/input.go:139 Run input
2020-08-26T10:06:23.838Z DEBUG [input] input/input.go:139 Run input
2020-08-26T10:06:33.838Z DEBUG [input] input/input.go:139 Run input
2020-08-26T10:06:43.838Z DEBUG [input] input/input.go:139 Run input
2020-08-26T10:06:53.839Z DEBUG [input] input/input.go:139 Run input
2020-08-26T10:07:03.839Z DEBUG [input] input/input.go:139 Run input
2020-08-26T10:07:13.839Z DEBUG [input] input/input.go:139 Run input
2020-08-26T10:07:23.839Z DEBUG [input] input/input.go:139 Run input
2020-08-26T10:07:33.840Z DEBUG [input] input/input.go:139 Run input
2020-08-26T10:07:40.780Z WARN [s3] s3/input.go:299 Half of the set visibilityTimeout passed, visibility timeout needs to be updated
2020-08-26T10:07:40.943Z INFO [s3] s3/input.go:306 Message visibility timeout updated to 300 seconds
2020-08-26T10:07:43.840Z DEBUG [input] input/input.go:139 Run input
2020-08-26T10:07:53.840Z DEBUG [input] input/input.go:139 Run input
2020-08-26T10:08:03.840Z DEBUG [input] input/input.go:139 Run input
2020-08-26T10:08:13.840Z DEBUG [input] input/input.go:139 Run input
2020-08-26T10:08:23.841Z DEBUG [input] input/input.go:139 Run input
2020-08-26T10:08:33.841Z DEBUG [input] input/input.go:139 Run input
2020-08-26T10:08:43.841Z DEBUG [input] input/input.go:139 Run input
2020-08-26T10:08:53.841Z DEBUG [input] input/input.go:139 Run input
2020-08-26T10:09:03.842Z DEBUG [input] input/input.go:139 Run input
2020-08-26T10:09:13.832Z DEBUG [input] input-cursor/clean.go:59 Start store cleanup {"input_type": "o365audit"}
2020-08-26T10:09:13.832Z DEBUG [input] input-cursor/clean.go:68 No entries to remove were found {"input_type": "o365audit"}
2020-08-26T10:09:13.832Z DEBUG [input] input-cursor/clean.go:69 Done store cleanup {"input_type": "o365audit"}
2020-08-26T10:09:13.842Z DEBUG [input] input/input.go:139 Run input
2020-08-26T10:09:23.842Z DEBUG [input] input/input.go:139 Run input
2020-08-26T10:09:33.842Z DEBUG [input] input/input.go:139 Run input
2020-08-26T10:09:43.842Z DEBUG [input] input/input.go:139 Run input
2020-08-26T10:09:53.843Z DEBUG [input] input/input.go:139 Run input
2020-08-26T10:10:03.843Z DEBUG [input] input/input.go:139 Run input
2020-08-26T10:10:10.943Z WARN [s3] s3/input.go:299 Half of the set visibilityTimeout passed, visibility timeout needs to be updated
2020-08-26T10:10:11.025Z INFO [s3] s3/input.go:306 Message visibility timeout updated to 300 seconds
2020-08-26T10:10:13.843Z DEBUG [input] input/input.go:139 Run input
2020-08-26T10:10:23.843Z DEBUG [input] input/input.go:139 Run input
2020-08-26T10:10:33.844Z DEBUG [input] input/input.go:139 Run input
2020-08-26T10:10:43.844Z DEBUG [input] input/input.go:139 Run input
2020-08-26T10:10:53.844Z DEBUG [input] input/input.go:139 Run input
2020-08-26T10:11:03.845Z DEBUG [input] input/input.go:139 Run input
How to fix this issue?
Thanks in advance.