The Dgraph out log is where the Dgraph's stdout/stderr output is remapped.
$BDD_HOME/logs/dgraph.out
You can specify a new out log location by changing the DGRAPH_OUT_FILE parameter in the bdd.conf file and then restarting the Dgraph.
The Dgraph stdout/stderr log includes startup messages as well as warning and error messages. You can increase the verbosity of the log via the Dgraph -v flag.
Log entry field | Description | Example |
---|---|---|
Timestamp | The local date and time when the
message was generated, using use the following ISO 8601 extended format:
YYYY-MM-DDTHH:mm:ss.sss(+|-)hh:mm The hours range is 0 to 23 and milliseconds and offset timezones are mandatory. |
2016-03-18T13:25:30.600-04:00 |
Component ID | The ID of the component that originated the message. "DGRAPH" is hard-coded for the Dgraph. | DGRAPH |
Message Type | The type of message (log level):
|
WARNING |
Log Subsystem | The log subsystem that generated the message. | {dgraph} |
Job ID | The ID of the job being executed. | [0] |
Message Text | The text of the log message. | Starting HTTP server on port: 7010 |
All of these subsystems have a default log level of NOTIFICATION.
The first log entry (that begins with "Starting Dgraph") lists the Dgraph version, startup flags and arguments, and path to the Dgraph databases directory. Later entries log additional start-up information, such as the amount of RAM and the number of logical CPUs on the system, the CPU cache topology, the created Web services, HTTP port number, and Bulk Load port number.
DGRAPH NOTIFICATION {dgraph} [0] Shutdown request received at Wed Oct 5 16:17:42 2016. Shutdown will complete when all outstanding jobs are complete. DGRAPH WARNING {cluster} [0] Lost connection to ZooKeeper: ZooKeeper connection lost (zk error -4) DGRAPH NOTIFICATION {cluster} [0] Finished closing zk connection DGRAPH NOTIFICATION {database} [0] Finished unmounting everything. DGRAPH NOTIFICATION {dgraph} [0] All dgraph transactions completed at Wed Oct 5 16:17:43 2016, exiting normally (pid=14789) DGRAPH NOTIFICATION {database} [0] Finished unmounting everything. DGRAPH NOTIFICATION {dgraph} [0] Overall shutdown took 922 ms
DGRAPH NOTIFICATION {cluster} [0] Promoting to leader on database edp_cli_edp_c23fdc4c DGRAPH NOTIFICATION {database} [0] Mounting database edp_cli_edp_c23fdc4c DGRAPH NOTIFICATION {dgraph} [0] Initial DL version: 2 DGRAPH NOTIFICATION {bulk_ingest} [0] MessageParser created DGRAPH NOTIFICATION {bulk_ingest} [0] Start ingest for collection: edp_cli_edp_c23fdc4c for database edp_cli_edp_c23fdc4c DGRAPH NOTIFICATION {bulk_ingest} [0] Starting bulk ingest operation REPLACE_RECORDS for database edp_cli_edp_c23fdc4c DGRAPH NOTIFICATION {bulk_ingest} [0] Ending bulk ingest for database edp_cli_edp_c23fdc4c at client's request DGRAPH NOTIFICATION {bulk_ingest} [0] Bulk ingest completed: Added 351 records and rejected 0 records, for database edp_cli_edp_c23fdc4c DGRAPH NOTIFICATION {bulk_ingest} [0] Final statistics: 0.060 MiB, 1.008 records seconds, 0.060 MiB/s records throughput, 1.182 total seconds, 0.051 MiB/s total throughput for database edp_cli_edp_c23fdc4c
The bulk_ingest entries show the ingest of a data set with 351 records.