Unfortunately that doesn't seem to have done anything.
The preserve_original_event tag was added to the tags field, but no event.original field is present within the new documents.
Here's the JSON of the document after turning on preserve original event, which doesn't seem to have anything sensitive.
{
"_index": ".ds-logs-carbon_black_cloud.alert_v7-default-2024.06.13-000001",
"_id": "kicGS5ABzfseZv7tiOgV",
"_version": 1,
"_score": 0,
"_source": {
"input": {
"type": "cel"
},
"agent": {
"name": "siemserver",
"id": "4960fd4a-73b7-45f5-93c1-063599ca45f3",
"ephemeral_id": "397caf15-8b24-4091-993e-efae08600322",
"type": "filebeat",
"version": "8.14.1"
},
"@timestamp": "2024-06-24T16:13:47.659Z",
"ecs": {
"version": "8.11.0"
},
"carbon_black_cloud": {
"alert": {
"category": "THREAT"
}
},
"data_stream": {
"namespace": "default",
"type": "logs",
"dataset": "carbon_black_cloud.alert_v7"
},
"elastic_agent": {
"id": "4960fd4a-73b7-45f5-93c1-063599ca45f3",
"version": "8.14.1",
"snapshot": false
},
"error": {
"message": "failed eval: ERROR: <input>:13:23: failed to unmarshal JSON message: invalid character '<' looking for beginning of value\n | }).do_request().as(resp, bytes(resp.Body).decode_json().as(body, {\n | ......................^"
},
"event": {
"agent_id_status": "verified",
"ingested": "2024-06-24T16:13:57Z",
"kind": "alert",
"dataset": "carbon_black_cloud.alert_v7"
},
"tags": [
"preserve_original_event",
"forwarded",
"carbon_black_cloud-alert"
]
},
"fields": {
"carbon_black_cloud.alert.category": [
"THREAT"
],
"elastic_agent.version": [
"8.14.1"
],
"elastic_agent.id": [
"4960fd4a-73b7-45f5-93c1-063599ca45f3"
],
"data_stream.namespace": [
"default"
],
"input.type": [
"cel"
],
"data_stream.type": [
"logs"
],
"tags": [
"preserve_original_event",
"forwarded",
"carbon_black_cloud-alert"
],
"agent.type": [
"filebeat"
],
"event.ingested": [
"2024-06-24T16:13:57.000Z"
],
"@timestamp": [
"2024-06-24T16:13:47.659Z"
],
"agent.id": [
"4960fd4a-73b7-45f5-93c1-063599ca45f3"
],
"event.module": [
"carbon_black_cloud"
],
"agent.name.text": [
"siemserver"
],
"ecs.version": [
"8.11.0"
],
"error.message": [
"failed eval: ERROR: <input>:13:23: failed to unmarshal JSON message: invalid character '<' looking for beginning of value\n | }).do_request().as(resp, bytes(resp.Body).decode_json().as(body, {\n | ......................^"
],
"data_stream.dataset": [
"carbon_black_cloud.alert_v7"
],
"agent.ephemeral_id": [
"397caf15-8b24-4091-993e-efae08600322"
],
"agent.name": [
"siemserver"
],
"agent.version": [
"8.14.1"
],
"elastic_agent.snapshot": [
false
],
"event.agent_id_status": [
"verified"
],
"event.kind": [
"alert"
],
"event.dataset": [
"carbon_black_cloud.alert_v7"
]
}
}
I can't imagine it's an issue with the elastic agent itself: I've got other integrations like Cisco IOS and O365 running on it that are ingesting and parsing fine.