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.
- Log in to Kibana.
- Search for index
- Select Kibana/Index Patterns.
- Click Create index pattern.
The Create index pattern page that opens displays all the microservices for which you want to create the index pattern. - On the Create index pattern page, select a microservice, and then click Next step.
- Click Create index pattern.
The screen below confirms that the index pattern has been created for the selected microservice. 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 | ||||
---|---|---|---|---|
|
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:
- Click the menu icon at the top-left corner.
- Go to Analytics > Discover.
- On the Discover screen, in the left panel, select the index pattern associated with the microservice whose logs you want to view.
Click.Anchor four four - On the Edit filter screen, do the followings:
- In the Field field, select kubernetes.namespace_name.
- In the Operator field, select is.
- In the Value field, enter the name of the namespace.
- Click Save.
Anchor | ||||
---|---|---|---|---|
|
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. |
- Click the menu icon at the top-left corner.
- Go to Analytics > Discover.
- On the Discover screen, in the left panel, select the index pattern associated with the microservice whose logs you want to download.
- 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.
- Click Share > CSV Reports.
- Click Generate CSV.
- Click (menu) > Stack Management.
- on the left panel, in the Alerts and Insights section, click Reporting.
This lists all the reports that contain logs. - ClickImage Modified icon next to the report that you want to download.
Panel | ||||
---|---|---|---|---|
| ||||
What is new |