--- title: "Configuring log rotation for specific types of log files" slug: "configuring-log-rotation-for-specific-types-of-log-files-4" tags: ["Product Usage", "CMS 11.x", "EX 11.x", "FX 11.x", "AX 11.x", "NX 11.x", "IVX 11.x", "Network Security"] updated: 2026-08-24T20:40:08Z published: 2026-08-24T20:40:08Z canonical: "docs.trellix.com/configuring-log-rotation-for-specific-types-of-log-files-4" stale: true --- > ## 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 IVX 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 } ```