Spectrum getEvents Rest API Max Limit Reached?
search cancel

Spectrum getEvents Rest API Max Limit Reached?

book

Article ID: 369452

calendar_today

Updated On:

Products

DX NetOps

Issue/Introduction


When running the API to get the last week of events from a specific device, I get a maximum of total-events of 10,007. Through Spectrum OC, the device's last 7 days has more than 50k events. Is there a limitation for the total-events count?

API Response:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<get-event-response-list xmlns="http://www.ca.com/spectrum/restful/schema/response" total-events="10007" throttle="100">

Cause


The 10,007 limit is imposed by the ArchMgr(s) limiting the maximum returned events for a single call. This was set to prevent performance issues
   when the ArchMgr is being queried by one or more methods (users browsing events on models, SRM pulling events for reporting, REST API queries).

Resolution


The limit can be increased to a maximum of 50000 via a configuration update on each ArchMgr.

Steps to update increase record search limit:

1. stop archive manger.
2. goto $SPECROOT\SS\DDM\.configrc
3. add record_search_limit=50000 and save it.
4. start archive manager.


Note: Please be mindful of potential performance impacts if raising the limit. There might be situations whereby multiple users
             as well as SRM pulling events at the same time. Please monitor over time for any adverse behavior and if found
             lower the limit accordingly.

Additional Information