- Preface
- Overview
- Troubleshooting Matrix
- Troubleshooting an Unsuccessful Installation or Update
- Troubleshooting the Configuration
- Troubleshooting Cisco APIC-EM Multi-Host
- Troubleshooting Services Using System Health
- Troubleshooting Services Using the Developer Console
- Troubleshooting Using the Logs
- Troubleshooting Passwords
- Troubleshooting Commands
- Troubleshooting Log Files
- Contacting the Cisco Technical Assistance Center
- Index
Troubleshooting Using the Logs
The following logs may be used to troubleshoot Cisco APIC-EM:
Viewing Audit Logs
Cisco APIC-EM audit logs are used primarily to keep track of policies for the EasyQoS and iWAN applications.
You can view audit logs using the Audit Logs window in the Cisco APIC-EM GUI. The Cisco APIC-EM also supports the ability to export the audit logs to a local system.
You must have successfully deployed the Cisco APIC-EM and it must be operational.
You must have either administrator (ROLE_ADMIN) or policy administrator (ROLE_POLICY_ADMIN) permissions to perform this procedure.
For information about the user permissions required to perform tasks using the Cisco APIC-EM, see the chapter, "Managing Users and Roles," in the Cisco Application Policy Infrastructure Controller Enterprise Module Configuration Guide.
What to Do Next
Proceed to review any additional log files using the controller's GUI, or download individual audit logs as .csv files for further review or for archiving purposes.
Changing the Logging Level
To assist in troubleshooting any service issues, you can change the logging level for Cisco APIC-EM services by using the Changing the Logging Level window in the Cisco APIC-EM GUI.
A logging level determines the amount of data that is captured to the controller's log files. Each logging level is cumulative, that is, each level contains all the data generated by the specified level and any higher levels. For example, setting the logging level to Info also captures Warn and Error logs.
The default logging level for services in the controller is informational (Info). You can change the logging level from informational (Info) to a different logging level (Debug or Trace) to capture more information.
Caution | Any logs collected at the Debug level or higher should be handled with restricted access. |
Note | The log files are created and stored in a centralized location on your controller. From this location, the controller can query and display them in the GUI The total compressed size of the log files is 2GB. If log files created are in excess of 2GB, then the pre-existing log files are overwritten with the newer log files. |
You must have successfully deployed the Cisco APIC-EM and it must be operational.
You must have administrator (ROLE_ADMIN) permissions to perform this procedure.
For information about the user permissions required to perform tasks using the Cisco APIC-EM, see the chapter, Managing Users and Roles in the Cisco Application Policy Infrastructure Controller Enterprise Module Configuration Guide.
Downloading the Service Logs
For troubleshooting purposes, you can search and download service logs using the Search Logs window in the Cisco APIC-EM GUI. You can first narrow your search down to certain specific parameters with the GUI, and then download only these logs locally for further review or to send to support for assistance.
The following types of log files are reviewed during a search and download:
You must have successfully deployed the Cisco APIC-EM and it must be operational.
You must have either administrator (ROLE_ADMIN) or policy administrator (ROLE_POLICY_ADMIN) permissions to perform this procedure.
For information about the user permissions required to perform tasks using the Cisco APIC-EM, see the chapter, "Managing Users and Roles," in the Cisco Application Policy Infrastructure Controller Enterprise Module Configuration Guide.
Step 1 | In the Home window, click either admin or the Settings icon (gear) at the top right corner of the screen. | ||
Step 2 | Click the
Logs link from the drop-down menu.
The Search Logs window appears. In the Search Logs window, you can download the controller service logs by performing the following tasks: | ||
Step 3 | (Optional) Enter a string value in the
Search Logs field at the top of the
Search Logs window and click the
Download button.
The log download results are displayed at the bottom of the Search Logs window. | ||
Step 4 | (Optional) In the
Search Log window, choose a service from the
Services drop-down menu for the download and
click the plus sign (+).
You can add several different services to your download, by choosing from the drop-down menu and then clicking the plus sign(+).
| ||
Step 5 | (Optional) In the
Search Log window, choose a Java class from the
Class drop-down menu for the download and
click the plus sign (+).
You can add several different Java classes to your download, by choosing from the drop-down menu and then clicking the plus sign(+). | ||
Step 6 | (Optional) In the
Search Logs
window, choose a logging level from the
Log Level drop-down menu.
The following logging levels are supported: | ||
Step 7 | (Optional) Adjust the logging level by choosing an appropriate
condition in the second
Log Level drop-down menu.
The following logging level adjustments are supported:
| ||
Step 8 | (Optional) In the
Search Logs window, enter a start time for the
logs in the
Start Time field for the download or use the
calendar icon.
If entering a date and time directly, use the following formats: | ||
Step 9 | (Optional) In the
Search Logs window, enter an end time for the
logs in the
End Time field for the download or use the
calendar icon.
If entering a date and time directly, use the following formats: | ||
Step 10 | Review your log search settings and then click the Download button. The log download results are displayed at the bottom right of the Search Log window as a page icon displaying the number of logs using the following format: Search Results (5).log. | ||
Step 11 | Click on the icon for the log download results.
A new window opens that displays the log download data. This data is organized using the following parameters: |
What to Do Next
Proceed with any additional service log searches and downloads.