Refine your search:

If I run this search through the web interface:

error | stats count by host | sort - count

And then venture over to port 8089 and check the job, I can see the search summary and hit the Events link at the bottom of the page to get a list of the events.

However, if I run that search through the REST API, the Events link goes to an empty page. How can I get a list of the events from that search using the REST API?

Thanks, Jon

asked 10 Jan '11, 16:51

twinspop's gravatar image

twinspop
5503532
accept rate: 45%


One Answer:

If I set the status_buckets POST variable to 300 (as the is the default from the web interface search), I get eventAvailableCount > 0.

link

answered 10 Jan '11, 17:29

twinspop's gravatar image

twinspop
5503532
accept rate: 45%

Post your answer
toggle preview

Follow this question

Log In to enable email subscriptions

RSS:

Answers

Answers + Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×178
×149
×132

Asked: 10 Jan '11, 16:51

Seen: 1,833 times

Last updated: 10 Jan '11, 17:29

Copyright © 2005-2012 Splunk Inc. All rights reserved.