audit info

This shows whether auditing of cluster-management operations and auditing of data-access operations are enabled. Also, displays the maxSize and retention values for these two levels of auditing.

Only the mapr user for the cluster can run this command. For more information about the mapr user, see Managing Users and Groups.

Syntax

CLI
maprcli audit info 
[ -cluster <cluster_name> ] 
REST
Request Type POST
Request URL
http[s]://<host>:<port>/rest/audit/info?<parameters> 

Parameter

Parameter Description
cluster (Optional) The name of the cluster on which to run the command. The default is the cluster on which the command is run.

Example Output

This output shows that auditing of operations on data and auditing of cluster-level operations are both enabled. For descriptions of maxSizeGB and retentionDays, see the commands maprcli audit cluster and maprcli audit data.

CLI
# maprcli audit info -json
                     {
                     "timestamp":1434458923034,
                     "timeofday":"2015-06-16 12:48:43.034 GMT+0000",
                     "status":"OK",
                     "total":1,
                     "data":[
                     {
                     "data":{
                     "enabled":"1",
                     "maxSizeGB":"32",
                     "retentionDays":"30"
                     },
                     "cluster":{
                     "enabled":"1",
                     "maxSizeGB":"NA",
                     "retentionDays":"NA"
                     }
                     }
                     ]
                     }   
REST
NOTE
For REST examples stated below, use the appropriate SSL-related command line option in the following curl command, according to your SSL setup.
curl -X POST -u <username> https://abc.sj.us:8443/rest/audit/info
{"timestamp":1669013470770,"timeofday":"2022-11-21 06:51:10.770 GMT+0000 AM","status":"OK","total":1,"data":[{"data":{"enabled":"0","maxSizeGB":"32","retentionDays":"30"},"cluster":{"enabled":"1"}}]}