在 INFO 级别搜索 Azure 函数日志
Search on INFO level Azure Function Logs
从这里得到提示 -
我正在记录哪个用户在什么时间访问了哪个文件。
我看到它现在工作正常。
现在我想搜索该日志消息以确定哪个用户访问了给定的文件名?
这可行吗?有没有我可以使用的类似 Splunk 的机制。
我尝试使用 Application Insights,但它没有搜索 INFO 消息,或者可能是我没有正确搜索。
请指导。
在 App Insights 中找到了它
union traces
| union exceptions
| where timestamp > ago(30d)
| where message like "<filename>"
| order by timestamp desc
从这里得到提示 -
我正在记录哪个用户在什么时间访问了哪个文件。 我看到它现在工作正常。
现在我想搜索该日志消息以确定哪个用户访问了给定的文件名? 这可行吗?有没有我可以使用的类似 Splunk 的机制。 我尝试使用 Application Insights,但它没有搜索 INFO 消息,或者可能是我没有正确搜索。
请指导。
在 App Insights 中找到了它
union traces
| union exceptions
| where timestamp > ago(30d)
| where message like "<filename>"
| order by timestamp desc