# How to set log in kibana?

**URL:** <https://discuss.elastic.co/t/how-to-set-log-in-kibana/164120>\
**Category:** Kibana\
**Created:** [January 14, 2019, 9:50am UTC](https://discuss.elastic.co/t/how-to-set-log-in-kibana/164120 "2019-01-14T09:50:05Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![stiltz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stiltz/32/39714_2.png) [@stiltz](https://discuss.elastic.co/u/stiltz)\
**Post date:** [January 15, 2019, 2:37am UTC](https://discuss.elastic.co/t/how-to-set-log-in-kibana/164120/5 "2019-01-15T02:37:39Z")

</div>

While this isn't native to the Elastic stack it is possible with a log rotate script. On Linux you would use logrotate as described here:

> [@Kibana Logs rotation](https://discuss.elastic.co/t/kibana-logs-rotation/66441):
>
> How can we enable the logs file rotation for Kibana logs in Production? I tried to create the logging.yml file in config folder, but does not seems to be working. Meenakshi

In your case on Windows I found this powershell script option on TechNet: [Browse code samples | Microsoft Learn](https://gallery.technet.microsoft.com/scriptcenter/PowerShell-Script-to-Roll-a96ec7d4)

The powershell script doesn't meet exactly the needs you spelled out but could be modified to meet what you're looking for.

---

_[View the full topic](https://discuss.elastic.co/t/how-to-set-log-in-kibana/164120)._
