How to view logs in a human-readable format

Created by Steve Place, Modified on Wed, 24 Jan 2024 at 06:43 PM by Steve Place

If you've set your access, audit, or slow query log to type text to make it human readable, you may notice that the resulting log isn't incredibly easy to read. This is because the log still needs to be printed with the log print command.

This command can be run like so:

stardog-admin log print --text /path/to/audit.log

With this function, you can filter by time, event, etc.

By default, this command will print the log to your terminal, but you can save the log to a file by redirecting the output with >:

stardog-admin log print --text /path/to/audit.log > /path/to/human_readable_audit.log

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article