Viewing application logs in an Elasticsearch server

Last Updated : Dec 15, 2022 |
Prolog information
Use this procedure to upload logs to another Elasticsearch server for off-site viewing.
The es_upload.sh script provides a template to convert log files into a format, which can be inserted into Elasticsearch. The script uploads the files to the server. You must modify the script based on the URL, credentials, and other security considerations for the Elasticsearch server.
The script accepts the URL to the Elasticsearch server and the index used in the Elasticsearch server. The script leaves behind the converted files for debugging purposes.
  1. Collect logs using ccm report without the --target option.
  2. Create an es_upload.sh script.
    ADDITIONAL INFORMATION:
    See es_upload.sh script example for an example of the script.
  3. Run chmod 755 es_upload.sh to make the script executable.
  4. Navigate to the applicationLogs/ directory.
  5. Run the script.
    For example: es_upload.sh flex188-54.dr.avaya.com/elasticsearch example_company
    In this example, an example_company-<date> index is created in Elasticsearch, containing the data. The date is in the format yyyy-mm-dd. For example, the name of the index might be example_company-2020-08-17.
  6. To view index logs for all dates in Elasticsearch, create an index without a date.
    For example: example_company-*