From b45114a5690cba1e1f9c8f2dda2f6e21b83a82aa Mon Sep 17 00:00:00 2001 From: currantw Date: Thu, 12 Dec 2024 16:20:17 -0800 Subject: [PATCH] Fix failing `ip.rst` doctest Signed-off-by: currantw --- docs/user/ppl/functions/ip.rst | 14 +++++++------- doctest/test_data/weblogs.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/user/ppl/functions/ip.rst b/docs/user/ppl/functions/ip.rst index bd0bc40b0c..425bbd9c4a 100644 --- a/docs/user/ppl/functions/ip.rst +++ b/docs/user/ppl/functions/ip.rst @@ -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 diff --git a/doctest/test_data/weblogs.json b/doctest/test_data/weblogs.json index 67e322e039..fbfc8d417b 100644 --- a/doctest/test_data/weblogs.json +++ b/doctest/test_data/weblogs.json @@ -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"} \ No newline at end of file