Hi
I found for Kibana4, the interval value of date histogram aggregation can
not be adjusted as kibana3. Now my visualization object json is like
visState
{
- "aggs": [*
- {*
-
"id": "1",*
-
"params": {*
-
"field": "cacheCode"*
-
},*
-
"schema": "metric",*
-
"type": "avg"*
- },*
- {*
-
"id": "2",*
-
"params": {*
-
"extended_bounds": {},*
-
"field": "accessTime",*
-
"interval": "10minutes",*
-
"min_doc_count": 1*
-
},*
-
"schema": "segment",*
-
"type": "date_histogram"*
- }*
- ],*
- "listeners": {},*
- "params": {*
- "addLegend": true,*
- "addTooltip": true,*
- "defaultYExtents": false,*
- "shareYAxis": true*
- },*
- "type": "line"*
}
kibanaSavedObjectMeta.searchSourceJSON
{
- "query": {*
- "query_string": {*
-
"analyze_wildcard": true,*
-
"query": "*"*
- }*
- },*
- "filter": []*
}
--
I want to filter my query like
---
#Cache hit ratio for timeline baseGET /ats/_search{ "query": {
"filtered": { "query": {"match_all": {} }, "filter":
{"range": { "accessTime": { "gte": "now-1d/d" }
}} } }, "size": 0, "aggs": { "accessTimes": {
"date_histogram": { "field": "accessTime", "interval": "10m"
}, "aggs": { "hit_ratio": { "avg": {
"field": "cacheCode" } } } } }}
---
How I can do this from kiban4? Kibana is with real cool of new charts, new
menu of discovery and visualization menus, but I still can not how I
customize the query and filter for kibana4. Always the setting in the top
bar will take effect. Is this the limitation of kibana4? I want to do some
similar thing as marvel do for my server applications. May I have to roll
back to kibana3 to do this?
thanks,
Cong
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/96f76542-c2d6-409e-b6b1-5dbc9f97f2cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.