locked
Storage Analytics API for reading the diagnostic logs - Java SDK's and REST API's RRS feed

  • Question

  • I am using packages com.microsoft.azure.storage.analytics.CloudAnalyticsClient and com.microsoft.azure.storage.analytics.LogRecord from the storage API's (https://github.com/azure/azure-storage-java/tree/legacy-master) for tracking the blob uploads, listing etc.

    Questions:

    1) Is there an equivalent package available in the v10 version of Storage JavaSDK
    2) Is there a REST API equivalent for the same ?
    3) What is the best way to read the diagnostics/analytics logs apart from directly reading from reading from $logs (which is a very tedious) and using storage analytics API.


    Friday, July 5, 2019 7:43 AM

All replies

  • @ Vinod AThanks for raising this good question. I’m checking on this internally with the product team and will get back to you with something concrete. Apologies for the delay in responding here, 
    Monday, July 8, 2019 9:21 AM
  • @SumanthMarigowda-MSFT Any updates on this ?.
    Wednesday, July 17, 2019 5:14 PM
  • Thanks for raising this question! Firstly, apologies for the delay in responding here and any inconvenience this issue may have caused. Kindly try the following steps to isolate the issue:  

    Please find answers as below. Thanks.

    1. Is there an equivalent package available in the v10 version of Storage JavaSDK ?

    No, this was not added to v10.

    2. Is there a REST API equivalent for the same ?

    The REST API is just a GetBlob on the $logs container, which is supported in all versions of the library.

    3. What is the best way to read the diagnostics/analytics logs apart from directly reading from reading from $logs (which is a very tedious) and using storage analytics API.

    We don’t currently have a plan to continue analytics API support in SDKs newer than 8. You can implement parsing based on Analytics log format.

    4. Will storage analytics API (https://github.com/azure/azure-storage-java/tree/legacy-master) support log version of 2.0. If not which API I need to use ?

    No, you should use GetBlob for the same.

    Kindly let us know if the above helps or you need further assistance on this issue.
    ------------------------------------------------------------------------------------------

    Do click on "Mark as Answer" and Upvote on the post that helps you, this can be beneficial to other community members.

    Thursday, July 25, 2019 9:49 AM
  • @Vinod A Is there any update on the issue?

    If the suggested answer helped for your issue, do click on "Mark as Answer" and “Vote as Helpful” on the post that helps you, this can be beneficial to other community members.

    Friday, July 26, 2019 5:25 AM
  • Just checking in to see if the above answer helped. If this answers your query, do click “Mark as Answer” and Up-Vote for the same, which might be beneficial to other community members reading this thread. And, if you have any further query do let us know.
    Tuesday, July 30, 2019 10:02 AM