Skip to content

Commit

Permalink
Fix failing ip.rst doctest
Browse files Browse the repository at this point in the history
Signed-off-by: currantw <[email protected]>
  • Loading branch information
currantw committed Dec 18, 2024
1 parent 0278f0b commit f0d4f6d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions docs/user/ppl/functions/ip.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ Return type: BOOLEAN

Example:

os> source=weblogs | where cidrmatch(host, '1.2.3.0/24') | fields host, url
os> source=weblogs | where cidrmatch(host, '1.2.3.0/24') | fields host
fetched rows / total rows = 2/2
+----------------+--------------------|
| host | url |
+----------------+--------------------+
| 1.2.3.4 | /history/voyager1/ |
| 1.2.3.5 | /history/voyager2/ |
+----------------+--------------------|
+---------+--------------------|
| host | url |
+---------+--------------------+
| 1.2.3.4 | /history/voyager1/ |
| 1.2.3.5 | /history/voyager2/ |
+---------+--------------------|

Note:
- `ip` can be an IPv4 or an IPv6 address
Expand Down
2 changes: 1 addition & 1 deletion doctest/test_data/weblogs.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
{"index":{}}
{"host": "::FFFF:1.2.3.4", "method": "GET", "url": "/history/voyager1/", "response": "200", "bytes": "1234"}
{"index":{}}
{"host": "1.2.3.4", "method": "GET", "url": "/history/voyager2/", "response": "200", "bytes": "4321"}
{"host": "1.2.3.5", "method": "GET", "url": "/history/voyager2/", "response": "200", "bytes": "4321"}
{"index":{}}
{"host": "::FFFF:1234", "method": "GET", "url": "/history/artemis/", "response": "200", "bytes": "9876"}

0 comments on commit f0d4f6d

Please sign in to comment.