Solved Perspectives – Log Analytics tile
Hi,
I’m trying to pull some OMS/Log analytics data into a perspective. Normally when you create a tile you have the scope option (ex “This objet only”).
When I chose Azure -> Log Analytics (Grid) I dont have that option.. means my query get data from all objects. How do I target my query/tile to the specific object? Any ideas? 🙂
Br,
Thomas
Best answer
With the Log Analytics tile, the scope should be written into the query.
You can use mustache in a query when added to a perspective, meaning you can create one perspective for all Windows Computers, showing contextual data.
The query above for critical updates contains:
Update | where TimeGenerated > ago(4h) | where OSType != "Linux" and Classification == "Critical Updates" and Computer == "{{displayName}}" and UpdateState != "Installed" | project PublishedDate=substring(PublishedDate, 0, 10), Title
Where {{displayName}} is pulled from the object you are viewing.
Answer this question
To reply or comment, use the 'Comment' link on the relevant answer or question.