@elastic/get-risky-hosts
Get hosts with highest risk scores
RUN SKILL get_risky_hosts()With parameters:
RUN SKILL get_risky_hosts WITH min_score = 0| Name | Type | Default | Description |
|---|---|---|---|
| min_score | INT | — | Minimum risk score |
-- Using curl
curl -u elastic-admin:elastic-password http://localhost:9200/_escript \
-H "Content-Type: application/json" \
-d '{"query": "RUN SKILL get_risky_hosts()"}'
-- Response
{
"result": [...],
"_meta": {
"execution_id": "abc123",
"duration_ms": 45
}
}