---
title: "Collection Agent log file"
description: ""
url: "https://docs.itrsgroup.com/docs/geneos/7.9.0/collection/collection-agent/collection-agent-log-file/index.html"
---
The Collection Agent uses a separate log file from the Netprobe. The log settings for Collection Agent use Logback and are stored in `logback.xml`.

The logback has the following limitations by default:

- Each log file is limited to 100MB.
- Logs are retained for 30 days.
- The total log storage will not exceed 10GB.
- Logs will rollover daily.

You can use the following configuration:

``` xml
  <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
    <file>${COLLECTION_AGENT_DIR:-.}/collection-agent.log</file>
    <append>true</append>
    <immediateFlush>true</immediateFlush>
    <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
      <fileNamePattern>${COLLECTION_AGENT_DIR:-.}/collection-agent-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
      <maxFileSize>100MB</maxFileSize>
      <maxHistory>30</maxHistory>
      <totalSizeCap>10GB</totalSizeCap>
    </rollingPolicy>
```

For more information on the other available options for modifying the logger settings, see [Logback](https://logback.qos.ch/manual/appenders.html).

By default, the Collection Agent log file is stored in the `collection-agent.log` of the working directory. If you are running a managed Collection Agent and you configured the  **Log directory** parameter in GSE, then the `collection-agent.log` will be in that specified location.

