389ds / 389-ds-base

The enterprise-class Open Source LDAP server for Linux
https://www.port389.org/
Other
210 stars 90 forks source link

Issue 6238 - RFE - add option to write audit log in JSON format #6239

Closed mreynolds389 closed 2 months ago

mreynolds389 commented 3 months ago

Description:

Add option to set the format between: default, json, or json-pretty

json-pretty just writes the JSON format in a vertical structure verses one condensed line of text.

You can also adjust the date format using strftime formatting

Relates: https://github.com/389ds/389-ds-base/issues/6238

mreynolds389 commented 3 months ago

Ok all the changes have been made. I changed the names of the time keys from "date" -> "local_time", and "time" -> "gm_time". Not sure if those are the best names to use, but it's clearer than before.