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

老子叫甜甜 提交于 2019-12-06 22:13:37

问题


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.


回答1:


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 !



来源:https://stackoverflow.com/questions/15812470/searching-for-gray-log-2-api-or-a-way-to-query-elasticsearch

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!