﻿---
title: ES|QL IP functions
description: ES|QL supports these IP functions: 
url: https://www.elastic.co/elastic/docs-builder/docs/3457/reference/query-languages/esql/functions-operators/ip-functions
products:
  - Elasticsearch
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available
---

# ES|QL IP functions
ES|QL supports these IP functions:
- [`CIDR_MATCH`](https://www.elastic.co/elastic/docs-builder/docs/3457/reference/query-languages/esql/functions-operators/ip-functions/cidr_match)
  Returns true if the provided IP is contained in one of the provided CIDR blocks.
- [`IP_PREFIX`](https://www.elastic.co/elastic/docs-builder/docs/3457/reference/query-languages/esql/functions-operators/ip-functions/ip_prefix)
  Truncates an IP to a given prefix length.