Customers often need to extract events and logs from the Avi Controller for troubleshooting, monitoring, or integration with external systems. Avi provides a REST API that allows retrieval of detailed events and logs with flexible filters.
Base endpoint:
Full documentation on available filters and parameters can be accessed at the same endpoint.
type=2 → Fetches event logs.
Explanation of filters in sample:
duration=604800 → Last 7 days.
filter=co(event_pages,EVENT_PAGE_ALL) → Includes all event pages.
filter=ne(internal,EVENT_INTERNAL) → Excludes internal-only events.
orderby=-report_timestamp → Sorts results with latest first.
page_size=30&page=1 → Fetch first page with 30 results.
include_name=true → Adds object names for readability.
Example:
Explanation of Parameters:
type=1 → Retrieves application logs.
virtualservice=<vs-uuid> → Filters logs for the specific Virtual Service (UUID shown).
duration= → Time window for logs in seconds (example = ~7 days).604800
Note:
Ensure API calls are made with a valid session cookie or API token.
Pagination (page, page_size) is recommended for large datasets.
The Other way is to use your browser’s Developer Tools to inspect the API call made by the GUI. You can then copy that request and paste it directly into the browser’s address bar to view the raw response, which will include the full timestamp.
Refer this doc for more information: