Spaces method and path for this operation:
post /s/{space_id}/api/fleet/agents/{agentId}/request_diagnostics
Refer to Spaces for more information.
Request a diagnostics bundle from a specific agent.
[Required authorization] Route required privileges: fleet-agents-read.
POST
/api/fleet/agents/{agentId}/request_diagnostics
curl \
--request POST 'https://<KIBANA_URL>/api/fleet/agents/{agentId}/request_diagnostics' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: true" \
--data '{"additional_metrics":["CPU"]}'
Request example
Request a diagnostics bundle from an agent
{
"additional_metrics": [
"CPU"
]
}
Response examples (200)
Diagnostics action result
{
"actionId": "action-id-1"
}
Response examples (400)
Example of a generic error response
{
"error": "Bad Request",
"message": "Agent agent-id-1 does not support request diagnostics action.",
"statusCode": 400
}