get-log-levels

The get-log-levels command returns the list of component logs and their current levels.

To obtain component log levels, run the following from the Admin Server:
./bdd-admin.sh get-log-levels [option <arg>]

get-log-levels supports the following options.

Option Description
-c, --component <component(s)> A comma-separated list of the components to run on:
  • dgraph: Dgraph
  • dp: DP CLI
  • gateway: Dgraph Gateway
Note the following:
  • The dgraph component returns the current levels of all Dgraph out log subsystems. For more information, see Dgraph out log.
  • The dp component returns the current log levels for the DP CLI, and not the Workflow Manager Service or Data Processing. For information on obtaining the log levels for these components, see the Data Processing Guide.
-n, --node <hostname(s)> A comma-separated list of the nodes to run on. Each must be defined in $BDD_HOME/BDD_manager/conf/bdd.conf.

If no options are specified, the script returns the current log levels for all supported components.

If the script completes successfully, its output will be similar to the following:
[2015/06/01 22:36:24 -0400] [Admin Server] Retrieving log levels...
[2015/06/01 22:36:30 -0400] [web009.us.example.com] Retrieving Dgraph Gateway log level.......Success!
   Gateway                      : WARNING
[2015/06/01 22:36:33 -0400] [web009.us.example.com] Retrieving DP log level.......Success!
   DP                           : INCIDENT_ERROR
[2015/06/01 22:36:45 -0400] [web009.us.example.com] Retrieving Dgraph log levels.......Success!
All Dgraph log subsystems:
   background_merging           : ERROR
   bulk_ingest                  : ERROR
   cluster                      : WARNING
   database                     : ERROR
   datalayer                    : ERROR
   dgraph                       : ERROR
   eql                          : ERROR
   eql_feature                  : TRACE
   eve                          : WARNING
   http                         : ERROR
   lexer                        : ERROR
   splitting                    : ERROR
   ssl                          : ERROR
   task_scheduler               : ERROR
   text_search_rel_rank         : ERROR
   text_search_spelling         : ERROR
   update                       : ERROR
   workload_manager             : ERROR
   ws_request                   : ERROR
   xq_web_service               : ERROR

[2015/06/01 22:36:49 -0400] [Admin Server] Successfully retrieved all log levels.

Examples

The following command prints the current log levels of all supported components:
./bdd-admin.sh get-log-levels
The following command prints the current log level of the Dgraph Gateway running on the web009.us.example.com node:
./bdd-admin.sh get-log-levels -c gateway -n web009.us.example.com