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 Tue Mar 29 16:59:17 2016.
Shutdown will complete when all outstanding jobs are complete.
DGRAPH NOTIFICATION {database} [0] Finished unmounting everything.
DGRAPH NOTIFICATION {dgraph} [0] All dgraph transactions completed at Tue Mar 29 16:59:17 2016, exiting normally (pid=3701)
DGRAPH WARNING {cluster} [0] Lost connection to ZooKeeper: ZooKeeper connection lost (zk error -4)
DGRAPH NOTIFICATION {cluster} [0] Finished closing zk connection
DGRAPH NOTIFICATION {dgraph} [0] Overall shutdown took 1194 ms
...
DGRAPH NOTIFICATION {cluster} [0] Promoting to leader on database edp_f475de43
DGRAPH NOTIFICATION {database} [0] Mounting database edp_f475de43
DGRAPH NOTIFICATION {dgraph} [0] Initial DL version: 2
DGRAPH NOTIFICATION {bulk_ingest} [0] MessageParser constructor, parserCounter incremented, is now 1
DGRAPH NOTIFICATION {bulk_ingest} [0] Start ingest for collection: edp_f475de43 for database edp_f475de43
DGRAPH NOTIFICATION {bulk_ingest} [0] Starting a bulk ingest operation for database edp_f475de43
DGRAPH NOTIFICATION {bulk_ingest} [0] batch 0 finish BatchUpdating status Success for database edp_f475de43
DGRAPH NOTIFICATION {bulk_ingest} [0] Ending bulk ingest at client's request for database edp_f475de43 - finalizing changes
DGRAPH NOTIFICATION {bulk_ingest} [0] Bulk ingest completed: Added 20000 records and rejected 0 records, for database edp_f475de43
DGRAPH NOTIFICATION {bulk_ingest} [0] Ingest end - 11.663MB in 7.042sec = 1.656MB/sec for database edp_f475de43
The bulk_ingest entries show the ingest of a data set with 20,000 records.