Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tonytw1/fake-kibana-client
https://github.com/tonytw1/fake-kibana-client
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/tonytw1/fake-kibana-client
- Owner: tonytw1
- Created: 2018-01-19T10:54:06.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-19T11:10:27.000Z (almost 7 years ago)
- Last Synced: 2024-11-15T22:32:24.804Z (about 2 months ago)
- Language: Scala
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Not a fake Kibana client
Nothing to see here; move along please.
Provides a quick and dirty KibanaSearch trait which can be used to programmatically extract data from the Kibana logstash elasticsearch msearch endpoint.
```
val ws = AhcWSClient()
val kibanaClient = new KibanaClient(ws, kibanaUrl, username, password)val query: Seq[(String, String)] = Seq(
("a-field", "foo"),
("another-field", "bah")
)val fieldsToShow = Seq("some-field", "some-other-field")
val rows: Seq[Seq[String]] = executeSearch(query, fieldsToShow, 10)
```