Hi @stephenb
I am also getting a similar issue, i.e., "Failed to index 4 events in last 10s: events were dropped! Look at the event log of filebeat to view the event and cause."
Set logging.level: debug in filebeat, but still unable to understand what the issue is.
Filebeat version: 8.17.2
Elastic version: v8.17.4
{"log.level":"debug","@timestamp":"2025-05-29T11:41:55.611Z","log.logger":"elasticsearch","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/outputs/elasticsearch.(*Client).doBulkRequest","file.name":"elasticsearch/client.go","file.line":301},"message":"doBulkRequest: 4 events have been sent to elasticsearch in 840.569459ms.","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"debug","@timestamp":"2025-05-29T11:41:55.614Z","log.logger":"publisher","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/publisher/queue/memqueue.(*ackLoop).handleBatchSig","file.name":"memqueue/ackloop.go","file.line":80},"message":"ackloop: return ack to broker loop:4","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"debug","@timestamp":"2025-05-29T11:41:55.615Z","log.logger":"publisher","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/publisher/queue/memqueue.(*ackLoop).handleBatchSig","file.name":"memqueue/ackloop.go","file.line":82},"message":"ackloop: done send ack","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"debug","@timestamp":"2025-05-29T11:41:58.776Z","log.logger":"input.filestream","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/input/filestream.(*logFile).Read","file.name":"filestream/filestream.go","file.line":131},"message":"End of file reached: /var/log/app/app.log; Backoff now.","service.name":"filebeat","id":"app-logs","source_file":"filestream::app-logs::native::3623436-60","path":"/var/log/app/app.log","state-id":"native::3623436-60","ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2025-05-29T11:42:00.652Z","log.logger":"elasticsearch","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/outputs/elasticsearch.NewClient.func3","file.name":"elasticsearch/client.go","file.line":175},"message":"Failed to index 4 events in last 10s: events were dropped! Look at the event log to view the event and cause.","service.name":"filebeat","ecs.version":"1.6.0"}