# Kibana data disappearing act

**URL:** https://discuss.elastic.co/t/kibana-data-disappearing-act/92830
**Category:** Kibana
**Created:** [July 12, 2017, 2:40pm UTC](https://discuss.elastic.co/t/kibana-data-disappearing-act/92830 "2017-07-12T14:40:12Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![boldfish](https://avatars.discourse-cdn.com/v4/letter/b/b3f665/32.png) [@boldfish](https://discuss.elastic.co/u/boldfish)
#### Post date: [July 12, 2017, 2:40pm UTC](https://discuss.elastic.co/t/kibana-data-disappearing-act/92830/1 "2017-07-12T14:40:12Z")

</div>

Hi , ive a difficulty with kibana. When I use the visualization screen to display my data, count aggregated on the y axis and terms aggregated on the x axis around a field it pulls data based on the distinct values for that field . So say it pulls eight categories, and two of them are "Reconnaissance" and "Abuse" respectively. Now when I go into Timelion and input this query:

```auto
.es(index="myindex", timefield="mytimestamp", metric=count, q=MyFieldname:"Abuse")

```

it doesnt pull any data but when I run this query

```auto
.es(index="warden", timefield="DetectTime", metric=count, q=Category\[0\]:Reconnaissance )

```

it pulls nothing . I have gone to a great deal of trouble to check the configuration , indexes and mapping but can find nothing to explain the disappearance of the data. This happens with more than one value. Is this a bug? Can anyone provide help in any form. thanks in advance

---

<div class="post-metadata">

### Author: ![spalger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spalger/32/14092_2.png) [@spalger](https://discuss.elastic.co/u/spalger)
#### Post date: [July 13, 2017, 12:20am UTC](https://discuss.elastic.co/t/kibana-data-disappearing-act/92830/2 "2017-07-13T00:20:23Z")

</div>

The formatting of your first query doesn't look right, it should probably be:

```auto
.es(index="myindex", timefield="mytimestamp", metric=count, q="MyFieldname:Abuse")

```

And for the second query, if the `\[0\]` part is trying to access the array index `0`, that isn't supported. All of the values in the `Category` array are considered equal values of the `Category` field and order is not relevant, try:

```auto
.es(index="warden", timefield="DetectTime", metric=count, q="Category:Reconnaissance")

```

---

<div class="post-metadata">

### Author: ![boldfish](https://avatars.discourse-cdn.com/v4/letter/b/b3f665/32.png) [@boldfish](https://discuss.elastic.co/u/boldfish)
#### Post date: [July 13, 2017, 10:27am UTC](https://discuss.elastic.co/t/kibana-data-disappearing-act/92830/3 "2017-07-13T10:27:52Z")

</div>

> [@boldfish](#):
>
> .es(index="myindex", timefield="mytimestamp", metric=count, q=MyFieldname:"Abuse")

Hi Thanks for your comment however, I should have been a little more careful with my formatting but the issue is not an issue with formatting the query. I grant that .es(index="myindex", timefield="mytimestamp", metric=count, q="MyFieldname:Abuse") is a functional format ( there are others) but the point is that pulling the same field data in Kibana on the Visualization screen is inconsistent with pulling data on the Timelion screen.  
The formatting issue you are referring to is simply because I had to give a fictional query and made some formatting errors. All the same, thank you for replying but this is not solved.

---

<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: [August 10, 2017, 10:28am UTC](https://discuss.elastic.co/t/kibana-data-disappearing-act/92830/4 "2017-08-10T10:28:09Z")

</div>

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