Command

nylas audit config set

Set an audit configuration value. Valid keys: retention_days, max_size_mb, rotate_daily, compress_old, log_request_id, log_api_details.

Written by Qasim Muhammad Staff SRE

What does nylas audit config set do?

The nylas audit config set command changes audit logging settings like retention period (retention_days), maximum log file size (max_size_mb), daily rotation (rotate_daily), compression (compress_old), and whether to capture API request IDs and details. Changes take effect immediately.

Usage

nylas audit config set <key> <value>

Flags

FlagDescription
--jsonOutput as JSON
--no-colorDisable color output
--verbose(-v)Enable verbose output
--configCustom config file path
--help(-h)Show help for the command
--limitLimit results (most list commands)
--yes(-y)Skip confirmations

Examples

The nylas audit config set command changes audit logging settings like retention period (retention_days), maximum log file size (max_size_mb), daily rotation (rotate_daily), compression (compress_old), and whether to capture API request IDs and details.

Change retention period

nylas audit config set retention_days 30

Move log storage

nylas audit config set path /var/log/nylas-audit

Increase max log size

nylas audit config set max_size_mb 200

Enable daily rotation

nylas audit config set rotate_daily true

Log API request details

nylas audit config set log_api_details true

Example output

✓ Updated audit config
  retention_days: 30

Troubleshooting

Invalid configuration key

Valid keys: retention_days, max_size_mb, rotate_daily, compress_old, log_request_id, log_api_details, path.

Changes not taking effect

Configuration changes apply to new log entries. Existing entries are not affected.

Recommended guides

Run nylas audit config set --help for full help output.