View all IP access from Azure App Service

Violet Zeng 10 Reputation points
2024-07-23T03:11:16.2033333+00:00

According to this link, I was also trying to identify all the incoming IP traffics that trying to access my app. However, when I run "ResourceManagementPublicAccessLogs" in my log analytics window. I got the following error: 'table' operator: Failed to resolve table expression named 'ResourceManagementPublicAccessLogs' Request id: 12762a4a-2141-4595-9b2e-16dced82c3e2.

l also tried many other sample queries. Either it shows failed to resolve table express, or No results found from the last 7 days. But my app is being actively using in the past days. I wonder if I am following the correct guidance. Is it because no table is being imported? But how should I add table to log analytics?
User's imageUser's image

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,034 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,401 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Manu Philip 17,671 Reputation points MVP
    2024-07-23T07:06:27.5933333+00:00

    Hi,

    With some additional settings and query, you can easily find the traffic sources of your app services. Here is the method

    1. Create a Log Analytics Workspace first:

    164136-image.png 164137-image.png

    1. Go to Diagnostics settings under Monitoring section of App Services Blade to add diagnostics settings 164166-image.png
    2. Add Diagnostic settings as follows. Here, you should select the Log Analytics Workspace created in previous step. App Service HTTP logs are selected under categories to capture the traffic we are interested 164174-image.png
    3. Now, we all set to track the traffic using suitable queries. Note that, the changes will take around 10-15 minutes to reflect and to be available for the query.
    4. Go to Logs under Monitoring and select Incoming Requests as below. There you can select basic queries like Top 5 machines from where the requests are being originated towards the app services.

    164089-image.png

    1. You can run custom queries as well something like below. Filter the query to find suitable results so that you can get the required results only for easy analyzing. 164214-image.png

    With some additional settings and query, you can easily find the traffic sources of your app services. Here is the method

    1. Create a Log Analytics Workspace first:
    2. Go to Diagnostics settings under Monitoring section of App Services Blade to add diagnostics settings
      164166-image.png
    3. Add Diagnostic settings as follows. Here, you should select the Log Analytics Workspace created in previous step. App Service HTTP logs are selected under categories to capture the traffic we are interested
      164174-image.png
    4. Now, we all set to track the traffic using suitable queries. Note that, the changes will take around 10-15 minutes to reflect and to be available for the query.
    5. Go to Logs under Monitoring and select Incoming Requests as below. There you can select basic queries like Top 5 machines from where the requests are being originated towards the app services.

    164089-image.png

    1. You can run custom queries as well something like below. Filter the query to find suitable results so that you can get the required results only for easy analyzing.
      164214-image.png

    Hope this helps.


    --please don't forget to upvote and Accept as answer if the reply is helpful--

    0 comments No comments