Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions package/endpoint/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
- description: TBD
type: enhancement
link: https://github.com/elastic/endpoint-package/pull/99999
- description: Split the metadata_united transform into stateful (cross-cluster) and serverless (local) variants gated by _meta.environments
type: enhancement
link: https://github.com/elastic/endpoint-package/pull/750
- version: "9.4.0"
changes:
- description: automatic troubleshooting endpoint context docs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"source": {
"index": [
"metrics-endpoint.metadata_current_default*",
"*:metrics-endpoint.metadata_current_default*",
".fleet-agents*"
]
},
Expand Down Expand Up @@ -36,6 +37,9 @@
},
"description": "Merges latest Endpoint and Agent metadata documents",
"_meta": {
"managed": true
"managed": true,
"environments": [
"stateful"
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"source": {
"index": [
"metrics-endpoint.metadata_current_default*",
".fleet-agents*"
]
},
"dest": {
"index": ".metrics-endpoint.metadata_united_default"
},
"frequency": "1s",
"sync": {
"time": {
"delay": "4s",
"field": "updated_at"
}
},
"pivot": {
"aggs": {
"united": {
"scripted_metric": {
"init_script": "state.docs = []",
"map_script": "state.docs.add(new HashMap(params['_source']))",
"combine_script": "return state.docs",
"reduce_script": "def ret = new HashMap(); for (s in states) { for (d in s) { if (d.containsKey('Endpoint')) { ret.endpoint = d } else { ret.agent = d } }} return ret"
}
}
},
"group_by": {
"agent.id": {
"terms": {
"field": "agent.id"
}
}
}
},
"description": "Merges latest Endpoint and Agent metadata documents",
"_meta": {
"managed": true,
"environments": [
"serverless"
]
}
}