# TSVB Top Hit issue

**URL:** <https://discuss.elastic.co/t/tsvb-top-hit-issue/244482>\
**Category:** Kibana\
**Created:** [August 11, 2020, 3:07am UTC](https://discuss.elastic.co/t/tsvb-top-hit-issue/244482 "2020-08-11T03:07:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sketchy](https://avatars.discourse-cdn.com/v4/letter/s/258eb7/32.png) [@Sketchy](https://discuss.elastic.co/u/Sketchy)\
**Post date:** [August 11, 2020, 3:07am UTC](https://discuss.elastic.co/t/tsvb-top-hit-issue/244482/1 "2020-08-11T03:07:38Z")

</div>

I have a simple dataset in elastic that logs a timestamp and code field from a web service, the value of code is always 0,1,2 or 3 and changes frequently so I am polling it with logstash every 10 secs.

I am trying to make some gauges and metric visualisations for this data and works fine with standard kibana gauge or metric vis. However I find these to be quite limiting with scale/fonts/label issues and dont look good on a TV screen where I am displaying this.

TSVB gauges and metric solve all my scale issues and some of the options for coloring also solve some other problems of the regular kibana visualisations. Problem is I cannot get this dataset to work with TSVB even though I have similar datasets that work fine.

The main problem is trying to display the last value of the code field over time, I thought this would be a simple task. Using TSVB it seems fine when using a Count or Sum aggregation but when I try to use Top Hit I get nothing but zeroes for all values. I have tried using a range of different interval settings and can never get Top Hit to show anything.

What can I do to make this data work with TSVB Top Hit? also are there any troubleshooting steps I can do to see why its giving me 0's inststead of the value of the last records code field.

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [August 12, 2020, 5:23pm UTC](https://discuss.elastic.co/t/tsvb-top-hit-issue/244482/2 "2020-08-12T17:23:38Z")

</div>

What version of kibana are you using? What does your TSVB configuration look like?

Below is an example top hits TSVB configuration using web logs sample data.

 ![Screen Shot 2020-08-12 at 11.22.35 AM](https://us1.discourse-cdn.com/elastic/original/3X/f/f/ffde7d4bf350cf15241688ba154838de8badf361.png)

---

<div class="post-metadata">

**Author:** ![Sketchy](https://avatars.discourse-cdn.com/v4/letter/s/258eb7/32.png) [@Sketchy](https://discuss.elastic.co/u/Sketchy)\
**Post date:** [August 13, 2020, 11:55am UTC](https://discuss.elastic.co/t/tsvb-top-hit-issue/244482/3 "2020-08-13T11:55:44Z")

</div>

Latest version of Kibana but I have got it working a bit better now thanks for recommending the demo data it helped me to work out my issue having a good data set to learn how TSVB works.

---

<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:** [September 10, 2020, 11:55am UTC](https://discuss.elastic.co/t/tsvb-top-hit-issue/244482/4 "2020-09-10T11:55:49Z")

</div>

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