I am curious if there is a way to query Azure WAF Logs to reveal what logs are pushed to Event Hub? I have seen many attempts to it, also comments like: "You cannot find source/insights of logs going to EventHub".
I have also asked ChatGTP, but got some very basic expalantions.
Thanks!
Below are the steps to send logs to the EventHub:
Search for the diagnostic setting, enable the diagnostic setting and select the diagnostic setting.
Select the categories of logs to be sent to a destination (potentially your Event Hub) and choose Destination details as "Stream to an Event Hub."
Select the Event Hub details in the Destination section.
Now, we can track the logs of WAF, FW, or StorageAccount. To check whether it tracks a new event, a trigger will be initiated when there are changes in accounts.
Go to Azure Data Explorer select the Database, and run the query using the database name to view logs.