audit data
Enables and disables auditing of file system and table operations.
For a list of these operations, see Auditing of File System Operations and Table Operations.
All administrative users for the cluster can run this command. For more information, see Managing Users and Groups.
Syntax
- CLI
-
- [ -cluster <cluster name> ] [ -enabled <true | false> ] [ -maxsize <GB> ] [ -retention <number of days> ]
- REST
-
Request Type POST Request URL http[s]://<host>:<port>/rest/audit/data?<parameters>
Parameters
Parameter | Description |
---|---|
cluster |
The path and name of a remote cluster. |
enabled |
The value true enables auditing, the value
false disables it. |
maxsize |
The size in GB at which an alarm is sent to the dashboard in the Control
System. The alarm is to notify the cluster administrator that the audit log
is becoming large enough that the administrator might want to take action.
For more information about this parameter, the alarm, and possible actions
to take, see Managing Audit Logs for File System and Table Operations. The audit log continues to grow until the administrator takes action or until the retention period ends. The default value is 32. |
retention |
The period of time in days for which to keep the data in the audit log for the data access. After this period elapses, the content of the file is deleted and new entries are added to the file until the next retention period elapses. |
Examples
- CLI
-
# maprcli audit data -maxsize 200 -json { "timestamp":1669022864689, "timeofday":"2022-11-21 09:27:44.689 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 POST -u <username> https://abc.sj.us:8443/rest/audit/data?maxsize=200 {"timestamp":1669023856431,"timeofday":"2022-11-21 09:44:16.431 GMT+0000 AM","status":"OK","total":0,"data":[]}