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 -json
- REST
-
http[s]://<host>:<port>/rest/audit/info?json
Parameter
Parameter | Description |
---|---|
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.
]# 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"
}
}
]
}