Where is neo4j.log in the official Neo4j Docker?

HI there,

I am running Neo4j Enterprise 3.5.19 in the official docker container (docker-neo4j-publish/Dockerfile at 2e3dda4f3b545c33fee51bc5fce089923a3cc1e7 · neo4j/docker-neo4j-publish · GitHub) and noticed that /logs/ only has debug.log and query.log but no neo4j.log. Is this expected?

I am trying to debug a ServiceUnavailable exception and need to see logs from the database but I didn't find anything at all in neither my debug.log nor my query.log. Based on guidance from this reply, I'm hoping to find something in neo4j.log if it exists.

My logging config is as follows:

    dbms.logs.debug.level=INFO
    dbms.logs.query.enabled=true
    dbms.logs.query.rotation.size=20m
    dbms.logs.query.rotation.keep_number=7
    dbms.logs.query.parameter_logging_enabled=false
    dbms.logs.query.time_logging_enabled=true
    dbms.logs.query.allocation_logging_enabled=true

In my container I see

{user}@{namespace-}0:/logs# ls -l
total 180
-rw-r--r--. 1 neo4j neo4j 178076 Feb 26 19:46 debug.log
-rw-r--r--. 1 neo4j neo4j    594 Feb 26 20:00 query.log

per

docker-neo4j/docker-entrypoint.sh at master · neo4j/docker-neo4j · GitHub you will see that neo4j is started as neo4j console and to some extent there is no neo4j.log created.

However you should be able to run

docker logs <container>

for example

$ sudo docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                                                      NAMES
063a1cc47627        417ff881ecc6        "/sbin/tini -g -- /d…"   3 months ago        Up 3 minutes        0.0.0.0:7474->7474/tcp, 7473/tcp, 0.0.0.0:7687->7687/tcp   charming_wozniak
neo4j@neo4j-lg:~$ sudo docker logs 063a1cc47627 | tail -50
  plugins:      /var/lib/neo4j/plugins
  import:       /var/lib/neo4j/import
  data:         /var/lib/neo4j/data
  certificates: /var/lib/neo4j/certificates
  run:          /var/lib/neo4j/run
Starting Neo4j.
2021-02-26 13:03:25.452+0000 INFO  ======== Neo4j 4.0.8 ========
2021-02-26 13:03:25.488+0000 INFO  Starting...
2021-02-26 13:03:47.865+0000 INFO  Sending metrics to CSV file at /var/lib/neo4j/metrics
2021-02-26 13:03:47.962+0000 INFO  Bolt enabled on 0.0.0.0:7687.
2021-02-26 13:03:47.963+0000 INFO  Started.
2021-02-26 13:03:48.977+0000 INFO  Server thread metrics have been registered successfully
2021-02-26 13:03:57.013+0000 INFO  Remote interface available at http://localhost:7474/
2021-02-26 22:14:26.436+0000 INFO  Neo4j Server shutdown initiated by request
2021-02-26 22:14:26.562+0000 INFO  Stopping...
2021-02-26 22:14:32.865+0000 INFO  Stopped.
Directories in use:
  home:         /var/lib/neo4j
  config:       /var/lib/neo4j/conf
  logs:         /logs

Thanks! I didn't realize that the output from neo4j console was neo4j.log.