日志分析-日志查询不返回记录 [英] Log Analytics- log query doesn't return records

查看:65
本文介绍了日志分析-日志查询不返回记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用此链接将作业日志和流从自动化帐户转发到Log Analytics https://docs.microsoft.com/zh-CN/azure/automation/automation-manage-send-joblogs-log-analytics 

I used this link to forward Job logs and streams from Automation accounts to Log Analytics https://docs.microsoft.com/en-us/azure/automation/automation-manage-send-joblogs-log-analytics  and also enabled diagnostic settings for Azure Analysis Service. Log Analytics now displays these logs and metrics when I query them using Log Analytics query window. But the issue I see now is AzureDiagnostics are upto date and it returns results records when I query in Log Analytics where as AzureMetrics are not upto date they are a day old. Its seems AzureMetrics log shipping from Azure Analysis service to Log Analytics is slow. Why is this? I tried researching this online but couldn't able to find any answers. Any help is appreciated. Thanks!! Please let me know if further details are needed.


sree

推荐答案

我不确定您的意思是它们不是最新的.默认情况下,如果仅使用表运行查询:

I am not sure what you mean they are not up to date. By default if you run a query with just the table:

AzureMetrics

您将获得TimeGenerated字段未排序的结果.因此,您获得的结果将是随机的.配置日志"视图以始终显示按TimeGenerated排序的结果,或者在查询中添加排序.请记住,Azure指标将到来 以及它们生成的时间间隔.因此,对于特定服务,您必须查看生成了哪些间隔指标.

You will get the results not ordered by TimeGenerated field. So the results you get will be random at time. Either configure the Logs view to show always results sorted by TimeGenerated or in your query add sorting. Keep in mind that Azure Metrics will come of the interval they are generated as well. So for the specific service you have to look at what interval metrics are generated.

如果此回复对您有帮助,则将其标记为答案.

mark this reply as answer if it has helped you.


这篇关于日志分析-日志查询不返回记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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