从RestAPI生成的自定义日志 [英] Custom Log generated from RestAPI
问题描述
大家好,
我正在分析已在Azure Log Analytics工作区中配置的自定义日志。
I am analyzing a Custom Log already configured in Azure Log Analytics Workspace.
我可以看到源代码对于自定义日志是Rest API,它来自Linux机器,我知道路径。
I could see the source for the Custom Log is Rest API and it is from a Linux machine and I know the path.
工作区有很多虚拟机。
如何我知道,哪个VM有这个配置?
How I get to know, which VM has this configuration made?
我们是否在设置自定义日志时专门指定VM?
Do we specify the VM specifically while setting the Custom Logs?
谢谢
Unnikrishnan PS
Unnikrishnan PS
推荐答案
您好Unnikrishnan PS,您的第一个问题的答案是,你将在名为"计算机"的列的帮助下知道哪个VM具有配置。也就是说,您的查询可能如下所示。
Hi Unnikrishnan PS, The answer to your first question is, you would get to know which VM has the configuration made with the help of column named "Computer" i.e., you may have your query something like shown below.
xxxxxxx_CL | where Computer == "yyyyyyy"
$
xxxxxxx_CL | where Computer == "zzzzzzz"
其中xxxxxxx_CL被视为自定义日志类型名称,yyyyyyy和zzzzzzz被视为两个不同的VM名称。
第二个问题的答案是,否。
希望这有帮助!!
where xxxxxxx_CL is considered as the custom log type name, yyyyyyy and zzzzzzz are considered as two different VM names.
The answer to your second question is, No.
Hope this helps!!
这篇关于从RestAPI生成的自定义日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!