Back to Elasticsearch

Cidr Match

docs/reference/query-languages/esql/kibana/docs/functions/cidr_match.md

9.4.4319 B
Original Source

% This is generated by ESQL's AbstractFunctionTestCase. Do not edit it. See ../README.md for how to regenerate it.

CIDR MATCH

Returns true if the provided IP is contained in one of the provided CIDR blocks.

esql
FROM hosts
| WHERE CIDR_MATCH(ip1, "127.0.0.2/32", "127.0.0.3/32")
| KEEP card, host, ip0, ip1