# Kiban4 Issue: How to adjust interval value in the case of date histogram aggregation

**URL:** <https://discuss.elastic.co/t/kiban4-issue-how-to-adjust-interval-value-in-the-case-of-date-histogram-aggregation/22392>\
**Category:** Elasticsearch\
**Created:** [February 25, 2015, 8:00pm UTC](https://discuss.elastic.co/t/kiban4-issue-how-to-adjust-interval-value-in-the-case-of-date-histogram-aggregation/22392 "2015-02-25T20:00:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cong\_yue](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cong_yue/32/53106_2.png) [@cong\_yue](https://discuss.elastic.co/u/cong_yue)\
**Post date:** [February 25, 2015, 8:00pm UTC](https://discuss.elastic.co/t/kiban4-issue-how-to-adjust-interval-value-in-the-case-of-date-histogram-aggregation/22392/1 "2015-02-25T20:00:18Z")

</div>

## 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](mailto: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](https://groups.google.com/d/msgid/elasticsearch/96f76542-c2d6-409e-b6b1-5dbc9f97f2cd%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:30am UTC](https://discuss.elastic.co/t/kiban4-issue-how-to-adjust-interval-value-in-the-case-of-date-histogram-aggregation/22392/2 "2017-07-06T00:30:05Z")

</div>


