Audit/Access Log Java API

I know that there is a stardog-admin log print function. I can’t seem to find a way to get this output via a Java API.

I need to integrate the stardog log info with other logging details from my application.

Any suggestions (besides shelling out to the command line)?


Hi Andrea,

I put an example of how to read audit log files programmatically here:

The first argument is the file path, the second argument is either the string “text” or “binary” depending on what format was specified in for the log file. KernelEvent class is not in the published javadocs (we’ll include it there later) but it is a very simple interface. Let us know if you have questions.

You’ll need a dependency on “com.complexible.stardog.logging:stardog-logging-api:${stardogVersion}” for this to work.



Excellent, thank you!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.