# Kibana in not running after setting log file destination

**URL:** <https://discuss.elastic.co/t/kibana-in-not-running-after-setting-log-file-destination/194579>\
**Category:** Kibana\
**Created:** [August 9, 2019, 9:44am UTC](https://discuss.elastic.co/t/kibana-in-not-running-after-setting-log-file-destination/194579 "2019-08-09T09:44:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ayush\_Verma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ayush_verma/32/46709_2.png) [@Ayush\_Verma](https://discuss.elastic.co/u/Ayush_Verma)\
**Post date:** [August 9, 2019, 9:44am UTC](https://discuss.elastic.co/t/kibana-in-not-running-after-setting-log-file-destination/194579/1 "2019-08-09T09:44:14Z")

</div>

I set the path to log file in kibana.yml file after that kibana is stop working.  
This is kibana.yml file:

```
# Kibana is served by a back end server. This setting specifies the port to use.
server.port: 5601
# Specifies the address to which the Kibana server will bind. IP addresses and host names are both valid values.
# The default is 'localhost', which usually means remote machines will not be able to connect.
# To allow connections from remote users, set this parameter to a non-loopback address.
server.host:"10.128.0.26"
# Enables you to specify a path to mount Kibana at if you are running behind a proxy.
# Use the `server.rewriteBasePath` setting to tell Kibana if it should remove the basePath
# from requests it receives, and to prevent a deprecation warning at startup.
# This setting cannot end in a slash.
#server.basePath: ""
# Specifies whether Kibana should rewrite requests that are prefixed with
# `server.basePath` or require that they are rewritten by your reverse proxy.
# This setting was effectively always `false` before Kibana 6.3 and will
# default to `true` starting in Kibana 7.0.
#server.rewriteBasePath: false
# The maximum payload size in bytes for incoming server requests.
#server.maxPayloadBytes: 1048576
# The Kibana server's name. This is used for display purposes.
server.name: "Kibana"
# The URLs of the Elasticsearch instances to use for all your queries.
elasticsearch.hosts: ["http://10.128.0.26:9200"]
# When this setting's value is true Kibana uses the hostname specified in the server.host
# setting. When the value of this setting is false, Kibana uses the hostname of the host
# that connects to this Kibana instance.
elasticsearch.preserveHost: true
# Kibana uses an index in Elasticsearch to store saved searches, visualizations and
# dashboards. Kibana creates a new index if the index doesn't already exist.
kibana.index: ".kibana"
logging.dest: /var/log/kibana/kibana.log
# Set the value of this setting to true to suppress all logging output.
#logging.silent: false
# Set the value of this setting to true to suppress all logging output other than error messages.
#logging.quiet: false
# Set the value of this setting to true to log all events, including system usage information
# and all requests.
logging.verbose: false

```

this is what i get after running  
`service kibana status`

```
root@elastic-stage-vyakar:/var/log# service kibana status
● kibana.service - Kibana
   Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Fri 2019-08-09 08:13:12 UTC; 1h 17min ago
  Process: 4570 ExecStart=/usr/share/kibana/bin/kibana -c /etc/kibana/kibana.yml (code=exited, status=1/FAILURE)
 Main PID: 4570 (code=exited, status=1/FAILURE)
Aug 09 08:13:11 elastic-stage-vyakar systemd[1]: kibana.service: Main process exited, code=exited, status=1/FAILURE
Aug 09 08:13:11 elastic-stage-vyakar systemd[1]: kibana.service: Failed with result 'exit-code'.
Aug 09 08:13:12 elastic-stage-vyakar systemd[1]: kibana.service: Service hold-off time over, scheduling restart.
Aug 09 08:13:12 elastic-stage-vyakar systemd[1]: kibana.service: Scheduled restart job, restart counter is at 3.
Aug 09 08:13:12 elastic-stage-vyakar systemd[1]: Stopped Kibana.
Aug 09 08:13:12 elastic-stage-vyakar systemd[1]: kibana.service: Start request repeated too quickly.
Aug 09 08:13:12 elastic-stage-vyakar systemd[1]: kibana.service: Failed with result 'exit-code'.
Aug 09 08:13:12 elastic-stage-vyakar systemd[1]: Failed to start Kibana.

```

however i can get log details by using `journalctl -u kibana.service` but i want it in file format.  
this is log:

```
Aug 09 09:36:39 elastic-stage-vyakar systemd[1]: kibana.service: Main process exited, code=exited, status=1/FAILURE
Aug 09 09:36:39 elastic-stage-vyakar systemd[1]: kibana.service: Failed with result 'exit-code'.
Aug 09 09:36:40 elastic-stage-vyakar systemd[1]: kibana.service: Service hold-off time over, scheduling restart.
Aug 09 09:36:40 elastic-stage-vyakar systemd[1]: kibana.service: Scheduled restart job, restart counter is at 3.
Aug 09 09:36:40 elastic-stage-vyakar systemd[1]: Stopped Kibana.
Aug 09 09:36:40 elastic-stage-vyakar systemd[1]: kibana.service: Start request repeated too quickly.
Aug 09 09:36:40 elastic-stage-vyakar systemd[1]: kibana.service: Failed with result 'exit-code'.
Aug 09 09:36:40 elastic-stage-vyakar systemd[1]: Failed to start Kibana.

```

Any help, anything that i should add or change ?  
Thanks

---

<div class="post-metadata">

**Author:** ![azasypkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azasypkin/32/42216_2.png) [@azasypkin](https://discuss.elastic.co/u/azasypkin)\
**Post date:** [August 9, 2019, 12:26pm UTC](https://discuss.elastic.co/t/kibana-in-not-running-after-setting-log-file-destination/194579/2 "2019-08-09T12:26:46Z")

</div>

Hi @Ayush_Verma,

First of all can you can confirm that Kibana starts if you just comment out `logging.dest: /var/log/kibana/kibana.log` in your current config? If yes, than try to set this setting to path that Kibana can definitely access, e.g. somewhere in your home directory and in a folder that definitely exists.

Best,  
Oleg

---

<div class="post-metadata">

**Author:** ![Ayush\_Verma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ayush_verma/32/46709_2.png) [@Ayush\_Verma](https://discuss.elastic.co/u/Ayush_Verma)\
**Post date:** [August 13, 2019, 9:58am UTC](https://discuss.elastic.co/t/kibana-in-not-running-after-setting-log-file-destination/194579/3 "2019-08-13T09:58:00Z")

</div>

Yes, i set the path to /etc/kibana/kibana.log and give the write access now its working.

---

<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:** [September 10, 2019, 9:58am UTC](https://discuss.elastic.co/t/kibana-in-not-running-after-setting-log-file-destination/194579/4 "2019-09-10T09:58:01Z")

</div>

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