Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tonytw1/fake-kibana-client


https://github.com/tonytw1/fake-kibana-client

Last synced: 7 days ago
JSON representation

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)
```