Skip to content

Commit

Permalink
include entity type in EEM output docs (elastic#187355)
Browse files Browse the repository at this point in the history
include entity type in EEM output docs
  • Loading branch information
tommyers-elastic authored Jul 3, 2024
1 parent 7e04249 commit bfe8cf9
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 0 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ export function generateHistoryProcessors(definition: EntityDefinition, spaceId:
value: '{{{_ingest.timestamp}}}',
},
},
{
set: {
field: 'entity.type',
value: definition.type,
},
},
{
set: {
field: 'entity.spaceId',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ export function generateLatestProcessors(definition: EntityDefinition, spaceId:
value: '{{{_ingest.timestamp}}}',
},
},
{
set: {
field: 'entity.type',
value: definition.type,
},
},
{
set: {
field: 'entity.spaceId',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ export const entitiesEntityComponentTemplateConfig: ClusterPutComponentTemplateR
ignore_above: 1024,
type: 'keyword',
},
type: {
ignore_above: 1024,
type: 'keyword',
},
displayName: {
type: 'text',
fields: {
Expand Down

0 comments on commit bfe8cf9

Please sign in to comment.