question

RMFXP-9270 avatar image
0 Votes"
RMFXP-9270 asked RMFXP-9270 edited

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

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SumanthMarigowda-MSFT avatar image
0 Votes"
SumanthMarigowda-MSFT answered SumanthMarigowda-MSFT edited

@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 Docs


Additional information: This article features a collection of common Queue Storage monitoring scenarios, and provides you with best practice guidelines to accomplish them: https://docs.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.



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RMFXP-9270 avatar image
0 Votes"
RMFXP-9270 answered RMFXP-9270 edited

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://docs.microsoft.com/en-us/azure/azure-monitor/essentials/resource-logs#send-to-azure-storage


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.