Export Sync Log data

Overview

The Sync Log records provisioning data. Sync Log data is retained for the last 90 days only.

If you want to retain Sync Log data older than 90 days, you must export the data on an ongoing basis and keep it in your own storage systems. This article describes how to export the data. 

Considerations

Export Sync Log data from the Incydr console

Perform the following steps to export Sync Log data in comma-separated value format:

  1. Sign in to the Incydr console.
  2. Select Administration > Integrations > Identity Management
  3. Click Sync Log
  4. Select the data range.
  5. Click Refresh table.
  6. Click Export CSV.
    The data is downloaded in a CSV file.
  7. Repeat this process on a regularly-scheduled basis to keep a complete set of data over time.

Export Sync Log data with the Incydr API

Incydr Developer Portal
See the Developer Portal for more API documentation and resources. The portal provides:

Use the Developer Portal for your API needs as much as possible. APIs in the portal are the preferred way to integrate with Incydr. If you use APIs that do not appear on the Developer Portal, contact our Technical Support Engineers for guidance on the best way to integrate with Incydr.

CSV format

Run the following command to export Sync Log data in CSV format using the api/v3/DirectorySyncLog API:

curl -X GET 'https://<RequestURL>/api/v3/DirectorySyncLog/csv?eventOccurredAfter=<yyyy-MM-dd'T'HH:mm:ss.SSSZ>&eventOccurredBefore=<yyyy-MM-dd'T'HH:mm:ss.SSSZ>' \
-H "authorization: Bearer <AuthToken>"

In the preceding example:

For example: 

curl -X GET 'https://console.us.code42.com/api/v3/DirectorySyncLog/csv?eventOccurredAfter=2019-06-01'T'12:00:00.0600Z&eventOccurredBefore=2021-06-01'T'12:00:00.0600Z' -H "authorization: Bearer eyJhb...p4XA"

JSON format

To export data in JSON format, run the command without /csv . In addition, you can use optional parameters if desired:

  • sortColumn: The column to sort on. Valid values are action, field, logEventTimeStamp, newValue, oldValue, providerName, and username.
  • sortDirection: The direction that the data is sorted in. Valid values are asc and desc.
  • page[number]: The number of pages to request.
  • page[size]: Number of events to return per page.

For example:

curl -X GET 'https://console.us.code42.com/api/v3/DirectorySyncLog?eventOccurredAfter=2019-06-01'T'12:00:00.0600Z&eventOccurredBefore=2021-06-01'T'12:00:00.0600Z&sortColumn=action&sortDirection=asc&page[number]=1&page[size]=100' -H "authorization: Bearer eyJhb...p4XA"

Related topics

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.