> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/xsoar-6-administrator-guide/6.13/learn-about-cortex-xsoar/customize-and-configure-cortex-xsoar/logs/configure-the-server-log.md).

# Configure the Server Log

You can configure the log level, the number of backups, the number of days to retain log files, and the maximum size of the server log.

By default, the log level of the server log is Info. The following are the log level options:

* Fatal - indicates truly catastrophic situations. Not usually used.
* Error - provides information about a serious issue that represents the failure of something important in the application.
* Warning - indicates that there might be a problem.
* Info - displays normal application behavior and milestones.
* Debug - provides detailed diagnostic information. Debug causes the system to write many logs about the operational outcome of several procedural processes and subprocesses. The debug level is resource intensive. You should set the log level to debug only on advice from the technical support, customer success teams, or problem-specific documentation.
* Trace - extremely detailed information. Not often used.

You can configure the log level of the server log in the UI or in the `/etc/demisto.conf` file. If you configure the log level in the UI, you can only select the following log levels: Warning, Info, Debug.

The maximum size of the server log is 20 MB by default. Although you can change this value, it is recommended not to exceed 20 MB. When the server log is full, it is saved as a backup and a new server log is created. The default number of backup files is 3.

1. To configure the log level of your server log:
   * In the UI, go to Settings → About → **Troubleshooting** and select the log level from the **Log Level** drop down list.
   * In the `/etc/demisto.conf` file, add the key **`log.level`** and the new log level.
2. To configure the maximum size of the log file, the number of files to retain, and the number of days to retain log files:

   1. In the UI, go to Settings → About → **Troubleshooting**.
   2. Add the following keys with their new value: log.rolling.backups, log.rolling.maxfilesize.

      | Key                           | Value                                                                                                                                                                                                                                                                                                                                                                                                                    |
      | ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
      | **`log.rolling.maxfilesize`** | The maximum size in MB to retain log files based. Default is 20 MB.                                                                                                                                                                                                                                                                                                                                                      |
      | **`log.rolling.backups`**     | The maximum number of log files to retain. Default is 3.                                                                                                                                                                                                                                                                                                                                                                 |
      | **`log.rolling.maxage`**      | <p>The maximum number of days to retain old log files based on the time stamp encoded in the file name. Default is 0 (not to retain old log files based on age).</p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>Note</strong></p><p>A day is defined as 24 hours and may not exactly correspond to calendar days due to daylight savings, leap seconds, etc.</p></div> |

   When changing the configuration settings, bear in mind your available disk space. Increasing the values, may have an adverse impact.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://cortex-docs.paloaltonetworks.com/xsoar-6-administrator-guide/6.13/learn-about-cortex-xsoar/customize-and-configure-cortex-xsoar/logs/configure-the-server-log.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
