Scraping diagnostic log files stored in azure blob storage without mounting

Andrew Yanni 0 Reputation points
2024-12-09T12:05:10.5733333+00:00

I asked a question here about How to real-time scrape diagnostic log files stored in azure blob storage, which led me to using append blobs. This however did not solve the problem.In short, I tried scraping azure diagnostic logs as they are being written to the storage account blob containers using Promtail and Loki, but this did not work after the first few log lines.

Now I doubt this could be due to the mounting of storage accounts, and not because of not using append blobs.

Is there a way to scrape the logs being written to the azure storage accounts without mounting them at first (e.g., using kubernetes persistent volumes)



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,396 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Amrinder Singh 5,555 Reputation points Microsoft Employee
    2024-12-09T14:31:55.66+00:00

    Hi Andrew Yanni - Thanks for reaching out over Q&A Forum.

    Just to clarify, are you referring to Diagnostic logging or change feed logs?

    If change feed, there is retention you configure (min 1 day)

    If it is only deletion of the append blobs, you can try leveraging LCM as it supports deletion of the Append Blobs.

    https://zcusa.951200.xyz/en-us/azure/storage/blobs/lifecycle-management-overview#rule-actions

    delete2,3 Supported for blockBlob and appendBlob Supported Supported
    delete2,3 Supported for blockBlob and appendBlob Supported Supported

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.