Review logs in Log Analytics workspace
On this page
In this article, you will learn how to review logs from all CluedIn services in your Log Analytics workspace.
Retrieve logs
-
In the Azure portal, go to your Log Analytics workspace.
-
On the left navigation pane of the Log Analytics workspace, select Logs. Then, close the Queries hub pop-up window. This will open the query editor where you can run queries to retrieve logs.
-
Run the following query in the Log Analytics workspace. Replace
{name of service}
with the appropriate service name from the mapping reference table.KubePodInventory | where ServiceName == {name of service} | distinct ContainerID | join( ContainerLog | project ContainerID, LogEntry, TimeGenerated ) on ContainerID | order by TimeGenerated asc | project TimeGenerated, LogEntry
This query retrieves logs for the specified service, orders them chronologically, and displays the log entries along with their timestamps.
Example of retrieving logs for cluedin-server pod
If you want to retrieve logs for the cluedin-server pod, do the following:
-
Identify the corresponding service name from the mapping reference table:
cluedin-clean-auth
. -
Run the following query in the Log Analytics workspace:
KubePodInventory | where ServiceName == "cluedin-clean-auth" | distinct ContainerID | join( ContainerLog | project ContainerID, LogEntry, TimeGenerated ) on ContainerID | order by TimeGenerated asc | project TimeGenerated, LogEntry
This query will return logs related to the cluedin-server pod.
Service name to pod name mapping
Service name | Pod name |
---|---|
cluedin-haproxy-ingress | cluedin-haproxy-ingress |
cluedin-libpostal | cluedin-libpostal |
cluedin-clean-auth | cluedin-server |
cluedin-server-processing | cluedin-server-processing |
cluedin-datasource | cluedin-datasource |
cluedin-datasource-processing | cluedin-datasource-processing |
cluedin-datasource-submitter | cluedin-datasource-submitter |
cluedin-gql | cluedin-gql |
cluedin-elasticsearch | cluedin-elasticsearch |
cluedin-rabbitmq | cluedin-rabbitmq |
cluedin-controller | cluedin-controller |
cluedin-neo4j | cluedin-neo4j |
cluedin-sqlserver | cluedin-sqlserver |
cluedin-openrefine | cluedin-openrefine |