We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 78ccda3 + af6b7b8 commit 92a7da6Copy full SHA for 92a7da6
python/stail.py
@@ -15,10 +15,11 @@
15
# under the License.
16
17
"""Tails a realtime search using the export endpoint and prints results to
18
- stdout."""
+stdout."""
19
20
import sys
21
import os
22
+
23
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "lib"))
24
25
from pprint import pprint
@@ -40,13 +41,14 @@ def main():
40
41
service = connect(**opts.kwargs)
42
43
try:
- result = service.get(
44
+ result = service.post(
45
"search/jobs/export",
46
search=search,
47
earliest_time="rt",
48
latest_time="rt",
49
search_mode="realtime",
- output_mode="json")
50
+ output_mode="json",
51
+ )
52
print(result.body)
53
54
for result in JSONResultsReader(result.body):
0 commit comments