# Mismatch between timelion and discover doc count

**URL:** https://discuss.elastic.co/t/mismatch-between-timelion-and-discover-doc-count/150333
**Category:** Kibana
**Tags:** timelion
**Created:** [September 28, 2018, 12:10pm UTC](https://discuss.elastic.co/t/mismatch-between-timelion-and-discover-doc-count/150333 "2018-09-28T12:10:58Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![dejard](https://avatars.discourse-cdn.com/v4/letter/d/c5a1d2/32.png) [@dejard](https://discuss.elastic.co/u/dejard)
#### Post date: [September 28, 2018, 12:10pm UTC](https://discuss.elastic.co/t/mismatch-between-timelion-and-discover-doc-count/150333/1 "2018-09-28T12:10:59Z")

</div>

Hi,

I have indexed a bunch of documents which I want to filter by a field named _cell_ with a value of _5_. Searching for this field on the _Discover_ page results in 20 hits.

 ![kibana_discover_hits](https://us1.discourse-cdn.com/elastic/original/3X/4/a/4a0a5c3c32149ccfdfc1b6641d8644d75a455977.png)

The documents contain the following timestamps:

```
2018-09-28T10:44:57.305
2018-09-28T10:44:57.323
2018-09-28T10:44:57.373
2018-09-28T10:44:57.416
2018-09-28T10:44:58.817
2018-09-28T10:44:59.039
2018-09-28T10:44:59.080
2018-09-28T10:44:59.181
2018-09-28T10:45:00.258
2018-09-28T10:45:00.580
2018-09-28T10:45:01.977
2018-09-28T10:45:02.271
2018-09-28T10:45:04.283
2018-09-28T10:45:04.747
2018-09-28T10:45:05.985
2018-09-28T10:45:06.247
2018-09-28T10:45:07.324
2018-09-28T10:45:07.896
2018-09-28T10:45:09.800
2018-09-28T10:45:10.214

```

However, splitting the documents with Timelion displays just 13 hits.

 ![kibana_timelion_hits](https://us1.discourse-cdn.com/elastic/original/3X/2/7/276291c6314e2c9a367955182e76054f92fdb843.png)

Also the positions of peaks on the time-axis are wrong. The first peak should be at 12:44:57 (UTC+2) but Timelion displays it at 12:44:55. Maybe I'm misunderstanding the concept of the split function.

Dejard

---

<div class="post-metadata">

### Author: ![christophilus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christophilus/32/42991_2.png) [@christophilus](https://discuss.elastic.co/u/christophilus)
#### Post date: [September 28, 2018, 2:35pm UTC](https://discuss.elastic.co/t/mismatch-between-timelion-and-discover-doc-count/150333/2 "2018-09-28T14:35:59Z")

</div>

I think you need to pay around with your limit. I took your data and addeda. "foo" column with 5 "baz" values, 5 "zed" values, and 10 "bar" values.

 ![16%20AM](https://us1.discourse-cdn.com/elastic/original/3X/0/a/0a7405abd61969ae49dee9cd01dccf68aab91b9d.png)

---

<div class="post-metadata">

### Author: ![dejard](https://avatars.discourse-cdn.com/v4/letter/d/c5a1d2/32.png) [@dejard](https://discuss.elastic.co/u/dejard)
#### Post date: [September 28, 2018, 6:38pm UTC](https://discuss.elastic.co/t/mismatch-between-timelion-and-discover-doc-count/150333/3 "2018-09-28T18:38:28Z")

</div>

Hi Chris,

thanks for your reply. I already tried different time ranges with different intervals. It never exceeds 13. And as already mentioned, the timestamps do not match either. Here is another view of the filtered data:

 ![kibana_timelion_hits2](https://us1.discourse-cdn.com/elastic/original/3X/a/d/ad27e43b760f2bef683423d7169cf0939c065e41.png)

Is it possible to configure kibana to log the corresponding data matched by timelion?

**EDIT:** Chris, you were absolutely right. I had to adjust time range and interval carefully to get the correct number of peaks displayed in one timelion graph. But nevertheless, the peak-positions are incorrect. It shows me peaks for timestamps that don't exist. Anyway, thanks for your help.

---

<div class="post-metadata">

### Author: ![christophilus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christophilus/32/42991_2.png) [@christophilus](https://discuss.elastic.co/u/christophilus)
#### Post date: [October 1, 2018, 12:48pm UTC](https://discuss.elastic.co/t/mismatch-between-timelion-and-discover-doc-count/150333/4 "2018-10-01T12:48:38Z")

</div>

I don't think the time range is your problem, so much as `split=cell:1` Try `split=cell:10` or `split=cell:100`. That number is what is causing the inaccuracy, as it's a limit function.

---

<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: [October 29, 2018, 12:48pm UTC](https://discuss.elastic.co/t/mismatch-between-timelion-and-discover-doc-count/150333/5 "2018-10-29T12:48:59Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
