Warning: JavaScript is disabled on your browser. Parts of Neo4j.com will not work properly.

Knowledge Base

How do I log parameter values into the query.log file

Neo4j 3.0 introduces the ability to log the value of query parameters in the log/query.log file.
The settings to control this feature are located in the conf/neo4j.conf file.
To enable query logging with parameters, one must first enable query logging via the conf/neo4j.conf parameter:

dbms.logs.query.enabled=true

Second, to enable the logging of parameters one should set:

dbms.logs.query.parameter_logging_enabled=true

Note: By default dbms.logs.query.parameter_logging_enabled is set to true.

Once these two settings are defined/enabled (and Neo4j is restarted to apply the change), when a Cypher statement is submitted using parameters, the parameter values will appear at the end of the line.