audit cluster

Enables and disables auditing of operations that are related to the administration of a data-fabric cluster.

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

For information about auditing cluster-administration operations, see Auditing of Activity Related to Cluster Administration.

Syntax

CLI
maprcli audit cluster
   -enabled <true | false>
REST
Request Type POST
Request URL
http[s]://<host>:<port>/rest/audit/cluster?enabled=true_or_false 

Parameters

Parameter Description
enabled (Required) The value true enables auditing, the value false (default) disables it.
CLI
NOTE
Before running the maprcli audit cluster command, you must obtain a ticket using maprlogin. To obtain a ticket using maprlogin, run the maprlogin password command and enter the password for the root user.
maprcli audit cluster -enabled true -json
                 {
                 "timestamp":1669010238977,
                 "timeofday":"2022-11-21 05:57:18.977 GMT+0000 AM",
                 "status":"OK",
                 "total":0,
                 "data":[
                 
                 ]
                 }     
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 GET -u <username> https://abc.sj.us:8443/rest/audit/cluster?enabled=true
{"timestamp":1669008214186,"timeofday":"2022-11-21 05:23:34.186 GMT+0000 AM","status":"OK","total":0,"data":[]}