Skip to main content

audit

Creates, updates, deletes, gets or lists an audit resource.

Overview

Nameaudit
TypeResource
Idsumologic.policies.audit

Fields

The following fields are returned by SELECT queries:

The Audit policy.

NameDatatypeDescription
enabledbooleanWhether the Audit policy is enabled.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getAuditPolicyselectregionGet the Audit policy. This policy specifies whether audit records for your account are enabled. You can access details about reported account events in the Sumo Logic Audit Index. Learn More
setAuditPolicyexecregion, enabledSet the Audit policy. This policy specifies whether audit records for your account are enabled. You can access details about reported account events in the Sumo Logic Audit Index. Learn More

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringSumoLogic region (enum: [us2, au, ca, de, eu, fed, in, jp], default: us2)

SELECT examples

Get the Audit policy. This policy specifies whether audit records for your account are enabled. You can access details about reported account events in the Sumo Logic Audit Index. Learn More

SELECT
enabled
FROM sumologic.policies.audit
WHERE region = '{{ region }}' -- required
;

Lifecycle Methods

Set the Audit policy. This policy specifies whether audit records for your account are enabled. You can access details about reported account events in the Sumo Logic Audit Index. Learn More

EXEC sumologic.policies.audit.setAuditPolicy 
@region='{{ region }}' --required
@@json=
'{
"enabled": {{ enabled }}
}'
;