Azure Queue Storage - How to get the log of who sent the message

RM 21 Reputation points
2022-05-18T06:21:33.83+00:00

Hi,

I'm not sure if this is possible. Can azure queue storage, logs the sender of the message? Like IP Address.

TIA

Azure Queue Storage
Azure Queue Storage
An Azure service that provides messaging queues in the cloud.
95 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sumarigo-MSFT 43,001 Reputation points Microsoft Employee
    2022-05-18T06:56:36.87+00:00

    @AaronMercado-9270 Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    You need to build additional endpoint to accept the message first, capture the mapping between the message and user, then post the message to queue.

    When AAD is used, Azure Monitor logs capture the identity along with operation context but the message content is not supported. Reference: Monitoring Azure Queue Storage | Microsoft Learn

    Additional information: This article features a collection of common Queue Storage monitoring scenarios, and provides you with best practice guidelines to accomplish them: https://learn.microsoft.com/en-us/azure/storage/queues/queues-storage-monitoring-scenarios?tabs=azure-powershell

    When you have critical applications and business processes that rely on Azure resources, you want to monitor those resources for their availability, performance, and operation. This article describes the monitoring data that's generated by Azure Queue Storage and how you can use the features of Azure Monitor to analyze alerts on this data.

    Please let us know if you have any further queries. I’m happy to assist you further.

    ----------

    Please do not forget to 203018-screenshot-2021-12-10-121802.png and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. RM 21 Reputation points
    2022-05-18T07:42:05.25+00:00

    Hi @Sumarigo-MSFT Thanks for answering.

    I just want to share on others, how I managed to get the logs. Just in case someone will gonna look for the answer.

    I managed to get the IP address of the sender by enabling the Diagnostic Settings on the Queue Storage

    1. Azure Storage Resource > Monitoring > Diagnostic Settings
    2. Then on the list, select queue then add a diagnostic setting
    3. Check the categories you want (StorageRead, StorageWrite, StorageDelete) For the destination details I select Archive to storage account.
    4. After that you can go now to the other storage account you selected and download the logs :)

    Link: https://learn.microsoft.com/en-us/azure/azure-monitor/essentials/resource-logs#send-to-azure-storage

    0 comments No comments