# Is it possible to update an old event already stored?

**URL:** https://discuss.elastic.co/t/is-it-possible-to-update-an-old-event-already-stored/55972
**Category:** Logstash
**Created:** [July 20, 2016, 11:04am UTC](https://discuss.elastic.co/t/is-it-possible-to-update-an-old-event-already-stored/55972 "2016-07-20T11:04:19Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![asp](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@asp](https://discuss.elastic.co/u/asp)
#### Post date: [July 20, 2016, 11:04am UTC](https://discuss.elastic.co/t/is-it-possible-to-update-an-old-event-already-stored/55972/1 "2016-07-20T11:04:19Z")

</div>

Hi,

I would like to visualize if a server is in status ok, warning, critical. So I have events which have a field which contains this information.

But how can I show only the latest probe / event?

Is it possible to update events which are alraady stored in elastic search? If so, I could delete a flag "latest" from old requests in es and set it for the current event.

In the dashboard I could query for the tag "latest".

Thanks,  
Andreas

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [July 20, 2016, 11:35am UTC](https://discuss.elastic.co/t/is-it-possible-to-update-an-old-event-already-stored/55972/2 "2016-07-20T11:35:31Z")

</div>

> Is it possible to update events which are alraady stored in Elasticsearch?

If you have a stable document id you can certainly update it with the elasticsearch output.

> If so, I could delete a flag "latest" from old requests in es and set it for the current event.

That sounds like a bad idea. Why not just add events as you please and query ES for the most recent event to get the current status?

---

<div class="post-metadata">

### Author: ![asp](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@asp](https://discuss.elastic.co/u/asp)
#### Post date: [July 20, 2016, 11:48am UTC](https://discuss.elastic.co/t/is-it-possible-to-update-an-old-event-already-stored/55972/3 "2016-07-20T11:48:54Z")

</div>

Thats what I wanted to do first, but I did not found out how to do it.

How can I get the most recent event event in kibana? unfortunately i have to deal with kibana 3 and es 1.6

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [July 20, 2016, 12:36pm UTC](https://discuss.elastic.co/t/is-it-possible-to-update-an-old-event-already-stored/55972/4 "2016-07-20T12:36:55Z")

</div>

Sorry, I don't remember enough of Kibana 3. Wasn't there a panel for displaying a single value?

---

<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, 4:47am UTC](https://discuss.elastic.co/t/is-it-possible-to-update-an-old-event-already-stored/55972/5 "2017-07-06T04:47:18Z")

</div>


