AZURE HEROES
  • Home-Updates
  • Blog
    • Azure Blog
    • Azure Heroes Events >
      • Azure Heroes Sessions #1
      • Azure Heroes Sessions #2
      • Azure Heroes Sessions #3
      • Azure Heroes Sessions #4
      • Azure Heroes Sessions #5
      • Azure Heroes Sessions #6
      • Azure Heroes Sessions #7
  • Who We Are!
  • eBooks
  • Azure All In One!
    • Azure Disk & Storage
    • Azure Network
    • Azure VPN
    • Azure VMs
  • Free Azure Support!
  • Contact Us
  • Events
    • Beginners Event
    • Developers Event
    • Special Event
    • Azure Workshop #4
    • Azure Workshop #5
    • Azure Workshop #6
    • Azure Workshop #7
    • Azure Workshop #8
    • Azure Heroes Sessions #9
    • Azure Heroes Sessions #10
    • Azure Heroes Sessions #11
    • Azure Heroes Sessions #12
    • Azure Heroes Sessions #13
    • Azure Heroes Sessions #14
    • Azure Heroes Sessions #15
    • Azure Heroes Sessions #16
    • Azure Heroes Sessions #17
    • Azure Heroes Sessions #18
  • Registration Form
  • Privacy Policy
  • Home-Updates
  • Blog
    • Azure Blog
    • Azure Heroes Events >
      • Azure Heroes Sessions #1
      • Azure Heroes Sessions #2
      • Azure Heroes Sessions #3
      • Azure Heroes Sessions #4
      • Azure Heroes Sessions #5
      • Azure Heroes Sessions #6
      • Azure Heroes Sessions #7
  • Who We Are!
  • eBooks
  • Azure All In One!
    • Azure Disk & Storage
    • Azure Network
    • Azure VPN
    • Azure VMs
  • Free Azure Support!
  • Contact Us
  • Events
    • Beginners Event
    • Developers Event
    • Special Event
    • Azure Workshop #4
    • Azure Workshop #5
    • Azure Workshop #6
    • Azure Workshop #7
    • Azure Workshop #8
    • Azure Heroes Sessions #9
    • Azure Heroes Sessions #10
    • Azure Heroes Sessions #11
    • Azure Heroes Sessions #12
    • Azure Heroes Sessions #13
    • Azure Heroes Sessions #14
    • Azure Heroes Sessions #15
    • Azure Heroes Sessions #16
    • Azure Heroes Sessions #17
    • Azure Heroes Sessions #18
  • Registration Form
  • Privacy Policy

Identifying Top FQDN Traffic Flows in Azure Firewall Logs

5/8/2024

0 Comments

 
Monitoring and analyzing network traffic is crucial for maintaining a secure and efficient Azure environment. Azure Firewall provides robust logging capabilities that allow you to scrutinize traffic flows, particularly focusing on Fully Qualified Domain Names (FQDNs). By leveraging Azure Firewall's logs and employing Kusto Query Language (KQL), you can identify the top FQDNs contributing to your network traffic.
Picture
Understanding Azure Firewall Logs
Azure Firewall generates various logs that offer insights into its operations:
  • Application Rule Logs: Detail traffic allowed or denied based on application rules, including information about FQDNs accessed.
  • Network Rule Logs: Capture data on traffic filtered through network rules, focusing on IP addresses and ports.
  • Top Flows Logs: Highlight the top connections contributing to the highest throughput, aiding in identifying significant traffic patterns.

Identifying Top FQDN Traffic Flows


To pinpoint the top FQDNs in your network traffic, you can utilize the following KQL approach:


let ApplicationRuleData = AzureDiagnostics
| where Category == "AzureFirewallApplicationRule"
| where Fqdn contains "blob." and action_s == "Allow"
| summarize count() by SourceIp, Fqdn;
let FlowData = AzureDiagnostics
| where Category == "AzureFirewallFatFlowLog"
| summarize sum(FlowRate / 1024) by SourceIp, DestinationIp
| sort by sum_ desc;
ApplicationRuleData
| join kind=inner (FlowData) on SourceIp
| summarize TotalFlowRate = sum(sum_) by Fqdn
| order by TotalFlowRate desc

Explanation of the Query

  1. ApplicationRuleData: This segment filters the application rule logs to include only entries where the FQDN contains "blob." and the action is "Allow." It then summarizes the count by SourceIp and Fqdn.

  2. FlowData: This part processes the fat flow logs, summarizing the flow rate (converted to kilobits per second) by SourceIp and DestinationIp, and sorts the results in descending order.
  3. Joining Data: The final step performs an inner join between ApplicationRuleData and FlowData on SourceIp, then summarizes the total flow rate by Fqdn and orders the results to highlight the top FQDNs.
Considerations
  • Performance Impact: Activating Top Flows logs can increase CPU usage. Enable these logs primarily during specific troubleshooting scenarios to avoid potential performance degradation.
  • Data Retention: Ensure that your Log Analytics workspace is configured with an appropriate data retention policy to maintain historical logs for trend analysis.
Conclusion
By effectively analyzing Azure Firewall logs with KQL, you can identify the top FQDNs impacting your network traffic. This insight allows for informed decisions on traffic management, security policy adjustments, and resource allocation, ultimately enhancing the performance and security of your Azure environment.

0 Comments



Leave a Reply.

    Author

    Mohammad Al Rousan is a Microsoft MVP (Azure), Microsoft Certified Solution Expert (MCSE) in Cloud Platform & Azure DevOps & Infrastructure, An active community blogger and speaker. Al Rousan has over 11 years of professional experience in IT Infrastructure and very passionate about Microsoft technologies and products.

    Picture
    Picture
    Top 10 Microsoft Azure Blogs

    Archives

    January 2025
    December 2024
    November 2024
    October 2024
    September 2024
    July 2024
    June 2024
    May 2024
    April 2024
    February 2024
    September 2023
    August 2023
    May 2023
    November 2022
    October 2022
    July 2022
    June 2022
    May 2022
    April 2022
    March 2022
    February 2022
    January 2022
    December 2021
    November 2021
    May 2021
    February 2021
    December 2020
    November 2020
    October 2020
    September 2020
    August 2020
    June 2020
    April 2020
    January 2020
    July 2019
    June 2019
    May 2019
    February 2019
    January 2019

    Categories

    All
    AKS
    Azure
    Beginner
    CDN
    DevOps
    End Of Support
    Fundamentals
    Guide
    Hybrid
    License
    Migration
    Network
    Security
    SQL
    Storage
    Virtual Machines
    WAF

    RSS Feed

    Follow
    Free counters!
Powered by Create your own unique website with customizable templates.