# Kibana charts with only latest entry

**URL:** <https://discuss.elastic.co/t/kibana-charts-with-only-latest-entry/32423>\
**Category:** Kibana\
**Created:** [October 17, 2015, 6:42am UTC](https://discuss.elastic.co/t/kibana-charts-with-only-latest-entry/32423 "2015-10-17T06:42:23Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![NilsBecker](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nilsbecker/32/6243_2.png) [@NilsBecker](https://discuss.elastic.co/u/NilsBecker)\
**Post date:** [November 30, 2015, 9:02am UTC](https://discuss.elastic.co/t/kibana-charts-with-only-latest-entry/32423/3 "2015-11-30T09:02:36Z")

</div>

I had the same problem with "status-logs" of some compnents.

_{"Name":" **CompA**", "Timestamp":"November 27th 2015, 10:08:03.443", "Status":" **False**"}_  
_{"Name":"CompB", "Timestamp":"November 27th 2015, 10:08:05.673", "Status":"True"}_  
_{"Name":" **CompA**", "Timestamp":"November 27th 2015, 10:08:08.245", "Status":" **True**"}_  
_{"Name":"CompC", "Timestamp":"November 27th 2015, 10:08:11.862", "Status":"True"}_

You see " **CompA**" was updated to True, so my False Status isn't important for me.

I solved that problem with de " **Type**" at Elasticsearch ...  
I wanted the "Name" to become a _Primarykey_ and tried this in my logstash config:

_output { elasticsearch { index =\> "komponents" **document\_id =\> "%{Name** }" }_

So every time when a log with an existing name appears, Elasticsearch will make a new " **Version**" of this log and the old is no longer in your search/visualization.

Was that your problem?

---

_[View the full topic](https://discuss.elastic.co/t/kibana-charts-with-only-latest-entry/32423)._
