Audit.NET icon indicating copy to clipboard operation
Audit.NET copied to clipboard

Add SearchEvents and SearchEventsAsync for AzureStorageBlob DataProvider

Open nbiada opened this issue 2 years ago • 0 comments

These methods add the ability to search the Azure Storage container hierarchy.

They return a list of BlobHierarchyItem (https://docs.microsoft.com/en-us/dotnet/api/azure.storage.blobs.models.blobhierarchyitem?view=azure-dotnet) objects. Example: [container]/202208/14/D53E8A9C-B400-4EBD-A548-D772C7350C14.json [container]/202208/14/3CA4D4B3-2B22-44D8-9E47-B3B773E9B9FF.json [container]/202208/15/E5748A9C-B400-4EBD-A548-D772C7350C14.json [container]/202208/22/56HT4B3-2B22-44D8-9E47-B3B773E9B9FF.json

By executing the method in the following way I will get the list of all events for August 2022: SearchEvents("202208")

To get the events of day 14: SearchEvents("202208/14")

To change the delimiter from "/" (Microsoft standard) to another, simply pass the relevant parameter: SearchEvents("202208", "_")

nbiada avatar Aug 14 '22 08:08 nbiada