# How to collect last 10 day debug logs of kibana 7.14.0 to 10 files

**URL:** <https://discuss.elastic.co/t/how-to-collect-last-10-day-debug-logs-of-kibana-7-14-0-to-10-files/288201>\
**Category:** Kibana\
**Tags:** docker\
**Created:** [November 2, 2021, 7:18am UTC](https://discuss.elastic.co/t/how-to-collect-last-10-day-debug-logs-of-kibana-7-14-0-to-10-files/288201 "2021-11-02T07:18:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nuaazt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nuaazt/32/96392_2.png) [@nuaazt](https://discuss.elastic.co/u/nuaazt)\
**Post date:** [November 2, 2021, 7:18am UTC](https://discuss.elastic.co/t/how-to-collect-last-10-day-debug-logs-of-kibana-7-14-0-to-10-files/288201/1 "2021-11-02T07:18:33Z")

</div>

hi, I have downloaded a kibana 7.14.0 docker image. I noted that there are a lot of introduce about debug log settings.

> **[Logs settings in Kibana | Kibana Guide \[7.14\] | Elastic](https://www.elastic.co/guide/en/kibana/7.14/logs-ui-settings-kb.html)**

Now I want to collect the last 10 day debug logs of kibana. And the log should be written one file each day. Do you have the config file sample.

---

<div class="post-metadata">

**Author:** ![Mikhail\_Shustov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mikhail_shustov/32/49186_2.png) [@Mikhail\_Shustov](https://discuss.elastic.co/u/Mikhail_Shustov)\
**Post date:** [November 4, 2021, 2:00pm UTC](https://discuss.elastic.co/t/how-to-collect-last-10-day-debug-logs-of-kibana-7-14-0-to-10-files/288201/2 "2021-11-04T14:00:49Z")

</div>

> Now I want to collect the last 10 day debug logs of kibana. And the log should be written one file each day. Do you have the config file sample.

You should use `RollingFileAppender` with `TimeIntervalTriggeringPolicy` strategy. Kibana logging system docs:

> **[Logging service | Kibana Guide \[7.15\] | Elastic](https://www.elastic.co/guide/en/kibana/7.15/logging-service.html#rolling-file-appender)**
>
> Kibana provides you with several options to share \*Discover\* saved searches, dashboards, \*Visualize Library\* visualizations, and \*Canvas\* workpads with others, or on a website.

> **[Configure Kibana | Kibana Guide \[7.15\] | Elastic](https://www.elastic.co/guide/en/kibana/7.15/settings.html)**
>
> A reference of the reporting settings administrators configure in kibana.yml.

---

<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 2, 2021, 2:01pm UTC](https://discuss.elastic.co/t/how-to-collect-last-10-day-debug-logs-of-kibana-7-14-0-to-10-files/288201/3 "2021-12-02T14:01:38Z")

</div>

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