Hi Rich, you can get a list of all sources from Graylog2 over its REST API at the following URL (replace localhost with the actual hostname of your Graylog2 server and use HTTP/1.1 Basic Auth to authenticate an admin user): *http://localhost:12900/sources?range=0*
The query parameter *range* the time range to query in seconds relative to the current time. *86400* means 'in the last day', *0* is special and means 'across all open indices'. Cheers, Jochen On Tuesday, 23 December 2014 21:11:28 UTC+1, Rich Beeler wrote: > > We've just brought up a Graylog server and pointed our syslog server to it > - it's ingesting events. All the events are being forwarded to Graylog > from a syslog-ng server. > > What I'd like to create a list of unique hosts that Graylog is receiving > events from. Graylog will display up to 50 hosts in the "Quick Values" > under Source, when doing a search. But, I need a summary list of all hosts. > > Is there a way to do this in the web interface? > > If not, what is the ES query used to generate the 'Quick value breakdown > of' analysis tables?" > > Thanks for any help you can give. > > > -- You received this message because you are subscribed to the Google Groups "graylog2" group. To unsubscribe from this group and stop receiving emails from it, send an email to graylog2+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.