Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Elasticsearch maintains the logs index for each microservice and enables you to view these logs through a graphical interface – Kibana. To view the Adeptia logs in Kibana, you need to create the index pattern for each microservice in Kibana. Follow the steps given below to view the application logs using Kibana.

  1. Log in to Kibana.
  2. Search for index
  3. Select Kibana/Index Patterns.
  4. Click Create index pattern.

    The Create index pattern page that opens displays all the microservices for which you want to create the index pattern.
  5. On the Create index pattern page, select a microservice, and then click Next step.
  6. Click Create index pattern.

    The screen below confirms that the index pattern has been created for the selected microservice.
  7. Click the menu  icon at the top-left corner, and then select Analytics > Discover. 
    The next screen displays list of all the logs related to the selected microservice that can be downloaded by following the steps given in this section.

    The next screen displays list of all the logs related to the selected microservice.

    Info
    Repeat steps 1 through 8 to create index patterns for other microservices and view their logs.


    In case you have deployed Adeptia Connect application to multiple namespaces in the Kubernetes cluster, you may want to filter logs related to a microservice based on the namespace. To know how to filter the logs, refer to this section.

Anchor
filter
filter
Filtering the logs based on namespace

You may be using the same Kubernetes cluster having different namespaces, each dedicated for a different environment, for example, Dev, QA, Prod. In this case, you see the logs for the selected microservice from all the namespaces. If you wish to view the logs for a specific namespace, you can follow the steps given below:

  1. Click the menu  icon at the top-left corner.
  2. Go to Analytics > Discover.
  3. On the Discover screen, in the left panel, select the index pattern associated with the microservice whose logs you want to view.
  4. Anchor
    four
    four
    Click.
  5. On the Edit filter screen, do the followings:
    1. In the Field field, select kubernetes.namespace_name.
    2. In the Operator field, select is.
    3. In the Value field, enter the name of the namespace.
    4. Click Save.

Anchor
download
download
Downloading the logs

To download the logs associated with a microservice, follow the steps given below. 

Tip

You can also apply filter to download only the required logs associated with a microservice. For more details about filtering the logs, refer to this section

  1. Click the menu  icon at the top-left corner.
  2. Go to Analytics > Discover.
  3. On the Discover screen, in the left panel, select the index pattern associated with the microservice whose logs you want to download.
  4. Apply filter to filter the logs by following the steps 4 and 5 in the section Filtering the logs based on namespace. This step is optional.
  5. Click Share > CSV Reports.
  6. Click Generate CSV.
  7. Click  (menu) > Stack Management.
  8. on the left panel, in the Alerts and Insights section, click Reporting.
    This lists all the reports that contain logs.
  9. ClickImage Modified icon next to the report that you want to download.


Panel
borderStylesolid
titleYou may be interested in...
What is new
Application architecture
Key terms
Install on Azure Cloud
Usage scenarios