rotate-logs

The rotate-logs command rotates component logs.

Note: This command is intended for use by Oracle Support only.
To rotate component logs, run the following from the Admin Server:
./bdd-admin.sh rotate-logs [option <arg>]

rotate-logs supports the following options.

Option Description
-c, --component <component(s)> A comma-separated list of the component logs to rotate:
  • agent: Dgraph HDFS Agent logs
  • dgraph: Dgraph logs (includes the FUSE log, if FUSE is enabled)
  • gateway: Dgraph Gateway logs
  • studio: Studio logs
  • transform: Transform Service
  • weblogic: WebLogic Server logs
  • clustering: Clustering Service (if enabled)
-n, --node <hostname(s)> A comma-separated list of the nodes to run on. Each must be defined in bdd.conf.

If no options are specified, the script rotates all supported component logs.

Examples

The following command rotates all supported component logs:
./bdd-admin.sh rotate-logs
The following command rotates the logs of the Dgraph and Dgraph HDFS Agent running on the web009.us.example.com node:
./bdd-admin.sh rotate-logs -c dgraph,agent -n web009.us.example.com