9

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.

Adam Siemion
  • 15,569
  • 7
  • 58
  • 92
Vladimir Novick
  • 506
  • 1
  • 7
  • 15

1 Answers1

6

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 !

Justin T.
  • 3,643
  • 1
  • 22
  • 43
  • the port for graylog api is 129000. This worked for me: http://your.graylog2:129000/api-browser – Anish Mar 23 '15 at 12:05
  • 4
    Comment above isn't correct. Default port is 12900. Every port number is limited by 65k and it can't be higher than 65k – Sergey Litvinov May 27 '16 at 15:33