Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Neo4j http.log empty

Tags:

neo4j

I'm trying to turn on http logging for an Enterprise 2.0 Neo4j server.

After following this documentation, and adding the following likes to neo4j-server.properties:

org.neo4j.server.http.log.enabled=true

# Logging policy file that governs how HTTP log output is presented and
# archived. Note: changing the rollover and retention policy is sensible, but
# changing the output format is less so, since it is configured to use the
# ubiquitous common log format
org.neo4j.server.http.log.config=conf/neo4j-http-logging.xml

the data/log/http.log file is still zero bytes even after restarting the server and then running a basic Ruby script that inserts nodes (upon request if needed).

I'm guessing I'm missing something completely obvious here so bear with me. Thanks.

UPDATE on 9/26/14

I'm still seeing this issue for Neo4j 2.1.2

like image 883
seenickcode Avatar asked Jan 06 '14 03:01

seenickcode


People also ask

Where can I find Neo4j logs?

In most Neo4j server environments, all logs will be found in NEO4J_HOME/logs.

Does Neo4j use Log4j?

As of Neo4j 5.0, Neo4j uses Log4j 2 for logging.

Can't connect to Neo4j browser?

Troubleshooting steps: Ensure that the address is correct. Ensure that if the server is listening for bolt connections on a port other than 7687, that you pass the port explicitly to your client (e.g. cypher-shell) or other program you have written. Ensure that firewall rules do not prohibit traffic on the bolt port.

Where is Neo4j config file?

Neo4j configuration files are located at the /opt/bitnami/neo4j/conf/ directory.


1 Answers

has anyone managed to get the http logs to work?

There was a possible solution on google groups that you could touch the http.log file before starting the server, but still get an empty log file.

For the time being we might try to put a reverse proxy in to log the req and response.

like image 68
wenic Avatar answered Oct 10 '22 04:10

wenic