Hi
I am using Elastic agent integration to monitor ELB logs (via s3-sqs setup). I am able to see ELB logs in Elasticsearch cluster but my SQS inflight messages are keep on increasing. Looks like agent is not able to delete all the messages. I have given all relevant permissions to the SQS queue and the agent (Ref: Getting AWS logs from S3 using Filebeat and the Elastic Stack | Elastic Blog). Also on looking at agent logs I found below errors which may be cause of same.
{"log.level":"error","@timestamp":"2023-02-13T10:05:04.014Z","message":"sync.(*Once).Do(...)","component":{"binary":"filebeat","dataset":"elastic_agent.filebeat","id":"aws-s3-default","type":"aws-s3"},"log":{"source":"aws-s3-default"},"ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2023-02-13T10:05:04.014Z","message":"sync/once.go:59","component":{"binary":"filebeat","dataset":"elastic_agent.filebeat","id":"aws-s3-default","type":"aws-s3"},"log":{"source":"aws-s3-default"},"ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2023-02-13T10:05:04.014Z","message":"github.com/elastic/beats/v7/libbeat/publisher/pipeline.(*client).Close(0x55d9bdaaf7e0?)","component":{"binary":"filebeat","dataset":"elastic_agent.filebeat","id":"aws-s3-default","type":"aws-s3"},"log":{"source":"aws-s3-default"},"ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2023-02-13T10:05:04.014Z","message":"github.com/elastic/beats/v7/libbeat/publisher/pipeline/client.go:148 +0x59","component":{"binary":"filebeat","dataset":"elastic_agent.filebeat","id":"aws-s3-default","type":"aws-s3"},"log":{"source":"aws-s3-default"},"ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2023-02-13T10:05:04.014Z","message":"github.com/elastic/beats/v7/filebeat/beater.(*countingClient).Close(0xc000d764b0?)","component":{"binary":"filebeat","dataset":"elastic_agent.filebeat","id":"aws-s3-default","type":"aws-s3"},"log":{"source":"aws-s3-default"},"ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2023-02-13T10:05:04.014Z","message":"github.com/elastic/beats/v7/filebeat/beater/channels.go:145 +0x22","component":{"binary":"filebeat","dataset":"elastic_agent.filebeat","id":"aws-s3-default","type":"aws-s3"},"log":{"source":"aws-s3-default"},"ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2023-02-13T10:05:04.014Z","message":"github.com/elastic/beats/v7/x-pack/filebeat/input/awss3.(*sqsS3EventProcessor).processS3Events(0xc0001b7340, {0x55d9bbb86f98, 0xc000984fc0}, 0xc0016059c0, {0xc000e91400?, 0x0?})","component":{"binary":"filebeat","dataset":"elastic_agent.filebeat","id":"aws-s3-default","type":"aws-s3"},"log":{"source":"aws-s3-default"},"ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2023-02-13T10:05:04.014Z","message":"github.com/elastic/beats/v7/x-pack/filebeat/input/awss3/sqs_s3_event.go:329 +0x811","component":{"binary":"filebeat","dataset":"elastic_agent.filebeat","id":"aws-s3-default","type":"aws-s3"},"log":{"source":"aws-s3-default"},"ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2023-02-13T10:05:04.014Z","message":"github.com/elastic/beats/v7/x-pack/filebeat/input/awss3.(*sqsS3EventProcessor).ProcessSQS(0xc0001b7340, {0x55d9bbb86f98, 0xc000984fc0}, 0xc00103e180)","component":{"binary":"filebeat","dataset":"elastic_agent.filebeat","id":"aws-s3-default","type":"aws-s3"},"log":{"source":"aws-s3-default"},"ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2023-02-13T10:05:04.014Z","message":"github.com/elastic/beats/v7/x-pack/filebeat/input/awss3/sqs_s3_event.go:138 +0x333","component":{"binary":"filebeat","dataset":"elastic_agent.filebeat","id":"aws-s3-default","type":"aws-s3"},"log":{"source":"aws-s3-default"},"ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2023-02-13T10:05:04.014Z","message":"github.com/elastic/beats/v7/x-pack/filebeat/input/awss3.(*sqsReader).Receive.func1({0xc000cbb0e0, 0xc000d7e6a0, 0xc000d7e690, 0x0, 0x0, 0xc000d7e670, 0xc000d7e680, {}}, {0xc0f2a0b38f07cb57, 0x34689750ef, ...})","component":{"binary":"filebeat","dataset":"elastic_agent.filebeat","id":"aws-s3-default","type":"aws-s3"},"log":{"source":"aws-s3-default"},"ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2023-02-13T10:05:04.014Z","message":"github.com/elastic/beats/v7/x-pack/filebeat/input/awss3/sqs.go:91 +0x1bb","component":{"binary":"filebeat","dataset":"elastic_agent.filebeat","id":"aws-s3-default","type":"aws-s3"},"log":{"source":"aws-s3-default"},"ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2023-02-13T10:05:04.014Z","message":"created by github.com/elastic/beats/v7/x-pack/filebeat/input/awss3.(*sqsReader).Receive","component":{"binary":"filebeat","dataset":"elastic_agent.filebeat","id":"aws-s3-default","type":"aws-s3"},"log":{"source":"aws-s3-default"},"ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2023-02-13T10:05:04.014Z","message":"github.com/elastic/beats/v7/x-pack/filebeat/input/awss3/sqs.go:83 +0x5a5","component":{"binary":"filebeat","dataset":"elastic_agent.filebeat","id":"aws-s3-default","type":"aws-s3"},"log":{"source":"aws-s3-default"},"ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2023-02-13T10:05:07.560Z","message":"panic: close of closed channel","component":{"binary":"filebeat","dataset":"elastic_agent.filebeat","id":"aws-s3-default","type":"aws-s3"},"log":{"source":"aws-s3-default"},"ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2023-02-13T10:05:07.560Z","message":"goroutine 185 [running]:","component":{"binary":"filebeat","dataset":"elastic_agent.filebeat","id":"aws-s3-default","type":"aws-s3"},"log":{"source":"aws-s3-default"},"ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2023-02-13T10:05:07.560Z","message":"github.com/elastic/beats/v7/libbeat/processors/add_kubernetes_metadata.(*cache).stop(...)","component":{"binary":"filebeat","dataset":"elastic_agent.filebeat","id":"aws-s3-default","type":"aws-s3"},"log":{"source":"aws-s3-default"},"ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2023-02-13T10:05:07.560Z","message":"github.com/elastic/beats/v7/libbeat/processors/add_kubernetes_metadata/cache.go:97","component":{"binary":"filebeat","dataset":"elastic_agent.filebeat","id":"aws-s3-default","type":"aws-s3"},"log":{"source":"aws-s3-default"},"ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2023-02-13T10:05:07.560Z","message":"github.com/elastic/beats/v7/libbeat/processors/add_kubernetes_metadata.(*kubernetesAnnotator).Close(0xc000140780?)","component":{"binary":"filebeat","dataset":"elastic_agent.filebeat","id":"aws-s3-default","type":"aws-s3"},"log":{"source":"aws-s3-default"},"ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2023-02-13T10:05:07.560Z","message":"github.com/elastic/beats/v7/libbeat/processors/add_kubernetes_metadata/kubernetes.go:311 +0x4f","component":{"binary":"filebeat","dataset":"elastic_agent.filebeat","id":"aws-s3-default","type":"aws-s3"},"log":{"source":"aws-s3-default"},"ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2023-02-13T10:05:07.560Z","message":"github.com/elastic/beats/v7/libbeat/processors.Close(...)","component":{"binary":"filebeat","dataset":"elastic_agent.filebeat","id":"aws-s3-default","type":"aws-s3"},"log":{"source":"aws-s3-default"},"ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2023-02-13T10:05:07.560Z","message":"github.com/elastic/beats/v7/libbeat/processors/processor.go:58","component":{"binary":"filebeat","dataset":"elastic_agent.filebeat","id":"aws-s3-default","type":"aws-s3"},"log":{"source":"aws-s3-default"},"ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2023-02-13T10:05:07.560Z","message":"github.com/elastic/beats/v7/libbeat/publisher/processing.(*group).Close(0x7f47458a7fff?)","component":{"binary":"filebeat","dataset":"elastic_agent.filebeat","id":"aws-s3-default","type":"aws-s3"},"log":{"source":"aws-s3-default"},"ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2023-02-13T10:05:07.560Z","message":"github.com/elastic/beats/v7/libbeat/publisher/processing/processors.go:95 +0x159","component":{"binary":"filebeat","dataset":"elastic_agent.filebeat","id":"aws-s3-default","type":"aws-s3"},"log":{"source":"aws-s3-default"},"ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2023-02-13T10:05:07.560Z","message":"github.com/elastic/beats/v7/libbeat/processors.Close(...)","component":{"binary":"filebeat","dataset":"elastic_agent.filebeat","id":"aws-s3-default","type":"aws-s3"},"log":{"source":"aws-s3-default"},"ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2023-02-13T10:05:07.560Z","message":"github.com/elastic/beats/v7/libbeat/processors/processor.go:58","component":{"binary":"filebeat","dataset":"elastic_agent.filebeat","id":"aws-s3-default","type":"aws-s3"},"log":{"source":"aws-s3-default"},"ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2023-02-13T10:05:07.560Z","message":"github.com/elastic/beats/v7/libbeat/publisher/processing.(*group).Close(0x0?)","component":{"binary":"filebeat","dataset":"elastic_agent.filebeat","id":"aws-s3-default","type":"aws-s3"},"log":{"source":"aws-s3-default"},"ecs.version":"1.6.0"}
Not sure what these error are, plz help on this any guidance will be helpful.
TIA
Rubal