Thanks,
It is getting closer, now I did not get the error, but after setting the filter all the values are null, even when I have values. If I use the time range for the filter days I want to use, I get data.
By example, here is the request:
{
"timerange": {
"timezone": "America/Chicago",
"min": "2018-01-01T06:00:00.000Z",
"max": "2018-05-21T13:52:48.212Z"
},
"filters": [{
"bool": {
"must": [{
"match_all": {
}
}],
"must_not": []
}
}],
"panels": [{
"id": "61ca57f0-469d-11e7-af02-69e470af7417",
"type": "timeseries",
"series": [{
"id": "be882880-5d19-11e8-a18c-0beb271a8add",
"color": "#68BC00",
"split_mode": "filter",
"metrics": [{
"id": "be882881-5d19-11e8-a18c-0beb271a8add",
"type": "avg",
"field": "tti"
}],
"seperate_axis": 0,
"axis_position": "right",
"formatter": "number",
"chart_type": "line",
"line_width": 1,
"point_size": 1,
"fill": 0.5,
"stacked": "none",
"filter": "realTimestamp:[2018-04-28T00:00:00Z TO 2018-04-30T23:59:59Z]"
}],
"time_field": "realTimestamp",
"index_pattern": "pkh_ampdata*",
"interval": "auto",
"axis_position": "left",
"axis_formatter": "number",
"show_legend": 1,
"show_grid": 1,
"background_color_rules": [{
"id": "46dc5c70-5d00-11e8-a18c-0beb271a8add"
}],
"bar_color_rules": [{
"id": "47c312f0-5d00-11e8-a18c-0beb271a8add"
}],
"gauge_color_rules": [{
"id": "48ad72f0-5d00-11e8-a18c-0beb271a8add"
}],
"gauge_width": 10,
"gauge_inner_width": 10,
"gauge_style": "half"
}],
"state": {
}
}
Here is the response with all the values in null:
{
"61ca57f0-469d-11e7-af02-69e470af7417": {
"id": "61ca57f0-469d-11e7-af02-69e470af7417",
"series": [{
"id": "be882880-5d19-11e8-a18c-0beb271a8add",
"label": "Average of tti",
"color": "#68BC00",
"data": [[1514786400000,
null],
[1514872800000,
null],
[1514959200000,
null],
[1515045600000,
null],
[1515132000000,
null],
[1515218400000,
null],
[1515304800000,
null],
[1515391200000,
null],
[1515477600000,
null],
[1515564000000,
null],
[1515650400000,
null],
[1515736800000,
null],
[1515823200000,
null],
[1515909600000,
null],
[1515996000000,
null],
If I remove the filter, then I get values for the entire "timerange", by example the requests:
{
"timerange": {
"timezone": "America/Chicago",
"min": "2018-01-01T06:00:00.000Z",
"max": "2018-05-21T13:52:48.212Z"
},
"filters": [{
"bool": {
"must": [{
"match_all": {
}
}],
"must_not": []
}
}],
"panels": [{
"id": "61ca57f0-469d-11e7-af02-69e470af7417",
"type": "timeseries",
"series": [{
"id": "be882880-5d19-11e8-a18c-0beb271a8add",
"color": "#68BC00",
"split_mode": "filter",
"metrics": [{
"id": "be882881-5d19-11e8-a18c-0beb271a8add",
"type": "avg",
"field": "tti"
}],
"seperate_axis": 0,
"axis_position": "right",
"formatter": "number",
"chart_type": "line",
"line_width": 1,
"point_size": 1,
"fill": 0.5,
"stacked": "none",
"filter": ""
}],
"time_field": "realTimestamp",
"index_pattern": "pkh_ampdata*",
"interval": "auto",
"axis_position": "left",
"axis_formatter": "number",
"show_legend": 1,
"show_grid": 1,
"background_color_rules": [{
"id": "46dc5c70-5d00-11e8-a18c-0beb271a8add"
}],
"bar_color_rules": [{
"id": "47c312f0-5d00-11e8-a18c-0beb271a8add"
}],
"gauge_color_rules": [{
"id": "48ad72f0-5d00-11e8-a18c-0beb271a8add"
}],
"gauge_width": 10,
"gauge_inner_width": 10,
"gauge_style": "half"
}],
"state": {
}
}
The response
{
"61ca57f0-469d-11e7-af02-69e470af7417": {
"id": "61ca57f0-469d-11e7-af02-69e470af7417",
"series": [{
"id": "be882880-5d19-11e8-a18c-0beb271a8add",
"label": "Average of tti",
"color": "#68BC00",
"data": [[1514786400000,
1.3842592592592593],
[1514872800000,
1.6571879936808847],
[1514959200000,
2.1179048414023374],
[1515045600000,
1.6928525434642627],
[1515132000000,
1.6211301645759006],
[1515218400000,
1.5224223840551936],
[1515304800000,
1.4774883099532399],
[1515391200000,
1.7007271815446339],
[1515477600000,
1.5827852120662282],
[1515564000000,
1.6726449590806198],
[1515650400000,
1.5666724769043054],
[1515736800000,
1.517156862745098],
[1515823200000,
1.4471749226006192],
[1515909600000,