# Configuring Kibana Logging

**URL:** <https://discuss.elastic.co/t/configuring-kibana-logging/305112>\
**Category:** Kibana\
**Created:** [May 18, 2022, 10:43pm UTC](https://discuss.elastic.co/t/configuring-kibana-logging/305112 "2022-05-18T22:43:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wwalker](https://avatars.discourse-cdn.com/v4/letter/w/43a26b/32.png) [@wwalker](https://discuss.elastic.co/u/wwalker)\
**Post date:** [May 18, 2022, 10:43pm UTC](https://discuss.elastic.co/t/configuring-kibana-logging/305112/1 "2022-05-18T22:43:43Z")

</div>

I don't know why this is so hard, but I can't figure out the new way of configuring logging in Kibana. I am trying to output kibana logs to a file, below is what I have. It doesn't throw errors, but it also doesn't log anything to the specified filename. What am I missing?

```auto
logging:
  appenders:
    rolling-file:
      type: rolling-file
      fileName: "d:/ElasticStack/Logs/Kibana/kibana.log"
      policy:
        type: size-limit
        size: 50mb
      strategy:
        type: numeric
        pattern: '-%i'
        max: 5
      layout:
        type: json
  root:
    level: all

```

---

<div class="post-metadata">

**Author:** ![sudhagar\_ramesh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sudhagar_ramesh/32/105673_2.png) [@sudhagar\_ramesh](https://discuss.elastic.co/u/sudhagar_ramesh)\
**Post date:** [May 19, 2022, 2:35am UTC](https://discuss.elastic.co/t/configuring-kibana-logging/305112/2 "2022-05-19T02:35:06Z")

</div>

Hello @wwalker

Could you please try changing the slash like below

```auto
fileName: "D:\ElasticStack\Logs\Kibana\kibana.log"

```

Keep Posted!!! Thanks !!!

---

<div class="post-metadata">

**Author:** ![wwalker](https://avatars.discourse-cdn.com/v4/letter/w/43a26b/32.png) [@wwalker](https://discuss.elastic.co/u/wwalker)\
**Post date:** [May 20, 2022, 7:16pm UTC](https://discuss.elastic.co/t/configuring-kibana-logging/305112/3 "2022-05-20T19:16:44Z")

</div>

When I tried using single backslashes, I got the error

```auto
YAMLException: unknown escape sequence at line 60, column 21:
          fileName: "d:\ElasticStack\Logs\Kibana\kibana.log"

```

So then I escaped the backslashes and Kibana started up fine, but still no log file.

```auto
      fileName: "d:\\ElasticStack\\Logs\\Kibana\\kibana.log"

```

---

<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:** [June 17, 2022, 7:17pm UTC](https://discuss.elastic.co/t/configuring-kibana-logging/305112/4 "2022-06-17T19:17:28Z")

</div>

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