# Remotely turn on additional logging to Logstash from Kibana

**URL:** <https://discuss.elastic.co/t/remotely-turn-on-additional-logging-to-logstash-from-kibana/104819>\
**Category:** Logstash\
**Created:** [October 22, 2017, 11:03pm UTC](https://discuss.elastic.co/t/remotely-turn-on-additional-logging-to-logstash-from-kibana/104819 "2017-10-22T23:03:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gminky019](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@gminky019](https://discuss.elastic.co/u/gminky019)\
**Post date:** [October 22, 2017, 11:03pm UTC](https://discuss.elastic.co/t/remotely-turn-on-additional-logging-to-logstash-from-kibana/104819/1 "2017-10-22T23:03:42Z")

</div>

Hi All,

Ive been tasked with researching ELK (Kibana, Elasticsearch, and logstash) stack to possibly use for our new project. I think I have a pretty good grip on it so far but need help answering one question that I havent been able to seem to find through research. Ill try to be as complete as possible describing our use case ! Thanks a head of time!

Question: Can Kibana or a remote client out of the box turn on some sort of additional logging to remote logstash/filebeats?

Use Case: User sees a Fatal error on Kibanas dashboard. user wants to see now all logs even debug/info logs (these logs have not been sent off to elasticsearch).

Reasoning:  
I know normally we could just filter out on Kibana so the user wont get flooded with logs and only see whats important. But one of the locations of the client that is logging has extremely limited bandwidth. As a requirement we have to keep the network usage at a minimum, sending logs along the pipeline constantly doesnt seem like an option.

The idea is to log locally and only send logs of importance to logstash. Until a user requests the logs, then could logstash/fileabeat change its configuration to send the additional logs up?

I realize that this most likely wont have an out of box solution, but is there some sort of solution possible with custom written plugins etc?

Thanks!

---

<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:** [October 23, 2017, 5:27am UTC](https://discuss.elastic.co/t/remotely-turn-on-additional-logging-to-logstash-from-kibana/104819/2 "2017-10-23T05:27:36Z")

</div>

> Can Kibana or a remote client out of the box turn on some sort of additional logging to remote logstash/filebeats?

Not out of the box, no.

> The idea is to log locally and only send logs of importance to logstash. Until a user requests the logs, then could logstash/fileabeat change its configuration to send the additional logs up?

If you have two sets of log files, one with normal logging (info-level and up, or whatever) and another log with only debug logs. A simple configuration change could make Filebeat or Logstash read the debug logs too, but triggering that configuration change would be up to you.

Note that things will be easier if you can configure your logging framework to _only_ log debug messages in the debug log files. If that's impossible one would have to implement some duplicate elimination so you won't get the info-level messages twice.

---

<div class="post-metadata">

**Author:** ![gminky019](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@gminky019](https://discuss.elastic.co/u/gminky019)\
**Post date:** [October 23, 2017, 8:30pm UTC](https://discuss.elastic.co/t/remotely-turn-on-additional-logging-to-logstash-from-kibana/104819/3 "2017-10-23T20:30:05Z")

</div>

> A simple configuration change could make Filebeat or Logstash read the debug logs too, but triggering that configuration change would be up to you.

What do you mean by triggering the update? Can I trigger the configuration change from kibana? Or would I have to possibly write a custom rest call to trigger the change?

---

<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:** [October 23, 2017, 8:36pm UTC](https://discuss.elastic.co/t/remotely-turn-on-additional-logging-to-logstash-from-kibana/104819/4 "2017-10-23T20:36:48Z")

</div>

> Can I trigger the configuration change from kibana?

Maybe with a Kibana plugin.

> Or would I have to possibly write a custom rest call to trigger the change?

Somehow you need to run a piece of code on the machine where Logstash or Filebeat runs. There are a million ways of doing that. Writing a small HTTP service that you can call would be one way.

---

<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:** [November 20, 2017, 8:37pm UTC](https://discuss.elastic.co/t/remotely-turn-on-additional-logging-to-logstash-from-kibana/104819/5 "2017-11-20T20:37:28Z")

</div>

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