Capturing logs

Last Updated : Sep 23, 2020 |
Prolog information
You can capture the different Avaya Analytics™ services logs to analyze these logs for troubleshooting. You can capture these logs based on a specific time and format.
  1. Log in to the Cluster Control Manager (CCM) console as the customer user.
  2. Switch to being the root user by entering the command su.
  3. To run the Analytics Administration script, use the following command:
    ADDITIONAL INFORMATION:
    ccm release orca analytics
  4. Select Troubleshooting by pressing the corresponding number.
  5. To select the Logs option, enter the corresponding number.
  6. To proceed with capturing the logs, in the Proceed to Log Capture option? field, type y.
    ADDITIONAL INFORMATION:
    Typing n cancels the operation.
    STEP RESULT:
    CCM console displays the following Log Capture Options:
    • All Services (default)
    • REF Input Adaptor
    • Specific Services
  7. To capture the logs from all the Avaya Analytics™ services, enter the number corresponding to the All Services option in the Please enter the value of the logs you want to capture field.
  8. To capture the logs from the REF Input Adapter, enter the number corresponding to the REF Input Adaptor option in the Please enter the value of the logs you want to capture field.
    ADDITIONAL INFORMATION:
    Note:
    Though the All Services option displays all the logs including the REF Input Adapter logs, this option specifically displays only the REF Input Adaptor logs.
  9. To capture the logs for a specific service, enter the number corresponding to the Specific Services option in the Please enter the value of the logs you want to capture field.
  10. In the Please select a service to add to your list option, select the required services and type 99.
    ADDITIONAL INFORMATION:
    In this step, the user creates a list of the required services by entering the corresponding number from the available list.
  11. In the Please enter the value of the time frame you wish to use field, enter the number corresponding to the required time.
    ADDITIONAL INFORMATION:
    The options are:
    • Between 2 specified dates: This option captures all logs between the specified dates.
    • Previous X hours: This option captures the logs for the last specified hours. For example, if you enter 24, then you can capture the logs of the last 24 hours.
  12. In the Please input the date and time which you want the logs to start from field, enter the required details in iso-8601 format timestamp (local time).
    ADDITIONAL INFORMATION:
    For example, 2019–12–24T20:40:03
  13. In the Please input the date and time which you want the logs to end in field, enter the required details in iso-8601 format timestamp (local time).
    ADDITIONAL INFORMATION:
    For example, 2020–01–24T20:40:00
  14. In the Please enter the value of the log format you wish to use field enter the number corresponding to the required format.
    ADDITIONAL INFORMATION:
    The options are:
    • Expanded JSON (default)
    • Flattened JSON (easier to read)
  15. In the Are you sure you wish to proceed to capture logs using the above selection? field type y or n.
    STEP RESULT:
    • If you type y, CCM starts capturing the logs from the selected services within the desired timeframe by using the selected format.
    • If you type n, CCM cancels the log capturing.
Result
  • CCM allocates a sub folder for each set of logs for a service in the /var/avaya/artifactCache directory.
  • When the log capture is complete, the script compresses these folders into a single tar file AnalyticsLogCapture_<todays date>.tgz in the /var/avaya/artifactCache directory.
Next steps
You can import this log bundle to your local machine to analyze the logs using any file transferring method, such as WinSCP.