Grafana导入一个简单的json文件作为数据源

时间:2019-01-15 10:06:27

标签: json grafana honeypot

我在JSON文件中有一堆数据。 我想将其用作Grafana中的(静态)数据源,但我不知道该怎么做。

我已经安装了Grafana(在Docker容器中)并添加了Simple JSON插件。但是据我了解,它以URL作为输入...而不是JSON文件:(我该怎么做?

我看过Fake JSON data source example。我看到它实现了一个Web服务器,该服务器可以回答一些典型的请求,例如/ search或/ query。但我不知道该如何适应。如您所见,我对Grafana还是很陌生...

这是我的json的样子:

{"eventid": "cowrie.direct-tcpip.request", "timestamp": "2019-01-15T10:03:24.604331Z", "session": "f3f60d4e", "src_port": 0, "message": "direct-tcp connection request to xxxx:443 from ::1:0", "system": "SSHService ssh-connection on HoneyPotSSHTransport,874,xxxxxx", "isError": 0, "src_ip": "xxxxxxxx", "dst_port": 443, "dst_ip": "xxxx", "sensor": "90a9ea4c9756"}

感谢您的帮助。

0 个答案:

没有答案