From af6b7b8cb31cb457ac9f151321a2f2e587f44148 Mon Sep 17 00:00:00 2001 From: Mateusz Poliwczak Date: Tue, 26 Aug 2025 14:42:46 +0200 Subject: [PATCH] Use POST instead of GET for search/jobs/export API call --- python/stail.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/python/stail.py b/python/stail.py index c07a0dd..64ee87d 100644 --- a/python/stail.py +++ b/python/stail.py @@ -15,10 +15,11 @@ # under the License. """Tails a realtime search using the export endpoint and prints results to - stdout.""" +stdout.""" import sys import os + sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "lib")) from pprint import pprint @@ -40,13 +41,14 @@ def main(): service = connect(**opts.kwargs) try: - result = service.get( + result = service.post( "search/jobs/export", search=search, earliest_time="rt", latest_time="rt", search_mode="realtime", - output_mode="json") + output_mode="json", + ) print(result.body) for result in JSONResultsReader(result.body):