Hi,
I'm trying to pull data from elasticsearch 2.4 with a range. I'm running the following to try to get the last 5 days worth of data:
{ "query": { "range": { "timestamp": { "gte": "now-5d", "lte": "now", "format": "epoch_millis" } } } }'
However I get the following:
{
"error" : {
"root_cause" : [ {
"type" : "number_format_exception",
"reason" : "For input string: "now-5d""
} ],
"type" : "search_phase_execution_exception",
"reason" : "all shards failed",
"phase" : "query",
"grouped" : true,
"failed_shards" : [ {
"shard" : 0,
"index" : "ui-test-setup",
"node" : "r8bTLlBVQba8qI-yorCFnQ",
"reason" : {
"type" : "number_format_exception",
"reason" : "For input string: "now-5d""
}
} ]
},
"status" : 400
}
Just wondering what I'm missing.