Skip to content

Commit

Permalink
EMT-492: add fields for events to metadata document
Browse files Browse the repository at this point in the history
  • Loading branch information
nnamdifrankie committed Jul 1, 2020
1 parent 481dccd commit 1cf1cd7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 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
7 changes: 7 additions & 0 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

0 comments on commit 1cf1cd7

Please sign in to comment.