API Programming Guide › API Troubleshooting
API Troubleshooting
If your API calls are not working as you expect, take the following steps to troubleshoot, testing after each to see if the appropriate results appear.
- Verify the URL call syntax:
- Compare your syntax to the example in the guide, verifying that you have used your own correct CA Enterprise Log Manager server name or IP address.
- If you have added query or report specifications, check that the main part of the call (before the specification parameters) ends with the question mark (?) character, before any parameters are added. For example:
?param1=val1¶m2=val2
- If the URL syntax is correct, and no data appears, verify the filters. If you are using getQueryViewer or getReport Viewer, review the filters and result condition settings in the interface. If you are using runQuery, review the parameter specifications you added to the URL:
- Check Filters - Verify that the base filters show the data you want. For example, the event source name you are filtering is entered correctly.
- Syntax - Verify that the filter syntax is correct, especially if you have constructed filters using specification parameters.
- Time Filters - Verify that your time range is broad enough, and that the timezone of your operating system is same as the timezone of CA Enterprise Log Manager.
- Access Filter XML filter - Verify that you log out of a session successfully.
- LogDepot log - Verify that events are being received, and appear in the logDepot_sponsor.log file.
- Review the logging settings for the API component. Verify that the following files and settings are in place:
- Property File : epSIM_logging.properties
- Default Level is WARN
- Logger : logmanager.ui.calmapi
- Log File : calm.log