Managing long term log retention (or any business data)

Published Jun 28 2021 04:38 PM 1,525 Views
Microsoft

Managing long term log retention (or any business data)

The shared responsibility model of the public cloud helps us all pass of some of the burden that needed to be solved completely in-house. A notable example of this is the protection and retention of business-critical data, whether it be the digital copies of documents sent to customer’s, financial history records, call recordings or security logs. There are many types of records and objects that we have business, compliance, or legal reasons to ensure that an original point in time copy is kept for a set period.

One of the excellent features that enable this in Azure is Immutable storage, linked with Lifecycle management rules.

 

Protecting Security log exports

For security teams, this is often a requirement to keep the security logs from the SIEM for an extended period. We can export our data from our log analytics workspaces through several methods outlined in this article (hyperlink here). Once we have exported that data to an Azure storage account we need to protect it from change or deletion for the required time period. We also need to enforce our business rules in ensuring that data that is no longer needed is removed from the system.

The solution we are building here allows for the storage of these logs.

PhilipDuff_0-1624922723833.png

 

Immutable storage

Immutable storage for Azure Blob storage enables users to store business-critical data objects in a WORM (Write Once, Read Many) state. This state makes the data non-erasable and non-modifiable for a user-specified interval. For the duration of the retention interval, blobs can be created and read, but cannot be modified or deleted.

 

Immutable storage polices are two types.

  1. Time base Polices – These allow you to set the minimum retention period for the storage objects. During that time both writes and deletes to the object will be blocked. When the policy is locked (more on that later) the policy will also prevent the deletion of the storage account. Once the retention period has expired, the object will continue to be protected from write operations but delete operations can be executed.
  2. Legal Hold Policies – These polices allow for a flexible period of hold and can be removed when no longer needed. Legal hold polices need to be associated with one or more tags that are used as identifiers. These tags are often used to represent case or event ID’s. You can place a Legal Hold policy on any container, even if it already has a time-based policy.

 

For the purposes of this post, we are going to focus on the use of the time-based polies, but if you want to read more on legal hold polices, they can be found here.

 

Time based polices are implemented simply on a storage container through PowerShell, the Azure CLI or the Portal, but not through ARM templates. This article will go through the use of the portal, the PowerShell and CLI code can be found here.

 

PhilipDuff_1-1624922723868.png

 

When adding a new Time-based policy, you will need to specify the number of days to enforce protection, this is a number of days between 1 and 146,000 days (400 years – that’s a really long time). At the same time, you can allow for append blobs to continue to be appended to. For systems that are continually adding to a log through the use of Append Blobs (such as continuous export from Log Analytics), this allows them to keep appending to the blob while it is under the policy. Note that the retention time restarts each time a block is added. Also note that a Legal hold policy does not have this option, and thus will deny an append write if a placed on.

 

PhilipDuff_2-1624922723873.png

 

When a time-based policy is first created it starts in an unlocked state. In this state you can toggle the append protection and change the number of days of protection as needed. This state is for testing and ensuring all settings are set correctly, you can even delete the policy if it was created by mistake.

 

PhilipDuff_3-1624922723874.png

 

Once the policy settings are confirmed to be correct, it is then time to lock the policy.

 

Locking the policy is irreversible and after it cannot be deleted. You must delete the container completely, and this can only be done once there are no items that are protected from deletion by a policy. Once locked you can only increase the number of days in the retention setting (never decrease) five times.

 

PhilipDuff_4-1624922723876.png

 

Lifecycle management

While protecting the data from deletion or change is half of the problem, we must also consider enforcing removal of data in line with retention policies. We can also take additional actions to contain the costs of the storage account by altering the tiers of storage between Hot, Cool and Archive.

 

Lifecycle management rules of a storage account can automatically remove the storage objects we no longer need through a simple rule set.

 

Note: if you enable the Firewall on the storage account, you will need to allow “Trusted Microsoft Services”, otherwise the management rules will be blocked from executing. If your corporate security policy does not allow this exception, then you won’t be able to use the management rules outlined here, but you can implement a similar process though an alternate automation mechanism inside your network.

 

Lifecycle management rules are set at the Storage Account level and are simple enough to configure. For our logs we just want to set a rule to automatically delete the logs at the end of our retention period.

 

Again, we will be going through the creation using the portal, but these can be done through PowerShell or ARM template, instructions are here.

 

At the Storage account select Lifecycle management, and then Add a rule.

PhilipDuff_5-1624922723878.png

 

Give the rule a descriptive name and set the scope to capture all the appropriate objects that you need to manage.

 

PhilipDuff_6-1624922723880.png

 

Set the number of days you want to keep the object and then set the delete action.

 

Make sure that the number of days is longer than the immutable time-based policy otherwise the rule will not be able to delete the object.

 

PhilipDuff_7-1624922723883.png

 

Finally complete your rule.

 

The rule will continuously evaluate the storage account cleaning up any files that have past their required date.

Note: if you needed to keep some specific files for a more extended period, you could consider a Legal Hold policy on those objects that would then stop the management rule from processing them.

Long Term Costs

Storing these items for such an extended period can often lead into larger costs.

We can also add some additional rules to help us control the costs of the storage.

An important consideration here is the fact that the immutable storage policies will continue to allow us to move the storage between tiers while keeping the data protected from change or deletion.

Note: Lifecycle management rules for changing the storage tier today only apply to Block Blob, not Append Blob.

Going thought the same process as above to create a rule, though this time we set the last accessed number of days and then select the “move to cool” action. This will enable the system to move unused Block Blobs to the cool tier.

 

PhilipDuff_8-1624922723885.png

 

You can further enhance this with an additional rule to move the Block Blob to archive after a further date. There is no requirement to move to cold before moving to archive, so if that suits your business outcome you can move it directly to archive.

 

PhilipDuff_9-1624922723888.png

 

Keep in mind that analytical systems that leverage the storage system (such as Azure Data Explorer) won’t be able to interact with archived data and it must be rehydrated back to cool or hot to be used.

Timeline

With these two systems in place, we have set up our logs to be kept for our required period, manage out costs and then automatically removed at the end.

 

PhilipDuff_10-1624922723889.png

 

Summary

While in this article we have focused on applying the protection to the logs from the monitoring systems or SIEM, the process and protection applied here could suit any business data that needs long term retention and hold. This data could be in the form of log exports, call recordings or document images.

 

1 Comment
Contributor

@Philip Duff 

 

Good article - think you missed adding the hyperlink to the long term SIEM log storage article though. The article currently reads:

 

Protecting Security log exports

For security teams, this is often a requirement to keep the security logs from the SIEM for an extended period. We can export our data from our log analytics workspaces through several methods outlined in this article (hyperlink here)."

%3CLINGO-SUB%20id%3D%22lingo-sub-2494791%22%20slang%3D%22en-US%22%3EManaging%20long%20term%20log%20retention%20(or%20any%20business%20data)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2494791%22%20slang%3D%22en-US%22%3E%3CH2%20id%3D%22toc-hId--434637390%22%20id%3D%22toc-hId--434636708%22%20id%3D%22toc-hId--434637390%22%3EManaging%20long%20term%20log%20retention%20(or%20any%20business%20data)%3C%2FH2%3E%0A%3CP%3EThe%20shared%20responsibility%20model%20of%20the%20public%20cloud%20helps%20us%20all%20pass%20of%20some%20of%20the%20burden%20that%20needed%20to%20be%20solved%20completely%20in-house.%20A%20notable%20example%20of%20this%20is%20the%20protection%20and%20retention%20of%20business-critical%20data%2C%20whether%20it%20be%20the%20digital%20copies%20of%20documents%20sent%20to%20customer%E2%80%99s%2C%20financial%20history%20records%2C%20call%20recordings%20or%20security%20logs.%20There%20are%20many%20types%20of%20records%20and%20objects%20that%20we%20have%20business%2C%20compliance%2C%20or%20legal%20reasons%20to%20ensure%20that%20an%20original%20point%20in%20time%20copy%20is%20kept%20for%20a%20set%20period.%3C%2FP%3E%0A%3CP%3EOne%20of%20the%20excellent%20features%20that%20enable%20this%20in%20Azure%20is%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fstorage%2Fblobs%2Fstorage-blob-immutable-storage%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EImmutable%20storage%3C%2FA%3E%2C%20linked%20with%20Lifecycle%20management%20rules.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-255924084%22%20id%3D%22toc-hId-255924766%22%20id%3D%22toc-hId-255924084%22%3EProtecting%20Security%20log%20exports%3C%2FH3%3E%0A%3CP%3EFor%20security%20teams%2C%20this%20is%20often%20a%20requirement%20to%20keep%20the%20security%20logs%20from%20the%20SIEM%20for%20an%20extended%20period.%20We%20can%20export%20our%20data%20from%20our%20log%20analytics%20workspaces%20through%20several%20methods%20outlined%20in%20this%20article%20(hyperlink%20here).%20Once%20we%20have%20exported%20that%20data%20to%20an%20Azure%20storage%20account%20we%20need%20to%20protect%20it%20from%20change%20or%20deletion%20for%20the%20required%20time%20period.%20We%20also%20need%20to%20enforce%20our%20business%20rules%20in%20ensuring%20that%20data%20that%20is%20no%20longer%20needed%20is%20removed%20from%20the%20system.%3C%2FP%3E%0A%3CP%3EThe%20solution%20we%20are%20building%20here%20allows%20for%20the%20storage%20of%20these%20logs.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22PhilipDuff_0-1624922723833.png%22%20style%3D%22width%3A%20538px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F292162i967DDF234A4B1B78%2Fimage-dimensions%2F538x331%3Fv%3Dv2%22%20width%3D%22538%22%20height%3D%22331%22%20role%3D%22button%22%20title%3D%22PhilipDuff_0-1624922723833.png%22%20alt%3D%22PhilipDuff_0-1624922723833.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--1551530379%22%20id%3D%22toc-hId--1551529697%22%20id%3D%22toc-hId--1551530379%22%3EImmutable%20storage%3C%2FH3%3E%0A%3CP%3EImmutable%26nbsp%3Bstorage%26nbsp%3Bfor%26nbsp%3BAzure%26nbsp%3BBlob%26nbsp%3Bstorage%26nbsp%3Benables%20users%20to%26nbsp%3Bstore%26nbsp%3Bbusiness-critical%20data%20objects%20in%20a%20WORM%20(Write%20Once%2C%20Read%20Many)%20state.%20This%20state%20makes%20the%20data%20non-erasable%20and%20non-modifiable%20for%20a%20user-specified%20interval.%20For%20the%20duration%20of%20the%20retention%20interval%2C%20blobs%20can%20be%20created%20and%20read%2C%20but%20cannot%20be%20modified%20or%20deleted.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EImmutable%20storage%20polices%20are%20two%20types.%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3ETime%20base%20Polices%20%E2%80%93%20These%20allow%20you%20to%20set%20the%20minimum%20retention%20period%20for%20the%20storage%20objects.%20During%20that%20time%20both%20writes%20and%20deletes%20to%20the%20object%20will%20be%20blocked.%20When%20the%20policy%20is%20locked%20(more%20on%20that%20later)%20the%20policy%20will%20also%20prevent%20the%20deletion%20of%20the%20storage%20account.%20Once%20the%20retention%20period%20has%20expired%2C%20the%20object%20will%20continue%20to%20be%20protected%20from%20write%20operations%20but%20delete%20operations%20can%20be%20executed.%3C%2FLI%3E%0A%3CLI%3ELegal%20Hold%20Policies%20%E2%80%93%20These%20polices%20allow%20for%20a%20flexible%20period%20of%20hold%20and%20can%20be%20removed%20when%20no%20longer%20needed.%20Legal%20hold%20polices%20need%20to%20be%20associated%20with%20one%20or%20more%20tags%20that%20are%20used%20as%20identifiers.%20These%20tags%20are%20often%20used%20to%20represent%20case%20or%20event%20ID%E2%80%99s.%20You%20can%20place%20a%20Legal%20Hold%20policy%20on%20any%20container%2C%20even%20if%20it%20already%20has%20a%20time-based%20policy.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20the%20purposes%20of%20this%20post%2C%20we%20are%20going%20to%20focus%20on%20the%20use%20of%20the%20time-based%20polies%2C%20but%20if%20you%20want%20to%20read%20more%20on%20legal%20hold%20polices%2C%20they%20can%20be%20found%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fstorage%2Fblobs%2Fstorage-blob-immutable-storage%23legal-holds%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETime%20based%20polices%20are%20implemented%20simply%20on%20a%20storage%20container%20through%20PowerShell%2C%20the%20Azure%20CLI%20or%20the%20Portal%2C%20but%20not%20through%20ARM%20templates.%20This%20article%20will%20go%20through%20the%20use%20of%20the%20portal%2C%20the%20PowerShell%20and%20CLI%20code%20can%20be%20found%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fstorage%2Fblobs%2Fstorage-blob-immutability-policies-manage%3Ftabs%3Dazure-powershell%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22PhilipDuff_1-1624922723868.png%22%20style%3D%22width%3A%20618px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F292164i4721E40FFD79CCB3%2Fimage-dimensions%2F618x332%3Fv%3Dv2%22%20width%3D%22618%22%20height%3D%22332%22%20role%3D%22button%22%20title%3D%22PhilipDuff_1-1624922723868.png%22%20alt%3D%22PhilipDuff_1-1624922723868.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhen%20adding%20a%20new%20Time-based%20policy%2C%20you%20will%20need%20to%20specify%20the%20number%20of%20days%20to%20enforce%20protection%2C%20this%20is%20a%20number%20of%20days%20between%201%20and%20146%2C000%20days%20(400%20years%20%E2%80%93%20that%E2%80%99s%20a%20really%20long%20time).%20At%20the%20same%20time%2C%20you%20can%20allow%20for%20append%20blobs%20to%20continue%20to%20be%20appended%20to.%20For%20systems%20that%20are%20continually%20adding%20to%20a%20log%20through%20the%20use%20of%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Frest%2Fapi%2Fstorageservices%2Funderstanding-block-blobs--append-blobs--and-page-blobs%23about-append-blobs%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAppend%20Blobs%3C%2FA%3E%20(such%20as%20continuous%20export%20from%20Log%20Analytics)%2C%20this%20allows%20them%20to%20keep%20appending%20to%20the%20blob%20while%20it%20is%20under%20the%20policy.%20Note%20that%20the%20retention%20time%20restarts%20each%20time%20a%20block%20is%20added.%20Also%20note%20that%20a%20Legal%20hold%20policy%20does%20not%20have%20this%20option%2C%20and%20thus%20will%20deny%20an%20append%20write%20if%20a%20placed%20on.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22PhilipDuff_2-1624922723873.png%22%20style%3D%22width%3A%20581px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F292163i37DD2E030935400D%2Fimage-dimensions%2F581x350%3Fv%3Dv2%22%20width%3D%22581%22%20height%3D%22350%22%20role%3D%22button%22%20title%3D%22PhilipDuff_2-1624922723873.png%22%20alt%3D%22PhilipDuff_2-1624922723873.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhen%20a%20time-based%20policy%20is%20first%20created%20it%20starts%20in%20an%20unlocked%20state.%20In%20this%20state%20you%20can%20toggle%20the%20append%20protection%20and%20change%20the%20number%20of%20days%20of%20protection%20as%20needed.%20This%20state%20is%20for%20testing%20and%20ensuring%20all%20settings%20are%20set%20correctly%2C%20you%20can%20even%20delete%20the%20policy%20if%20it%20was%20created%20by%20mistake.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22PhilipDuff_3-1624922723874.png%22%20style%3D%22width%3A%20627px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F292165iFAF1943396F1F9D7%2Fimage-dimensions%2F627x304%3Fv%3Dv2%22%20width%3D%22627%22%20height%3D%22304%22%20role%3D%22button%22%20title%3D%22PhilipDuff_3-1624922723874.png%22%20alt%3D%22PhilipDuff_3-1624922723874.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOnce%20the%20policy%20settings%20are%20confirmed%20to%20be%20correct%2C%20it%20is%20then%20time%20to%20lock%20the%20policy.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CU%3ELocking%20the%20policy%20is%20irreversible%20and%20after%20it%20cannot%20be%20deleted.%20You%20must%20delete%20the%20container%20completely%2C%20and%20this%20can%20only%20be%20done%20once%20there%20are%20no%20items%20that%20are%20protected%20from%20deletion%20by%20a%20policy.%20Once%20locked%20you%20can%20only%20increase%20the%20number%20of%20days%20in%20the%20retention%20setting%20(never%20decrease)%20five%20times.%3C%2FU%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22PhilipDuff_4-1624922723876.png%22%20style%3D%22width%3A%20556px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F292166i069644968A343DBA%2Fimage-dimensions%2F556x260%3Fv%3Dv2%22%20width%3D%22556%22%20height%3D%22260%22%20role%3D%22button%22%20title%3D%22PhilipDuff_4-1624922723876.png%22%20alt%3D%22PhilipDuff_4-1624922723876.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-935982454%22%20id%3D%22toc-hId-935983136%22%20id%3D%22toc-hId-935982454%22%3ELifecycle%20management%3C%2FH3%3E%0A%3CP%3EWhile%20protecting%20the%20data%20from%20deletion%20or%20change%20is%20half%20of%20the%20problem%2C%20we%20must%20also%20consider%20enforcing%20removal%20of%20data%20in%20line%20with%20retention%20policies.%20We%20can%20also%20take%20additional%20actions%20to%20contain%20the%20costs%20of%20the%20storage%20account%20by%20altering%20the%20tiers%20of%20storage%20between%20Hot%2C%20Cool%20and%20Archive.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fstorage%2Fblobs%2Fstorage-lifecycle-management-concepts%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ELifecycle%20management%20rules%3C%2FA%3E%20of%20a%20storage%20account%20can%20automatically%20remove%20the%20storage%20objects%20we%20no%20longer%20need%20through%20a%20simple%20rule%20set.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENote%3A%20if%20you%20enable%20the%20Firewall%20on%20the%20storage%20account%2C%20you%20will%20need%20to%20allow%20%E2%80%9CTrusted%20Microsoft%20Services%E2%80%9D%2C%20otherwise%20the%20management%20rules%20will%20be%20blocked%20from%20executing.%20If%20your%20corporate%20security%20policy%20does%20not%20allow%20this%20exception%2C%20then%20you%20won%E2%80%99t%20be%20able%20to%20use%20the%20management%20rules%20outlined%20here%2C%20but%20you%20can%20implement%20a%20similar%20process%20though%20an%20alternate%20automation%20mechanism%20inside%20your%20network.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ELifecycle%20management%20rules%20are%20set%20at%20the%20Storage%20Account%20level%20and%20are%20simple%20enough%20to%20configure.%20For%20our%20logs%20we%20just%20want%20to%20set%20a%20rule%20to%20automatically%20delete%20the%20logs%20at%20the%20end%20of%20our%20retention%20period.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAgain%2C%20we%20will%20be%20going%20through%20the%20creation%20using%20the%20portal%2C%20but%20these%20can%20be%20done%20through%20PowerShell%20or%20ARM%20template%2C%20instructions%20are%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fstorage%2Fblobs%2Fstorage-lifecycle-management-concepts%3Ftabs%3Dazure-powershell%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAt%20the%20Storage%20account%20select%20Lifecycle%20management%2C%20and%20then%20Add%20a%20rule.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22PhilipDuff_5-1624922723878.png%22%20style%3D%22width%3A%20653px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F292167iC6ABA8220A6B9723%2Fimage-dimensions%2F653x191%3Fv%3Dv2%22%20width%3D%22653%22%20height%3D%22191%22%20role%3D%22button%22%20title%3D%22PhilipDuff_5-1624922723878.png%22%20alt%3D%22PhilipDuff_5-1624922723878.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EGive%20the%20rule%20a%20descriptive%20name%20and%20set%20the%20scope%20to%20capture%20all%20the%20appropriate%20objects%20that%20you%20need%20to%20manage.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22PhilipDuff_6-1624922723880.png%22%20style%3D%22width%3A%20580px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F292168iB08F3986E382D81D%2Fimage-dimensions%2F580x441%3Fv%3Dv2%22%20width%3D%22580%22%20height%3D%22441%22%20role%3D%22button%22%20title%3D%22PhilipDuff_6-1624922723880.png%22%20alt%3D%22PhilipDuff_6-1624922723880.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESet%20the%20number%20of%20days%20you%20want%20to%20keep%20the%20object%20and%20then%20set%20the%20delete%20action.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMake%20sure%20that%20the%20number%20of%20days%20is%20longer%20than%20the%20immutable%20time-based%20policy%20otherwise%20the%20rule%20will%20not%20be%20able%20to%20delete%20the%20object.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22PhilipDuff_7-1624922723883.png%22%20style%3D%22width%3A%20568px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F292169iD0A8B99CF74D36D8%2Fimage-dimensions%2F568x395%3Fv%3Dv2%22%20width%3D%22568%22%20height%3D%22395%22%20role%3D%22button%22%20title%3D%22PhilipDuff_7-1624922723883.png%22%20alt%3D%22PhilipDuff_7-1624922723883.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFinally%20complete%20your%20rule.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20rule%20will%20continuously%20evaluate%20the%20storage%20account%20cleaning%20up%20any%20files%20that%20have%20past%20their%20required%20date.%3C%2FP%3E%0A%3CP%3ENote%3A%20if%20you%20needed%20to%20keep%20some%20specific%20files%20for%20a%20more%20extended%20period%2C%20you%20could%20consider%20a%20Legal%20Hold%20policy%20on%20those%20objects%20that%20would%20then%20stop%20the%20management%20rule%20from%20processing%20them.%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--871472009%22%20id%3D%22toc-hId--871471327%22%20id%3D%22toc-hId--871472009%22%3ELong%20Term%20Costs%3C%2FH3%3E%0A%3CP%3EStoring%20these%20items%20for%20such%20an%20extended%20period%20can%20often%20lead%20into%20larger%20costs.%3C%2FP%3E%0A%3CP%3EWe%20can%20also%20add%20some%20additional%20rules%20to%20help%20us%20control%20the%20costs%20of%20the%20storage.%3C%2FP%3E%0A%3CP%3EAn%20important%20consideration%20here%20is%20the%20fact%20that%20the%20immutable%20storage%20policies%20will%20continue%20to%20allow%20us%20to%20move%20the%20storage%20between%20tiers%20while%20keeping%20the%20data%20protected%20from%20change%20or%20deletion.%3C%2FP%3E%0A%3CP%3ENote%3A%20Lifecycle%20management%20rules%20for%20changing%20the%20storage%20tier%20today%20only%20apply%20to%20Block%20Blob%2C%20not%20Append%20Blob.%3C%2FP%3E%0A%3CP%3EGoing%20thought%20the%20same%20process%20as%20above%20to%20create%20a%20rule%2C%20though%20this%20time%20we%20set%20the%20last%20accessed%20number%20of%20days%20and%20then%20select%20the%20%E2%80%9Cmove%20to%20cool%E2%80%9D%20action.%20This%20will%20enable%20the%20system%20to%20move%20unused%20Block%20Blobs%20to%20the%20cool%20tier.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22PhilipDuff_8-1624922723885.png%22%20style%3D%22width%3A%20577px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F292170i22ABCEB6ACCC9914%2Fimage-dimensions%2F577x427%3Fv%3Dv2%22%20width%3D%22577%22%20height%3D%22427%22%20role%3D%22button%22%20title%3D%22PhilipDuff_8-1624922723885.png%22%20alt%3D%22PhilipDuff_8-1624922723885.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20further%20enhance%20this%20with%20an%20additional%20rule%20to%20move%20the%20Block%20Blob%20to%20archive%20after%20a%20further%20date.%20There%20is%20no%20requirement%20to%20move%20to%20cold%20before%20moving%20to%20archive%2C%20so%20if%20that%20suits%20your%20business%20outcome%20you%20can%20move%20it%20directly%20to%20archive.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22PhilipDuff_9-1624922723888.png%22%20style%3D%22width%3A%20577px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F292172iB8A33AFC55FD87A5%2Fimage-dimensions%2F577x427%3Fv%3Dv2%22%20width%3D%22577%22%20height%3D%22427%22%20role%3D%22button%22%20title%3D%22PhilipDuff_9-1624922723888.png%22%20alt%3D%22PhilipDuff_9-1624922723888.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EKeep%20in%20mind%20that%20analytical%20systems%20that%20leverage%20the%20storage%20system%20(such%20as%20Azure%20Data%20Explorer)%20won%E2%80%99t%20be%20able%20to%20interact%20with%20archived%20data%20and%20it%20must%20be%20rehydrated%20back%20to%20cool%20or%20hot%20to%20be%20used.%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1616040824%22%20id%3D%22toc-hId-1616041506%22%20id%3D%22toc-hId-1616040824%22%3ETimeline%3C%2FH3%3E%0A%3CP%3EWith%20these%20two%20systems%20in%20place%2C%20we%20have%20set%20up%20our%20logs%20to%20be%20kept%20for%20our%20required%20period%2C%20manage%20out%20costs%20and%20then%20automatically%20removed%20at%20the%20end.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22PhilipDuff_10-1624922723889.png%22%20style%3D%22width%3A%20866px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F292171i662746B5E278AA15%2Fimage-dimensions%2F866x184%3Fv%3Dv2%22%20width%3D%22866%22%20height%3D%22184%22%20role%3D%22button%22%20title%3D%22PhilipDuff_10-1624922723889.png%22%20alt%3D%22PhilipDuff_10-1624922723889.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--191413639%22%20id%3D%22toc-hId--191412957%22%20id%3D%22toc-hId--191413639%22%3ESummary%3C%2FH3%3E%0A%3CP%3EWhile%20in%20this%20article%20we%20have%20focused%20on%20applying%20the%20protection%20to%20the%20logs%20from%20the%20monitoring%20systems%20or%20SIEM%2C%20the%20process%20and%20protection%20applied%20here%20could%20suit%20any%20business%20data%20that%20needs%20long%20term%20retention%20and%20hold.%20This%20data%20could%20be%20in%20the%20form%20of%20log%20exports%2C%20call%20recordings%20or%20document%20images.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2494791%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20shared%20responsibility%20model%20of%20the%20public%20cloud%20helps%20us%20all%20pass%20of%20some%20of%20the%20burden%20that%20needed%20to%20be%20solved%20completely%20in-house.%20Leveraging%20Azures%20capability%20for%20information%20management%2C%20this%20article%20will%20provide%20some%20insight%20on%20how%20to%20enable%20immutable%20long%20term%20log%20storage%2C%20manage%20the%20storage%20tiers%20and%20remove%20the%20information%20once%20it%20is%20no%20longer%20needed.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2494791%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Archive%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzure%20Blob%20Storage%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2500831%22%20slang%3D%22en-US%22%3ERe%3A%20Managing%20long%20term%20log%20retention%20(or%20any%20business%20data)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2500831%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F214887%22%20target%3D%22_blank%22%3E%40Philip%20Duff%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGood%20article%20-%20think%20you%20missed%20adding%20the%20hyperlink%20to%20the%20long%20term%20SIEM%20log%20storage%20article%20though.%20The%20article%20currently%20reads%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CH3%20id%3D%22toc-hId-2063379231%22%20id%3D%22toc-hId--1998868102%22%3EProtecting%20Security%20log%20exports%3C%2FH3%3E%3CP%3EFor%20security%20teams%2C%20this%20is%20often%20a%20requirement%20to%20keep%20the%20security%20logs%20from%20the%20SIEM%20for%20an%20extended%20period.%20We%20can%20export%20our%20data%20from%20our%20log%20analytics%20workspaces%20through%20several%20methods%20outlined%20in%20this%20article%20%3CSTRONG%3E(hyperlink%20here)%3C%2FSTRONG%3E.%22%3C%2FP%3E%3C%2FLINGO-BODY%3E
Co-Authors
Version history
Last update:
‎Jun 28 2021 04:38 PM
Updated by: