Invalidate user sessions that match a query. To use this API, you must be a superuser.
The method Kibana uses to determine which sessions to invalidate. If it is all, all existing sessions will be invalidated. If it is query, only the sessions that match the query will be invalidated.
Values are all or query.
The query that Kibana uses to match the sessions to invalidate when the match parameter is set to query.
curl \
--request POST 'https://localhost:5601/api/security/session/_invalidate' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: true" \
--data '"{\n \"match\" : \"all\"\n}"'
{
"match" : "all"
}
{
"match" : "query",
"query": {
"provider" : { "type": "saml" }
}
}
{
"match" : "query",
"query": {
"provider" : { "type": "saml", "name": "saml1" }
}
}
{
"match" : "query",
"query": {
"provider" : { "type": "oidc" },
"username": "user@my-oidc-sso.com"
}
}