Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

Dell NetWorker 19.9 Administration Guide

CLI log file management

NetWorker Authentication Services uses the Apache log4j API to manage log files. To modify how NetWorker Authentication Services manage the CLI log file, edit the authc-cli-log4j.properties file. On UNIX, the authc-cli-log4j.properties file is in /opt/nsr/authc-server/conf. On Windows, the file is in C:\Program Files\EMC NetWorker\nsr\authc-server\conf.

This section describes how to modify the commonly used log attributes in the log4j.properties file. Apache documentation provides more detailed information about each attribute in the log4j.properties file.

NOTE:After you make changes to the authc-cli-log4j.properties file, you must stop and start the NetWorker Authentication Service daemon to reset the configuration settings.
Modifying the logging level
The rootLogger.level= attribute defines the level of logging that the NetWorker Authentication Service writes to the log files and where the messages appear. By default, the NetWorker Authentication Service sets the logging level to warn and messages appear in the log files, stdout, and in the Java application, There are five standard log levels: debug, info, warn, error, and fatal.

To change the logging level to error, modify the rootLogger.level= attribute to appear as follows: rootLogger.level=error

Modifying the maximum log file size
The appender.app.policies.size.size attribute defines the maximum size of the authc-cli.log file. When the log file reaches the maximum size, NetWorker Authentication Service renames the log file for archival purposes and creates a log file. By default, NetWorker Authentication Service sets the maximum size to 100 KB.

To increase the size of the log file to 2 MB, modify the appender.app.policies.size.size attribute to appear as follows: appender.app.policies.size.size=2MB

Modifying the number of rollover log files
The appender.app.strategy.max attribute defines the number of authc-cli.log rollover log files that the NetWorker Authentication Service maintains. When the size of the authc-cli.log reaches the maximum file size value, NetWorker Authentication Service copies the contents of the log file to a new log file with the naming convention authc-cli-incrementalNumber.log. By default, NetWorker Authentication Service maintains 10 rollover log files.

To increase the number of rollover log files to 4, modify the appender.app.strategy.max attribute to appear as follows: appender.app.strategy.max=4


Rate this content

Accurate
Useful
Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\