From be42a3369f9484cf7aff9c5ff156d6f405b98846 Mon Sep 17 00:00:00 2001 From: Tiago Queiroz Date: Mon, 4 Dec 2023 13:49:21 +0100 Subject: [PATCH] Fix log entry (#37272) This commit fixes a warn log entry that was missing the section stating that log level debug contains more detailed information like the raw event and cause for the error. --- libbeat/outputs/elasticsearch/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libbeat/outputs/elasticsearch/client.go b/libbeat/outputs/elasticsearch/client.go index d8538d39615..4996dba887e 100644 --- a/libbeat/outputs/elasticsearch/client.go +++ b/libbeat/outputs/elasticsearch/client.go @@ -447,8 +447,8 @@ func (client *Client) bulkCollectPublishFails(result eslegclient.BulkResult, dat } } else { // drop stats.nonIndexable++ - client.log.Warnf("Cannot index event (status=%v): dropping event!", status) - client.log.Debugf("Cannot index event %#v (status=%v): %s, dropping event! Enable debug logs to view the event and cause.", data[i], status, msg) + client.log.Warnf("Cannot index event (status=%v): dropping event! Enable debug logs to view the event and cause.", status) + client.log.Debugf("Cannot index event %#v (status=%v): %s, dropping event!", data[i], status, msg) continue } }