Dear all,
I was wondering if there are nodes to make retreive data (get requests) from ElasticSearch DB. If not I understand that Elasticsearch has a RESTful API, that can be queried by JSON formed query. How can I use the KREST nodes in order to apply below simple query.
Many thanks in advance.
Waseem
curl -XGET 'http://localhost:9200/index_name/_search' -d '
{
"size": 5000,
"query": {
"filtered": {
"query": {
"match_all": {}
},
"filter": {
"bool": {
"must": [
{
"range": {
"@timestamp": {
"from": 1451044800000,
"to": 1451908800000,
"include_lower": true,
"include_upper": false
},
"execution": "fielddata"
}
},
{
"term": {
"type": "rawdata"
}
}
]
}
}
}
},
"fields": [
"machine", "name", "value", "@timestamp"
]
}'