milvus-logo

Log-related Configurations

This topic introduces the log-related configurations of Milvus.

Using Milvus generates a collection of logs. By default, Milvus uses logs to record information at debug or even higher level for standard output (stdout) and standard error (stderr).

Under this section, you can configure the system log output.

log.level

Description Default Value
  • Milvus log level.
  • Option: debug, info, warn, error, panic, and fatal
  • It is recommended to use debug level under test and development environments, and info level in production environment.
  • debug

    log.file.rootPath

    Description Default Value
  • Root path to the log files.
  • The default value is set empty, indicating to output log files to standard output (stdout) and standard error (stderr).
  • If this parameter is set to a valid local path, Milvus writes and stores log files in this path.
  • Set this parameter as the path that you have permission to write.
  • ""

    log.file.maxSize

    Description Default Value
  • The maximum size of a log file.
  • Unit: MB
  • 300

    log.file.maxAge

    Description Default Value
  • The maximum retention time before a log file is automatically cleared.
  • Unit: day
  • The minimum value is 1.
  • This parameter takes effect only after the valid log.file.rootPath is set.
  • 10

    log.file.maxBackups

    Description Default Value
  • The maximum number of log files to back up.
  • Unit: day
  • The minimum value is 1.
  • This parameter takes effect only after the valid log.file.rootPath is set.
  • 20

    log.format

    Description Default Value
  • Milvus log format.
  • Option: text and JSON
  • text
    Is this page helpful?
    On this page