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)?

Thanks.
Andrea

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 stardog.properties 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.

Best,
Evren

2 Likes

Excellent, thank you!
Andrea

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