Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure Firewall Logs not appearing in Log Analytics #1745

Closed
Tracked by #1720
martinpeck opened this issue Apr 27, 2022 · 8 comments
Closed
Tracked by #1720

Azure Firewall Logs not appearing in Log Analytics #1745

martinpeck opened this issue Apr 27, 2022 · 8 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@martinpeck
Copy link
Member

No description provided.

@martinpeck martinpeck moved this to Triage in AzureTRE - Crew Rock Apr 27, 2022
@martinpeck martinpeck moved this from Triage to Next in AzureTRE - Crew Rock Apr 27, 2022
@martinpeck martinpeck added the bug Something isn't working label Apr 27, 2022
@marrobi marrobi added this to the Release 0.3 milestone Apr 27, 2022
@martinpeck
Copy link
Member Author

@marrobi are you able to give me an example of a log you would expect to see, and a query that would return that log?

@marrobi
Copy link
Member

marrobi commented May 5, 2022

Under log analytics, check for AzureFirewallApplicationRule or AzureFirewallNetworkRule as a category. Neither exist. They used to.

There are also default Azure Firewall queries presented when view logs under the firewall resource in the portal. They fail.

@martinpeck
Copy link
Member Author

About 3 months ago we switched logging for the firewall to be "Dedicated".

AFAIK, this means that logs no longer drop into the AzureDiagnostics table but, instead, drop into resource specific tables.

https://docs.microsoft.com/en-us/azure/azure-monitor/essentials/resource-logs#resource-specific

I wonder if Azure Firewall properly supports resource-specific log tables. We might want remove this switch for now.

https://github.com/microsoft/AzureTRE/blob/main/templates/shared_services/firewall/terraform/firewall.tf#L37

@martinpeck
Copy link
Member Author

I can't find anything that confirms Azure Firewall does, or doesn't, support resource-specific tables. However, in the docs it suggests that when setting up logging for a resource in the portal it will either hide this choice from the user, or offer both. In the case of Azure Firewall, it doesn't offer any choice.

Is it possible that we've had no logs for 3 months (i.e. since we made this change)?

@martinpeck
Copy link
Member Author

FYI a total of 4 resources in our deployment use this Dedicated setting...

  • keyvault
  • service bus
  • app gateway
  • firewall

@martinpeck
Copy link
Member Author

This is the reason we set it to Dedicated:

https://github.com/microsoft/AzureTRE/pull/1313/files#r807969959

@martinpeck martinpeck self-assigned this May 5, 2022
@martinpeck martinpeck moved this from Next to In Progress in AzureTRE - Crew Rock May 5, 2022
@marrobi
Copy link
Member

marrobi commented May 5, 2022

Could well be this. It has been a while as we only rely on the firewall logs when debugging new services.

@martinpeck martinpeck moved this from In Progress to PR in AzureTRE - Crew Rock May 19, 2022
@martinpeck
Copy link
Member Author

PR merged. Closing

Repository owner moved this from PR to Done in AzureTRE - Crew Rock May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Status: Done
Development

No branches or pull requests

2 participants