audit info

Displays whether auditing of cluster-management operations and auditing 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> ]
-json 
REST
Request Type POST
Request URL
http[s]://<host>:<port>/rest/audit/info?<parameters> 

Parameter

Parameter Description
cluster The name of the cluster on which to run the command.
json Displays command output in JSON format. When -json is omitted, there is no output.

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 Based on your SSL setup, use the appropriate SSL-related command line option in the curl command given below.
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"}}]}