You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since we introduced the early encoding of events for the Elasticserach output, the format for the indexing errors logged has changed, at its current status only the fields of the event and the ES error message are logged, however we used to log the whole beat.Event, which included the Meta field.
The meta filed contains meaningful information to debug indexing issues like:
{
"log.level": "warn",
"@timestamp": "2024-08-13T16:42:09.008-0400",
"log.logger": "elasticsearch",
"log.origin": {
"function": "github.com/elastic/beats/v7/libbeat/outputs/elasticsearch.(*Client).applyItemStatus",
"file.name": "elasticsearch/client.go",
"file.line": 490
},
"message": "Cannot index event '{\"@timestamp\":\"2024-08-13T20:42:05.928Z\",\"host\":{\"name\":\"millennium-falcon\"},\"agent\":{\"version\":\"8.16.0\",\"ephemeral_id\":\"6d195bff-27a4-40c4-9b3e-c3ecb068f06e\",\"id\":\"6a760df8-a3e6-4369-886a-3f499c792302\",\"name\":\"millennium-falcon\",\"type\":\"filebeat\"},\"log\":{\"file\":{\"device_id\":\"40\",\"inode\":\"51817\",\"path\":\"/tmp/flog.log\"},\"offset\":101},\"string\":10,\"message\":\"index failure\",\"int\":\"not a number\",\"input\":{\"type\":\"filestream\"},\"ecs\":{\"version\":\"8.0.0\"}}\n' (status=400): {\"type\":\"document_parsing_exception\",\"reason\":\"[1:380] failed to parse field [int] of type [long] in document with id 'iVl6TZEBA82tHj8dCPpP'. Preview of field's value: 'not a number'\",\"caused_by\":{\"type\":\"illegal_argument_exception\",\"reason\":\"For input string: \\\"not a number\\\"\"}}, dropping event!",
"service.name": "filebeat",
"log.type": "event",
"ecs.version": "1.6.0"
}
The text was updated successfully, but these errors were encountered:
Since we introduced the early encoding of events for the Elasticserach output, the format for the indexing errors logged has changed, at its current status only the fields of the event and the ES error message are logged, however we used to log the whole
beat.Event
, which included theMeta
field.The meta filed contains meaningful information to debug indexing issues like:
Old log entry:
New format:
The text was updated successfully, but these errors were encountered: