Skip to content

Commit 6d51115

Browse files
committed
Conver log.syslog.procid to keyword
1 parent 2294e65 commit 6d51115

File tree

2 files changed

+32
-23
lines changed

2 files changed

+32
-23
lines changed

packages/system/data_stream/auth/elasticsearch/ingest_pipeline/journald.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,12 @@ processors:
335335
tag: set_ecs-version
336336
field: ecs.version
337337
value: 8.11.0
338+
- convert:
339+
tag: convert_procid
340+
field: log.syslog.procid
341+
type: string
342+
ignore_missing: true
343+
if: ctx.log?.syslog?.procid != null
338344
- remove:
339345
description: Remove the extra fields added by the Journald input
340346
ignore_missing: true
Lines changed: 26 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,53 @@
11
{
22
"@timestamp": "2023-09-28T10:10:12.175Z",
33
"agent": {
4-
"ephemeral_id": "dd9836d3-6523-42dd-a41d-2ae39dee4512",
5-
"id": "a5c9a90f-3d55-4f2d-9611-0542c1c2e478",
6-
"name": "docker-fleet-agent",
4+
"ephemeral_id": "37b63105-bf8c-40bd-9698-f79cddec37ba",
5+
"id": "6eae09dd-ac20-43be-b710-080fcf41b943",
6+
"name": "elastic-agent-99126",
77
"type": "filebeat",
8-
"version": "8.10.3"
8+
"version": "8.18.0"
99
},
1010
"data_stream": {
1111
"dataset": "system.auth",
12-
"namespace": "ep",
12+
"namespace": "44107",
1313
"type": "logs"
1414
},
1515
"ecs": {
1616
"version": "8.11.0"
1717
},
1818
"elastic_agent": {
19-
"id": "a5c9a90f-3d55-4f2d-9611-0542c1c2e478",
19+
"id": "6eae09dd-ac20-43be-b710-080fcf41b943",
2020
"snapshot": false,
21-
"version": "8.10.3"
21+
"version": "8.18.0"
2222
},
2323
"event": {
2424
"agent_id_status": "verified",
2525
"dataset": "system.auth",
26-
"ingested": "2023-10-23T09:54:41Z",
26+
"ingested": "2025-07-18T10:05:01Z",
2727
"kind": "event",
2828
"original": "<30>1 2023-09-28T12:10:12.175599+02:00 test.lab.com systemd 153589 - - Stopped target Default.",
2929
"timezone": "+00:00"
3030
},
3131
"host": {
32-
"architecture": "aarch64",
33-
"containerized": false,
34-
"hostname": "docker-fleet-agent",
35-
"id": "e68e16d5d74548f1949a49708e59eca0",
32+
"architecture": "x86_64",
33+
"containerized": true,
34+
"hostname": "elastic-agent-99126",
3635
"ip": [
37-
"192.168.112.7"
36+
"192.168.240.2",
37+
"192.168.253.7"
3838
],
3939
"mac": [
40-
"02-42-C0-A8-70-07"
40+
"02-42-C0-A8-F0-02",
41+
"02-42-C0-A8-FD-07"
4142
],
42-
"name": "docker-fleet-agent",
43+
"name": "elastic-agent-99126",
4344
"os": {
44-
"codename": "focal",
45-
"family": "debian",
46-
"kernel": "5.15.49-linuxkit-pr",
47-
"name": "Ubuntu",
48-
"platform": "ubuntu",
45+
"family": "",
46+
"kernel": "3.10.0-1160.119.1.el7.x86_64",
47+
"name": "Wolfi",
48+
"platform": "wolfi",
4949
"type": "linux",
50-
"version": "20.04.6 LTS (Focal Fossa)"
50+
"version": "20230201"
5151
}
5252
},
5353
"input": {
@@ -75,13 +75,16 @@
7575
}
7676
},
7777
"message": "Stopped target Default.",
78+
"process": {
79+
"name": "systemd"
80+
},
7881
"related": {
7982
"hosts": [
80-
"docker-fleet-agent"
83+
"elastic-agent-99126"
8184
]
8285
},
8386
"tags": [
8487
"preserve_original_event",
8588
"system-auth"
8689
]
87-
}
90+
}

0 commit comments

Comments
 (0)