@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:
- 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.
- 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.