# Custom logs/error exceptions on client side to Kibana server

**URL:** <https://discuss.elastic.co/t/custom-logs-error-exceptions-on-client-side-to-kibana-server/67610>\
**Category:** Kibana\
**Created:** [November 30, 2016, 12:15pm UTC](https://discuss.elastic.co/t/custom-logs-error-exceptions-on-client-side-to-kibana-server/67610 "2016-11-30T12:15:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shubham\_Agrawal](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@Shubham\_Agrawal](https://discuss.elastic.co/u/Shubham_Agrawal)\
**Post date:** [November 30, 2016, 12:15pm UTC](https://discuss.elastic.co/t/custom-logs-error-exceptions-on-client-side-to-kibana-server/67610/1 "2016-11-30T12:15:21Z")

</div>

Hi,  
I basically want to logs some custom events, error exceptions on my kibana client and send them to the kibana server. What could be the possible ways in which i can achieve this ?  
PS: custom events include visiting a particular dashboard or something like clicking the save button.

Thanks

---

<div class="post-metadata">

**Author:** ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)\
**Post date:** [November 30, 2016, 11:43pm UTC](https://discuss.elastic.co/t/custom-logs-error-exceptions-on-client-side-to-kibana-server/67610/2 "2016-11-30T23:43:25Z")

</div>

If I understand correctly, you basically want to collect some analytics on Kibana usage?

You'd need to write a plugin for this, but the plugin system is under heavy development and a plugin that's this deeply integrated with Kibana would probably break in the future. Unfortunately there isn't a good solution for your use case at this time. I think ideally this would be baked into core Kibana, feel free to open an enhancement request on our [github repo](https://github.com/elastic/kibana).

---

<div class="post-metadata">

**Author:** ![Shubham\_Agrawal](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@Shubham\_Agrawal](https://discuss.elastic.co/u/Shubham_Agrawal)\
**Post date:** [December 1, 2016, 5:18am UTC](https://discuss.elastic.co/t/custom-logs-error-exceptions-on-client-side-to-kibana-server/67610/3 "2016-12-01T05:18:21Z")

</div>

Kibana currently logs server requests and response, can't i send a request like that to the kibana server and try to handle it on kibana server ? Something like a new route to which i will send this request to and when this request comes to the server, it logs it. but where would i do this, i can't seem to understand.  
This is a thing I need in urgent so just trying to figure out some approaches quickly.  
thanks.

---

<div class="post-metadata">

**Author:** ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)\
**Post date:** [December 1, 2016, 5:47pm UTC](https://discuss.elastic.co/t/custom-logs-error-exceptions-on-client-side-to-kibana-server/67610/4 "2016-12-01T17:47:41Z")

</div>

Well, you could write a plugin that adds an extension point that taps into [Hapi's request lifecycle](http://hapijs.com/api/14.2.0#request-lifecycle). But as I mentioned there's no guarentee such a plugin would work in future versions of Kibana.

---

<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:** [December 29, 2016, 5:48pm UTC](https://discuss.elastic.co/t/custom-logs-error-exceptions-on-client-side-to-kibana-server/67610/5 "2016-12-29T17:48:10Z")

</div>

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