audit cluster

Enables and disables auditing of operations that are related to the administration of a MapR 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?<parameters> 

Parameters

Parameter Description
enabled The value true enables auditing, the value false disables it.
CLI
NOTE Before you can run 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 Based on your SSL setup, use the appropriate SSL-related command line option in the curl command given below.
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":[]}