There is built in http request logging:

org.neo4j.server.http.unsafe.content_log.enabled=true
In neo4j-server.properties, and by specifying the http log to output full
requests and responses:

<pattern>%fullRequest\n\n%fullResponse</pattern>
As this uses mechanisms to fully duplicate incoming request and response
streams, it is strongly recommended to not run this in a production setting.
However, it should prove very useful for debugging and testing

and if you use a server extension + plugin-initializer you can get access to 
the neo4j webserver and use the addFilter() method.

see here for an example: 
https://github.com/neo4j-contrib/authentication-extension/blob/2.1/src/main/java/org/neo4j/server/extension/auth/AuthenticationExtensionInitializer.java#L83
 
<https://github.com/neo4j-contrib/authentication-extension/blob/2.1/src/main/java/org/neo4j/server/extension/auth/AuthenticationExtensionInitializer.java#L83>


> Am 29.04.2015 um 19:43 schrieb cui r <[email protected]>:
> 
> Hi,
> 
> Is there anyway to add a web interceptor to the Neo4j server to log a few 
> customized HTTP headers sent along with requests?
> 
> I am aware of the server extension, but I need to get hold of the 
> HttpServletRequest. How do I get that?
> 
> Thanks in advance.
> Rick
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Neo4j" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to