Auvik icon

Auvik

Interact with Auvik API

ASM → Get Security Logs

AI-generated

Summary

Retrieves security logs for specified Auvik clients using date presets or a custom time range.

Inputs

  • Client ID (required) — The unique identifier for the Auvik client whose security logs are to be fetched.
  • Query Date Preset — A predefined time range filter (e.g., Last 30 Days, Today, Last 1 Hour). Defaults to LAST_30_DAYS.
  • Query Date — A custom start time in ISO 8601 format (YYYY-MM-DDTHH:mm:ss.SSSZ) required when Query Date Preset is set to CUSTOM.
  • Include — A filter to include specific log types in the results. Can include 'users' and/or 'applications'.

Output shape

a list of items

Returns paginated results. The API response structure includes fields for logs, with optional totals included when the 'Include' parameter is set.

Examples

Example 1: Fetch the last 30 days of security logs for a specific client.

Client ID: , Query Date Preset: LAST_30_DAYS

Example 2: Retrieve security logs from the last 24 hours, including both user and application events.

Client ID: , Query Date Preset: LAST_24_HOURS, Include: users, applications

Example 3: Get security logs from a custom date range starting on January 1st, 2024.

Client ID: , Query Date Preset: CUSTOM, Query Date: 2024-01-01T00:00:00.000Z

Links

Discussion