# Best practices to auto-update html table from elasticsearch server

**URL:** <https://discuss.elastic.co/t/best-practices-to-auto-update-html-table-from-elasticsearch-server/247980>\
**Category:** Elasticsearch\
**Created:** [September 9, 2020, 8:48am UTC](https://discuss.elastic.co/t/best-practices-to-auto-update-html-table-from-elasticsearch-server/247980 "2020-09-09T08:48:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pastoreerrante](https://avatars.discourse-cdn.com/v4/letter/p/e8c25b/32.png) [@pastoreerrante](https://discuss.elastic.co/u/pastoreerrante)\
**Post date:** [September 9, 2020, 8:48am UTC](https://discuss.elastic.co/t/best-practices-to-auto-update-html-table-from-elasticsearch-server/247980/1 "2020-09-09T08:48:11Z")

</div>

Hi there,

I'm trying to build a simple event visualization web-dashboard based on elasticsearch.

Diagram:

browser --- web framework (node.js api layer) --- elasticsearch

Basically, I'll have a lot of network-appliance-related events coming in elasticsearch (like interface up/down, host up/down, psu broken, etc.).

Once these events are stored, I need to visualize them through an html table.

The table needs to auto-refresh, since we must act very quickly upon these events to avoid breaking sla. Side note: I need to setup some custom logic on this table (like different colors based on priority and buttons to acknowledge the reception of a ticket).

What is the best way to do that (I mean to auto-refresh)? Ideally I would like to setup a websocket connection from the borwser to my node.js server and from there to elastic.

I don't think elastic search support websockets. Am I forced to polling data from elastic?

Thanks

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [September 10, 2020, 8:09pm UTC](https://discuss.elastic.co/t/best-practices-to-auto-update-html-table-from-elasticsearch-server/247980/2 "2020-09-10T20:09:24Z")

</div>

> [@pastoreerrante](#):
>
> I don't think Elasticsearch support websockets. Am I forced to polling data from elastic?

Yes, I believe so.

---

<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 8, 2020, 8:09pm UTC](https://discuss.elastic.co/t/best-practices-to-auto-update-html-table-from-elasticsearch-server/247980/3 "2020-10-08T20:09:41Z")

</div>

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