Skip to main content Skip to complementary content

export_audit_trail

Export audit trail data from all servers.

Required User Role: See Required Enterprise Manager permissions.

Syntax

def export_audit_trail(

self,

start_timestamp,

end_timestamp

)

Parameters

Parameters
Parameter Type Description Required
start_timestamp string

start timestamp: (UTC format or Ticks)

Example: 2020-06-30T16:15:00Z (UTC format)

Example: 637410358250082194 (Ticks)

Yes

end_timestamp

string

end timestamp: (UTC format or Ticks)

Example: 2020-06-30T16:15:00Z (UTC format)

Example: 637410358250082194 (Ticks)

Default : latest audit trail record

No

Return values

JSON File (stream)

Errors

All of the general errors as well as the errors listed in the table below.

Error responses
Error Message Description

AEM_INVALID_TIMESTAMP_FORMAT

Timestamp is not a timestamp.

Timestamp format should be 'yyyy'-'MM'-'dd'T'HH':'mm':'ss'Z or Ticks.

Timestamp is not valid.

AEM_EXPORT_INNER_ERR

Failed to export audit trail.

AUDIT-E-INVRANGE. The end time is before the start time.

Time range is not valid.

UNAUTHORIZED_REQUEST Unauthorized Request. request: AemExportAuditTrail User does not have permission to access the audit trail information.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!