将Azure存储日志解析为Azure Monitor日志&指标 [英] Parse Azure Storage Logs into Azure Monitor Logs & Metrics

查看:80
本文介绍了将Azure存储日志解析为Azure Monitor日志&指标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个应用程序,该应用程序以预定义的格式在Azure存储中存储错误日志信息.我们要做的是将数据解析到Azure Monitor日志和/或指标存储中,以便可以对它们进行解释和警告.最好的是什么 做到这一点的方法?例如,使用Azure函数和适当的API读取源数据,解析并将其注入到Azure Monitor存储中是否合适?从我看到的使用计划的Azure函数可以看出,我们也将拥有 对源数据的处理进行编码,以便仅处理新记录.任何方向都非常感谢.

We have an application that stores error log information in Azure Storage in a predefined format. What we would like to do is parse the data into the Azure Monitor log and/or metric store so that it can be interpreted and alerted on. What would be the best way to do this? For example would it be appropriate to use an Azure Function and appropriate APIs to read the source data, parse, and inject it into the Azure Monitor stores? From what I can see using a scheduled Azure function would mean we would also have to code the handling of the source data so that only new records are processed. Any direction greatly appreciated.

谢谢

戴夫.

推荐答案

戴夫,您的应用程序是否位于Azure VM上?或者您是将日志从非Azure应用程序转发到Azure存储中.如果是前者,那么我建议按照以下详细步骤进行操作 这里.基本上,您需要将错误日志转发到Log Analytics工作区中,您可以在其中使用Log Analytics查询语言分析日志.您还可以使用Log Analytics根据您的日志数据,特定的错误代码或 特定日志事件/错误的发生频率.

Hi Dave, does your application sit on an Azure VM? or are you forwarding logs from a non-azure application into Azure Storage.  If the former, then I recommend following the steps detailed here. Basically you will need to forward your error logs into a Log Analytics workspace where you can analyze the logs using log analytics query language. You can also use Log Analytics to create alerts based on yur log data, specific error codes or the frequency of occurrence of a specific log event/error.


这篇关于将Azure存储日志解析为Azure Monitor日志&指标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆