问题描述
我有一个关于的问题
在该公司中,我为所有系统报告了具有预定义流的Gray Log服务器的异常情况。
In the company I work for all systems report exceptions to Gray Log server which has predefined streams.
我需要构建一个外部仪表板,从不同的流中检索数据。
我没有找到任何用于此的Gray Log 2 API。我读到有可能直接查询弹性搜索。你能告诉我如何做,如果有任何的格雷日志2的API。
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.
我的仪表板将被写入或在JSF或.NET仍然不确定这是最好的使用。
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.
推荐答案
Graylog2有一个非常清晰和完整的Restful API,您可以使用Swagger浏览/测试。
Graylog2 has a very clear and complete Restful API, that you can browse/test with Swagger.
转到系统 - >节点,并从节点操作下拉菜单中选择API浏览器。
Go to System -> Nodes and select "API Browser" from a node action dropdown menu.
默认情况下,您可以通过以下URL访问它:
By default, you can access it at the following url : http://your.graylog2:12900/api-browser
希望这有帮助!
这篇关于搜索Gray Log 2 API或查询ElasticSearch的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!