Cloud Administration User Event Log API
a month ago

Cloud Administration User Event Log API

The Cloud Administration User Event Log API is a REST-based web services interface that allows user events to be retrieved from Cloud Access Service (CAS). Customers can use this REST API to import the user event logs into their security information and event management (SIEM) solution, such as NetWitness or write your own custom Administration Event Log API client software, or use RSA's Java rsa-securidaccess-rest-client-sdk or Python admin_api_cli command line utility to download events to a file. The utilities are part of the RSA SecurID Access Administration REST API which can be downloaded from the RSA ID Plus Downloads page (RSA Community login is required). Event logs are retrieved in chronological order in batches, and do not contain duplicates. Events are retained for 40 days in CAS and then purged, so events from the last 40 days are available for download using this API.

The API client, uses a JSON Web Token (JWT) with HTTP Bearer Authentication when calling the User Event Log API. The Super Admin creates a key in the Cloud Administration Console, then the key plus any other information required is used to generate the JWT, as described in Authentication for the Cloud Administration APIs .

For information on audit log messages that describe user activities, see User Event Monitor Messages in the Cloud Administration Console. For information on downloading audit log messages that describe Helpdesk Administrator and Super Administrator activities, see Cloud Administration Event Log API .

For information about managing access to this API, see Accessing the Cloud Administration APIs

Authentication

Clients calling this API must authenticate themselves by including a JSON Web Token in a request. For instructions on using this token, see Authentication for the Cloud Administration APIs.

Software Developer Kit

You can download the API Software Developer Kit (SDK) as the RSA SecurID Access Administration REST API. It is available from the RSA ID Plus Downloads page (RSA Community login is required).

Request Requirements

Use the following information in requests to retrieve user events from CAS and deliver them to your API client.

MethodRequest URLResponse BodyResponse Body TypeResponse Codes
GET /AdminInterface/restapi/v1/usereventlog/exportlogs Metadata, plus array of User Event logsapplication/json 200, 400, 403, 429

Request Parameters

The User Event Log REST API allows the following parameters.

Note:  The request query parameter values may contain reserve characters that need to be URL encoded. Otherwise, the server may send a 400 Bad Request error. For example, the ISO 8601 Date and Time format may contain the + character if the specific time zone has an offset from UTC, such as+05:30. The + character needs to be encoded as %2B.

NameDescriptionTypeDefault ValueExample
startTimeAfter

Timestamp limit. User events logged after this timestamp are exported.

The duration must not exceed 7 days.

ISO 8601 Date TimeCurrent time - 1 day2018-05-01T11:22:12.828-05:30
endTimeOnOrBefore

Timestamp limit. User events logged before or on this timestamp are exported.

The duration must not exceed 7 days.

ISO 8601 Date TimeCurrent time2018-05-09T21:06:33.125-05:30
pageNumberThe pageNumber parameter will be validated when it exceeds the application's maximum limit of 10,737,417. If this limit is crossed, the system returns an HTTP 400 response.Integer05
pageSizeNumber of records to return in a page (or batch). Value between 1-200. Any value specified outside of this range is treated as 200.Integer20050

Example Request with No Parameters

The following example returns log data for the previous 24 hours.

GET /AdminInterface/restapi/v1/usereventlog/exportlogs

Accept: application/json

Authorization: Bearer <bearer token>

Example Request with Start Time Specified

The following example shows an API request with a specified start time.

GET /AdminInterface/restapi/v1/usereventlog/exportlogs?startTimeAfter=2018-05-01T11:22:12.828-05:30

Accept: application/json

Authorization: Bearer <bearer token>

Response Body

The following table shows the name, description, and type used for API response metadata.

NameDescriptionType
totalPagesTotal number of pages (or batches) of results.Integer
totalElements Total number of results.Integer
pageSizeNumber of results returned in a page (or batch).Integer
currentPage

Page number associated with the results returned in the response. Pages are numbered from 0 to (totalPages - 1).

Integer
userEventLogExportEntriesList of exported event log entries. Array

The following sample response metadata displays 684 results with a page size of 100.

{

"totalPages":7,

"totalElements":684,

"pageSize":100,

"currentPage":0,

"userEventLogExportEntries":

 

userEventLogExportEntries

The following table shows the elements of entries in the userEventLogExportEntries array.

NameDescriptionTypeRequired
eventIdID of user event log.LongYes
eventLogDateDate and time of user event log, in UTC timezone. Example: 2018-05-13T16:29:59.000 UTCISO 8601 Date TimeYes
eventTypeAlways set to user. StringYes
eventLevelEvent log level, notice, or error.StringYes
eventCategoryAuthentication or Device Management.StringYes
serverIPAddressIP address of the server where the user event occurs.IP Address in StringOptional
tenantIdIdentifies the customer's deployment.UUID in StringYes
customerNamesubdomain assigned to the customer.StringOptional
userIdUser identifier.StringOptional
sourceIPAddressIP Address of the user who generated user events.IP AddressOptional
eventCodeUser event code.StringYes
eventDescriptionUser event description.StringYes
applicationAuthenticated application.StringYes
methodAuthentication method.StringOptional
deviceNameAuthentication device name.StringOptional
deviceIdAuthentication device identifier.StringOptional
policyIdAccess policy identifier.StringOptional
policyNameAccess policy name.StringOptional
authenticationDetailsAuthentication details.StringOptional
assuranceLevelAssurance level used in the access policy.StringOptional
verboseFlagIndicates if verbose details are includedBooleanYes
userActivityIdIdentifies the user's actions within My Page session. StringOptional
transactionIdIdentifies the user's MFA transactions.StringOptional