Skip to content

Commit

Permalink
SECURITY-ENDPOINT: add fields for events to metadata document (elasti…
Browse files Browse the repository at this point in the history
…c#70491)

SECURITY-ENDPOINT: EMT-492 add fields for events to metadata document
  • Loading branch information
nnamdifrankie committed Jul 2, 2020
1 parent 682011b commit 6fb5283
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,13 @@ export class EndpointDocGenerator {
'@timestamp': ts,
event: {
created: ts,
id: this.seededUUIDv4(),
kind: 'metric',
category: ['host'],
type: ['info'],
module: 'endpoint',
action: 'endpoint_metadata',
dataset: 'endpoint.metadata',
},
...this.commonInfo,
};
Expand Down Expand Up @@ -1184,8 +1191,8 @@ export class EndpointDocGenerator {
created: ts,
id: this.seededUUIDv4(),
kind: 'state',
category: 'host',
type: 'change',
category: ['host'],
type: ['change'],
module: 'endpoint',
action: 'endpoint_policy_response',
dataset: 'endpoint.policy',
Expand Down
11 changes: 9 additions & 2 deletions x-pack/plugins/security_solution/common/endpoint/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,13 @@ export type HostMetadata = Immutable<{
'@timestamp': number;
event: {
created: number;
kind: string;
id: string;
category: string[];
type: string[];
module: string;
action: string;
dataset: string;
};
elastic: {
agent: {
Expand Down Expand Up @@ -771,8 +778,8 @@ export interface HostPolicyResponse {
created: number;
kind: string;
id: string;
category: string;
type: string;
category: string[];
type: string[];
module: string;
action: string;
dataset: string;
Expand Down

0 comments on commit 6fb5283

Please sign in to comment.