--- title: "Configuring log rotation for specific types of log files" slug: "configuring-log-rotation-for-specific-types-of-log-files" tags: ["Endpoint Security (HX)", "Product Usage"] updated: 2026-09-23T17:25:03Z published: 2026-09-23T17:25:03Z canonical: "docs.trellix.com/configuring-log-rotation-for-specific-types-of-log-files" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Configuring log rotation for specific types of log files This topic describes how to enable and configure file-based log rotation for audit logs and login history logs on the HX appliance. You can rotate these log files at a specified period of time, when they reach a specified file size, or when they take up a specified percentage of disk space. Configuring the criteria for individual file types overwrites the global configuration. For a full list of logging commands and their usage and parameters, see the *CLI Command Reference*. Prerequisites - Admin access To enable and configure file-based log rotation: 1. Go to CLI configuration mode: ``` hostname > enable hostname # configure terminal ``` 2. Enable the rotation feature for the specified file type: ``` hostname (config) # logging files rotation file-type {audit | login-history} criteria enable ``` 3. Specify either the frequency or file size at which a new log is created: ``` hostname (config) # logging files rotation file-type {audit | login-history} criteria {frequency {daily | monthly | weekly | yearly} | size | size-pct } ``` :