the "my_newfield" is created from this json document
{
"_index": "auditbeat-2023.07.31",
"_type": "_doc",
"_id": "aRlFrIkBBEGDHOFEcKA2",
"_version": 1,
"_score": null,
"_source": {
"event": {
"action": "connected-to",
"module": "auditd",
"outcome": "success",
"category": "audit-rule"
},
"ecs": {
"version": "1.1.0"
},
"auditd": {
"data": {
"a0": "5",
"tty": "(none)",
"arch": "x86_64",
"a1": "1c61150",
"syscall": "connect",
"a3": "d866133124f88",
"socket": {
"addr": "10.0.2.24",
"port": "53",
"family": "ipv4"
},
"exit": "0",
"a2": "10"
},
"sequence": 4192387,
"result": "success",
"message_type": "syscall",
"summary": {
"how": "/usr/lib/sm.bin/sendmail",
"actor": {
"secondary": "root",
"primary": "unset"
},
"object": {
"secondary": "53",
"primary": "10.0.2.24",
"type": "socket"
}
}
},
"my_client_ip": "%{[system][socket][client][ip]}",
"network": {
"direction": "outgoing"
},
"agent": {
"ephemeral_id": "de04927d-1df2-4c28-9831-e234b8239c26",
"type": "auditbeat",
"hostname": "userB",
"id": "1b2ffabb-287b-4a21-8e9e-7886e49673b0",
"version": "7.4.1"
},
"@version": "1",
"signature": "auditbeat",
"tag_1": "external-access",
"tag_3": "beats_input_raw_event",
"@timestamp": "2023-07-31T14:06:12.128Z",
"user": {
"name": "root",
"group": {
"id": "0",
"name": "root"
},
"saved": {
"name": "root",
"group": {
"id": "119",
"name": "smmsp"
},
"id": "0"
},
"filesystem": {
"name": "root",
"group": {
"id": "119",
"name": "smmsp"
},
"id": "0"
},
"id": "0",
"effective": {
"name": "root",
"group": {
"id": "119",
"name": "smmsp"
},
"id": "0"
}
},
"cloud": {
"machine": {
"type": "standard.medium"
},
"instance": {
"id": "i-0000021a",
"name": "default0-p0000000044-s0000000048-userb.novalocal"
},
"provider": "openstack",
"availability_zone": "nova"
},
"application": "auditbeat",
"tag_2": "beats123",
"host": {
"hostname": "userB",
"name": "userB",
"containerized": false,
"architecture": "x86_64",
"os": {
"name": "Ubuntu",
"platform": "ubuntu",
"version": "14.04.6 LTS, Trusty Tahr",
"codename": "trusty",
"kernel": "3.13.0-24-generic",
"family": "debian"
},
"id": "26b1ceca54c197067320f0bf634024c6"
},
"service": {
"type": "auditd"
},
"process": {
"executable": "/usr/lib/sm.bin/sendmail",
"name": "sendmail-mta",
"pid": 21089,
"ppid": 2387
},
"my_newfield": "10.0.2.24",
"destination": {
"port": "53",
"ip": "10.0.2.24"
}
},
"fields": {
"@timestamp": [
"2023-07-31T14:06:12.128Z"
]
},
"highlight": {
"event.module": [
"@kibana-highlighted-field@auditd@/kibana-highlighted-field@"
]
},
"sort": [
1690812372128
]
}