I have set up an ELK server. I want to create some graphs with some data from ElasticSearch. I was trying something like:
$filters = array();
$query = array();
$filter = array();
$filters['not']['term']['tags'] = '_grokparsefailure';
$filters['and']['range']['@timestamp']['from'] = "2015-05-01";
$filters['and']['range']['@timestamp']['to'] = "2015-05-10";
$filters['and']['range']['icon_seq']['gt'] = -1;
$params2 = array(
'index'=> $this->view->elk_index,
'type' => $this->view->elk_type,
'size' => 1000000,
'body' => array(
'query' => array(
'filtered' => array(
//'query' => $query,
'filter' => $filters
)
),
'filter' => $filter
)
);
$results2 = $client->search($params2);
But as you imagine, it's not working correctly. The date range is not working. What am I doing wrong? Thanks