# Kibana plugin for event timelining

**URL:** <https://discuss.elastic.co/t/kibana-plugin-for-event-timelining/87619>\
**Category:** Kibana\
**Created:** [May 30, 2017, 7:09pm UTC](https://discuss.elastic.co/t/kibana-plugin-for-event-timelining/87619 "2017-05-30T19:09:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Surabhi\_Lodha](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@Surabhi\_Lodha](https://discuss.elastic.co/u/Surabhi_Lodha)\
**Post date:** [May 30, 2017, 7:09pm UTC](https://discuss.elastic.co/t/kibana-plugin-for-event-timelining/87619/1 "2017-05-30T19:09:14Z")

</div>

Hi,

I am new to Kibana. My goal is to create a plugin for Dicover tab which would essentially be a button to add the particular event to a timeline and eventually displaying it over a timeline. The goal here is to create user stories.

Is there any way I can add a button to a discover tab to do that?  
Any help would be highly appreciated.

Thank you!

---

<div class="post-metadata">

**Author:** ![Joe\_Fleming](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joe_fleming/32/3561_2.png) [@Joe\_Fleming](https://discuss.elastic.co/u/Joe_Fleming)\
**Post date:** [May 30, 2017, 10:08pm UTC](https://discuss.elastic.co/t/kibana-plugin-for-event-timelining/87619/2 "2017-05-30T22:08:02Z")

</div>

Yes, you can inject your own controls from a plugin, in the top navigation of Discover, using `navbarExtensions`. This allows you to add your own interface and controls, which you could use to show a form and create records in Elasticsearch, which would then appear in the documents and count chart shown in Discover as well.

You can read more about how that works in [this discuss thread](https://discuss.elastic.co/t/dev-on-kibana-plugin-navbar-icon-disappear-when-switching-tabs/66612).

---

<div class="post-metadata">

**Author:** ![Surabhi\_Lodha](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@Surabhi\_Lodha](https://discuss.elastic.co/u/Surabhi_Lodha)\
**Post date:** [May 31, 2017, 5:13pm UTC](https://discuss.elastic.co/t/kibana-plugin-for-event-timelining/87619/3 "2017-05-31T17:13:46Z")

</div>

I am able to create the button. My problem is I don't know how can I get the query results to be displayed in a different browser when I click on the button. Could you point me to the interface which gets the results?

---

<div class="post-metadata">

**Author:** ![Joe\_Fleming](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joe_fleming/32/3561_2.png) [@Joe\_Fleming](https://discuss.elastic.co/u/Joe_Fleming)\
**Post date:** [June 1, 2017, 4:58pm UTC](https://discuss.elastic.co/t/kibana-plugin-for-event-timelining/87619/4 "2017-06-01T16:58:02Z")

</div>

> [@Surabhi\_Lodha](#):
>
> My problem is I don't know how can I get the query results to be displayed in a different browser when I click on the button

You mean opening the result in a new window/tab? You can do that with javascript, or with a target attribute if you're using an a tag. I suspect this isn't what you mean though... can you describe what you want to happen?

---

<div class="post-metadata">

**Author:** ![Surabhi\_Lodha](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@Surabhi\_Lodha](https://discuss.elastic.co/u/Surabhi_Lodha)\
**Post date:** [June 1, 2017, 5:23pm UTC](https://discuss.elastic.co/t/kibana-plugin-for-event-timelining/87619/5 "2017-06-01T17:23:54Z")

</div>

When a user queries in Kibana a series of events are displayed. My goal is to add a check box across every event. Add when user selects the check box and clicks on a button say "x", the event in the same format (with table and Json data) gets opened in a new page. Basically my goal is to add the events to a particular bucket and display them across a timeline to create some sort of user stories to analyze the connection between the events.

---

<div class="post-metadata">

**Author:** ![Joe\_Fleming](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joe_fleming/32/3561_2.png) [@Joe\_Fleming](https://discuss.elastic.co/u/Joe_Fleming)\
**Post date:** [June 19, 2017, 5:36pm UTC](https://discuss.elastic.co/t/kibana-plugin-for-event-timelining/87619/6 "2017-06-19T17:36:47Z")

</div>

> When a user queries in Kibana a series of events are displayed. My goal is to add a check box across every event.

OK, then ignore what I told you before. A navbar extension isn't what you want, since you want a control that knows about documents in elasticsearch.

This will require a custom visualization, as you'll need to show the table data with your own control injected. We don't have a way of injecting controls into the existing table, so you'll have to roll your own.

You could probably also get away with a hack of some kind, and basically just inject the checkbox when the table renders, and call off to some API (again, an app) when it's checked or unchecked. A lot of folks want to remove hack entirely though, so I'm not sure I'd recommend relying on them long term.

> Add when user selects the check box and clicks on a button say "x", the event in the same format (with table and Json data) gets opened in a new page.

You can do this today, using a custom field formatter. However, you'll also have to write a, I think, a custom app. Otherwise, I'm not sure where else you'd send the user that would make sense, and give them more controls.

In fact, this whole thing should probably be a custom app, not something you shoehorn into Discover. You can probably do that, but it's more work, and would be less flexible. I think you could even reuse most of the components that Discover uses.

---

<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 17, 2017, 5:37pm UTC](https://discuss.elastic.co/t/kibana-plugin-for-event-timelining/87619/7 "2017-07-17T17:37:19Z")

</div>

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