Fetch Logs Via API
The Cirrus Log API is a REST-based API that retrieves event logs that can be imported into an enterprise log management system, such as a SIEM tool. Event logs are stored for the last 90 days. The Log API will be enabled for you if it is included in your subscription package.
Log API was designed to be a generic API targeted to teams who have the development capability to integrate with their SIEM provider. Cirrus does not provide any SIEM-specific documentation.
The Log API reference provides detailed information on the API endpoints.
You may keep querying until the nextToken value in the response is the same as what you supplied in the request. At that point, we recommend a 5-minute wait before the next API call.
If you would like a guided implementation with one of our customer implementation leads, contact us at support@cirrusidentity.com.
Query Parameters
logType: filter the response to show "authentication" (SAML) or "CAS" Bridge log data.logSubtype: "request" and "success" relate to SAML Bridge authentications. "login", "samlValidate", "serviceValidate", and "validate" refer to functions used for authentication in CAS.tenant: refers to different instances of a Cirrus product. For example, each Proxy is a single tenant.service: filter by a specific Cirrus product.
Response Codes
- 403: Not authorized to access an organization
- 422: Validation error, likely a malformed request
- 500: Server-side error on a Cirrus product
Other Definitions
timeStampISO: Time of the eventsp: Service provider (application) generating the requestuser: The user who is authenticatingattributes: The attributes and values in the assertion
The initial starting point for requesting API data will be the nextToken you receive after making your first API GET request. You cannot pick a point in the past before you started using the API to poll log data.
Create An API Credential
After you create the credential, it may take up to 15 minutes before it can be used.
Sign in to the Cirrus Console.
Once signed in, select your organization from the list under “My Organizations”.
Select the “Cirrus API Access” menu item.
Depending on your subscription, you may see more than one API listed. Select the "Log API" option.
Choose “New Credential”.
The description you enter will appear in the UI so that you can identify the credential.
Click "Create" and securely store your credential.
After creation, you will not be able to access the secret. Save it somewhere safe!