-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into validate-tumble-function-argument
- Loading branch information
Showing
130 changed files
with
8,270 additions
and
799 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
## PPL IP Address Functions | ||
|
||
### `CIDRMATCH` | ||
|
||
**Description** | ||
|
||
`CIDRMATCH(ip, cidr)` checks if ip is within the specified cidr range. | ||
|
||
**Argument type:** | ||
- STRING, STRING | ||
- Return type: **BOOLEAN** | ||
|
||
Example: | ||
|
||
os> source=ips | where cidrmatch(ip, '192.169.1.0/24') | fields ip | ||
fetched rows / total rows = 1/1 | ||
+--------------+ | ||
| ip | | ||
|--------------| | ||
| 192.169.1.5 | | ||
+--------------+ | ||
|
||
os> source=ipsv6 | where cidrmatch(ip, '2003:db8::/32') | fields ip | ||
fetched rows / total rows = 1/1 | ||
+-----------------------------------------+ | ||
| ip | | ||
|-----------------------------------------| | ||
| 2003:0db8:0000:0000:0000:0000:0000:0000 | | ||
+-----------------------------------------+ | ||
|
||
Note: | ||
- `ip` can be an IPv4 or an IPv6 address | ||
- `cidr` can be an IPv4 or an IPv6 block | ||
- `ip` and `cidr` must be either both IPv4 or both IPv6 | ||
- `ip` and `cidr` must both be valid and non-empty/non-null |
Oops, something went wrong.