在INFO级别上搜索Azure功能日志 [英] Search on INFO level Azure Function Logs

查看:68
本文介绍了在INFO级别上搜索Azure功能日志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从这里获取提示-

https://stackoverflow.com/questions/63125857/azure-function-container-audit/63131294#63131294

我正在记录哪个用户何时访问了哪个文件. 我看到它现在工作正常.

I am logging which user accessed which file and at what time. I see that it is now working fine.

现在,我想搜索该日志消息以标识给定的文件名被哪个用户访问? 这可行吗?有没有我可以使用的类似Splunk的机制. 我尝试使用Application Insights,但它不搜索INFO消息,或者可能是我做的不正确.

Now I want to search that log message to identify a given filename was accessed by which user(s) ? Is this feasible? Is there any Splunk like mechanism I could use. I tried using Application Insights but it doesn't search on INFO message or may be I am not doing it correctly.

请指导.

推荐答案

在App Insights中找到了它.

found it ..In App Insights

union traces
| union exceptions
| where timestamp > ago(30d)
| where message like "<filename>"
| order by timestamp desc

这篇关于在INFO级别上搜索Azure功能日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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