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
Looking at recent data in the event log, we are logging the Go representation of the event which now includes the JSON encoded event as an opaque blob. For the log messages below, we need to handle the encoded part correctly in the event before logging it so we can actually see the contents. Currently the logs look like the example below where the problematic part is the EncodedEvent:(*elasticsearch.encodedEvent)(0xc003933700)} key.
We need to log the actual JSON content of the event instead of the reference to it. Possibly we need a type used for logging representing this field as json.RawMessage or similar.
We have tests that attempt to verify that the actual event data is in the event log and it did not catch this, possibly because the event content is also contained in the error message from Elasticsearch.
Looking at recent data in the event log, we are logging the Go representation of the event which now includes the JSON encoded event as an opaque blob. For the log messages below, we need to handle the encoded part correctly in the event before logging it so we can actually see the contents. Currently the logs look like the example below where the problematic part is the
EncodedEvent:(*elasticsearch.encodedEvent)(0xc003933700)}
key.We need to log the actual JSON content of the event instead of the reference to it. Possibly we need a type used for logging representing this field as
json.RawMessage
or similar.We have tests that attempt to verify that the actual event data is in the event log and it did not catch this, possibly because the event content is also contained in the error message from Elasticsearch.
beats/filebeat/tests/integration/event_log_file_test.go
Lines 124 to 131 in 7c82c86
The text was updated successfully, but these errors were encountered: