Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Searching for Gray Log 2 API or a way to query ElasticSearch

I have a question regarding Gray Log 2

In the company I work for all systems report exceptions to Gray Log server which has predefined streams.

I need to build an external Dashboard which retrieves data from different streams. I haven't found any Gray Log 2 API to use for this. I read that there is a possibility to query Elastic Search directly. Can you please advise how do I do so or if there is any Gray Log 2 API.

My Dashboard will be written or in JSF or in .NET still not sure about which is best to use.

I would be very grateful for detailed answer on this question. Links will help too.

like image 911
Vladimir Novick Avatar asked Apr 04 '13 13:04

Vladimir Novick


1 Answers

Graylog2 has a very clear and complete Restful API, that you can browse/test with Swagger.

Go to System -> Nodes and select "API Browser" from a node action dropdown menu.

By default, you can access it at the following url : http://your.graylog2:12900/api-browser

Hope this helps !

like image 147
Justin T. Avatar answered Nov 10 '22 22:11

Justin T.