Is there some way to create the metrics based on the logs from the azure console ? I have a requirement to filter the logs based on error code and create a metrics for that ?

Srinivas Kabadi 0 Reputation points
2023-06-21T13:45:28.4333333+00:00

I have a requirement from from the container logs i need to filter out the logs with error and create a metrics from the azure console. Is there some way to achieve this from the console , as i see there seems no option to create the metrics from logs on the azure console

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,397 questions
Azure AI Metrics Advisor
Azure AI Metrics Advisor
An Azure artificial intelligence analytics service that proactively monitors metrics and diagnoses issues.
82 questions
{count} votes

1 answer

Sort by: Most helpful
  1. AnuragSingh-MSFT 21,466 Reputation points
    2023-06-23T11:10:50.7466667+00:00

    @Srinivas Kabadi , thank you for the question.

    Based on my understanding the logs are already available in Log Analytics workspace for which you are trying to create metrics. Following are some information that should help you in this regard:

    1. If you are trying to get the metric extracted from these logs to "Metrics" section of the resource under "Monitoring", then it is not possible.
    2. However, you could get similar results using Azure Monitor Workbook, where you can create charts based on the output of log queries. For details on such sample charts and queries, see Azure Monitor Workbooks: Chart visualization.

    Hope this helps.

    If the answer did not help, please add more context/follow-up question for it, and we will help you out. Else, if the answer helped, please click Accept answer so that it can help others in the community looking for help on similar topics.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.