<p>I wish to extend my web app's functionality with the possibility to show the results of a custom Azure logging query like this:</p>
<pre><code>let apiIds = KubePodInventory
    | where ServiceName == &quot;my-service-name&quot;
    | distinct ContainerID;
ContainerLog
| where ContainerID in (apiIds)
    and LogEntry contains (&quot;my custom query&quot;)
| order by TimeGenerated desc 
| project TimeGenerated, LogEntry
</code></pre>
<p>A great addition would be to have live logging also.</p>
<p>However, I have no idea where to get started. Is there somebody with (good/bad) experience with this idea?</p>

HansElsen
<p>(as discussed in the comments)</p>
<p>You can use the Azure Monitor Query SDK in your app <a href="https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/monitor/Azure.Monitor.Query" rel="nofollow noreferrer">https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/monitor/Azure.Monitor.Query</a></p>
