Skip to content

Commit d0de81a

Browse files
authored
Actions log spaces (#622)
1 parent cc4c46b commit d0de81a

File tree

6 files changed

+140
-0
lines changed

6 files changed

+140
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
- name: agent
2+
title: Agent
3+
type: group
4+
group: 2
5+
level: custom
6+
short: agent
7+
description: >
8+
The agent fields contain the data about the software entity, if any, that collects, detects, or observes events on a host, or takes measurements on a host.
9+
10+
Examples include Beats. Agents may also run on observers. ECS agent.* fields shall be populated with details of the agent running on the host or observer where the event happened or the measurement was taken.
11+
fields:
12+
- name: policy.elasticAgentId
13+
title: Elastic Agent ID
14+
type: keyword
15+
level: custom
16+
short: elastic agent ID
17+
description: >
18+
The agent ID of elastic agent explicitly, even if agent.id refers to an external agent.
19+
- name: policy.integrationPolicyId
20+
title: Integration Policy ID
21+
type: keyword
22+
level: custom
23+
short: integration policy
24+
description: >
25+
The agent's integration policy ID at the time the action was initiated.
26+
- name: policy.agentPolicyId
27+
title: Agent Policy ID
28+
type: keyword
29+
level: custom
30+
short: agent policy
31+
description: >
32+
The agent's policy ID at the time the action was initiated.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
- name: space
2+
root: true
3+
title: Space
4+
group: 2
5+
short: Space-related fields
6+
description: >
7+
Fields to enable space-tracking in action documents
8+
type: group
9+
fields:
10+
- name: originSpaceId
11+
title: Origin Space ID
12+
type: keyword
13+
level: custom
14+
short: originating space ID
15+
description: >
16+
The space ID that the action was initiated from
17+

custom_subsets/elastic_endpoint/actions/actions.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ fields:
2323
agent:
2424
fields:
2525
id: {}
26+
policy:
27+
fields:
28+
elasticAgentId: {}
29+
integrationPolicyId: {}
30+
agentPolicyId: {}
31+
space:
32+
fields:
33+
originSpaceId: {}
2634
rule:
2735
fields:
2836
id: {}

package/endpoint/data_stream/actions/fields/fields.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,24 @@
127127
128128
Example: For Beats this would be beat.id.'
129129
example: 8a4f500d
130+
- name: policy.agentPolicyId
131+
level: custom
132+
type: keyword
133+
ignore_above: 1024
134+
description: The agent's policy ID at the time the action was initiated.
135+
default_field: false
136+
- name: policy.elasticAgentId
137+
level: custom
138+
type: keyword
139+
ignore_above: 1024
140+
description: The agent ID of elastic agent explicitly, even if agent.id refers to an external agent.
141+
default_field: false
142+
- name: policy.integrationPolicyId
143+
level: custom
144+
type: keyword
145+
ignore_above: 1024
146+
description: The agent's integration policy ID at the time the action was initiated.
147+
default_field: false
130148
- name: data_stream
131149
title: data_stream
132150
group: 2
@@ -319,6 +337,11 @@
319337
description: The name of the rule or signature generating the event.
320338
example: BLOCK_DNS_over_TLS
321339
default_field: false
340+
- name: originSpaceId
341+
level: custom
342+
type: keyword
343+
ignore_above: 1024
344+
description: The space ID that the action was initiated from
322345
- name: user
323346
title: User
324347
group: 2

package/endpoint/data_stream/actions/sample_event.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,23 @@
1212
"agent": {
1313
"id": [
1414
"c8cad7f3-9e62-43d0-94ed-8c51670fae62"
15+
],
16+
"policy": [
17+
{
18+
"agentId": "ff1a47b4-71ed-4cbf-ad7f-55203358850d",
19+
"elasticAgentId": "1e2f91a1-1946-460d-b885-af983d964ea3",
20+
"integrationPolicyId": "645fe9a9-2afd-4b4b-a2d7-38ee21e0f19d",
21+
"agentPolicyId": "e9734d0c-1816-4d68-8d9a-84418a850927"
22+
},
23+
{
24+
"agentId": "a756f3f4-c974-4d44-84f5-ba02a954cd55",
25+
"elasticAgentId": "20ceb5f6-4e15-4db5-9494-f47f589de33f",
26+
"integrationPolicyId": "1f297497-14d4-4bf5-9d26-7c5e629e1d62",
27+
"agentPolicyId": "100a3ee3-5304-4fc9-b495-e0022178a2f3"
28+
}
1529
]
1630
},
31+
"originSpaceId": "b88dae77-9037-459b-be31-efefa6788362",
1732
"@timestamp": "2022-04-04T20:44:07.805Z",
1833
"event": {
1934
"agent_id_status": "auth_metadata_missing",

schemas/v1/actions/actions.yaml

Lines changed: 45 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)