OOTB Audit nodes under /var

Avatar

Avatar
Validate 1
Level 3
Ashwin_Raju
Level 3

Likes

7 likes

Total Posts

44 posts

Correct reply

4 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 3
View profile

Avatar
Validate 1
Level 3
Ashwin_Raju
Level 3

Likes

7 likes

Total Posts

44 posts

Correct reply

4 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 3
View profile
Ashwin_Raju
Level 3

05-02-2017

Hi,

I see lot of audit nodes created under /var such as /var/audit/com.day.cq.wcm.core.page, /var/audit/com.day.cq.replication, /var/audit/com.day.cq.dam. As the application usage increases, day by day, the number of nodes created under these nodes is increasing and is adding to the repository size overall.

So wanted to check if we can clean up these nodes or is there any way to automatically clean up these nodes OOTB ?

Also, will there be any implications in cleaning up these nodes ?

Regards,

Ashwin Raju

Replies

Avatar

Avatar
Validate 10
Level 4
sandeepm744005
Level 4

Likes

19 likes

Total Posts

127 posts

Correct reply

13 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Validate 10
Level 4
sandeepm744005
Level 4

Likes

19 likes

Total Posts

127 posts

Correct reply

13 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 1
View profile
sandeepm744005
Level 4

05-02-2017

Ashwin Raju wrote...

Hi,

I see lot of audit nodes created under /var such as /var/audit/com.day.cq.wcm.core.page, /var/audit/com.day.cq.replication, /var/audit/com.day.cq.dam. As the application usage increases, day by day, the number of nodes created under these nodes is increasing and is adding to the repository size overall.

So wanted to check if we can clean up these nodes or is there any way to automatically clean up these nodes OOTB ?

Also, will there be any implications in cleaning up these nodes ?

Regards,

Ashwin Raju

 

You need to check version purge tool or set Version Manager configuration for explicitly purging old version.

https://docs.adobe.com/docs/en/aem/6-2/deploy/configuring/version-purging.html#Purge Versions Tool

Avatar

Avatar
Validate 1
Level 3
Ashwin_Raju
Level 3

Likes

7 likes

Total Posts

44 posts

Correct reply

4 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 3
View profile

Avatar
Validate 1
Level 3
Ashwin_Raju
Level 3

Likes

7 likes

Total Posts

44 posts

Correct reply

4 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 3
View profile
Ashwin_Raju
Level 3

06-02-2017

Hi Sandeep,

I believe the version is stored under /jcr:system/jcr:versionStorage and all OOTB audit information is stored under /var/audit for many events. The Version Purge won't help here I believe.

Regards,

Ashwin Raju

Avatar

Avatar
Springboard
Level 3
Sh1ju
Level 3

Likes

13 likes

Total Posts

56 posts

Correct reply

4 solutions
Top badges earned
Springboard
Validate 1
Establish
Ignite 1
Give Back 5
View profile

Avatar
Springboard
Level 3
Sh1ju
Level 3

Likes

13 likes

Total Posts

56 posts

Correct reply

4 solutions
Top badges earned
Springboard
Validate 1
Establish
Ignite 1
Give Back 5
View profile
Sh1ju
Level 3

06-02-2017

Audit logs needs to be cleaned on regular basis to maintain the repository at an optimal size.Use osgi configuration at “Audit log purge scheduler” to configure automatic audit log purging.

Avatar

Avatar
Validate 1
Level 3
Ashwin_Raju
Level 3

Likes

7 likes

Total Posts

44 posts

Correct reply

4 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 3
View profile

Avatar
Validate 1
Level 3
Ashwin_Raju
Level 3

Likes

7 likes

Total Posts

44 posts

Correct reply

4 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 3
View profile
Ashwin_Raju
Level 3

17-02-2017

Sh1ju wrote...

Audit logs needs to be cleaned on regular basis to maintain the repository at an optimal size.Use osgi configuration at “Audit log purge scheduler” to configure automatic audit log purging.

 

Hi Shiju,

I tried configuring the same but it did not remove the audit nodes. PFB the details. I'm using AEM 6.1 with SP2.

Regards, 

Ashwin Raju

Avatar

Avatar
Validate 1
Level 3
Ashwin_Raju
Level 3

Likes

7 likes

Total Posts

44 posts

Correct reply

4 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 3
View profile

Avatar
Validate 1
Level 3
Ashwin_Raju
Level 3

Likes

7 likes

Total Posts

44 posts

Correct reply

4 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 3
View profile
Ashwin_Raju
Level 3

19-02-2017

UPDATE : I now see the nodes purged per the configuration. But wanted to know the timing of this scheduler. Is it running once per week since I saw it not purging after a day or two.

Avatar

Avatar
Validate 1
Level 2
siddhartha252
Level 2

Likes

3 likes

Total Posts

15 posts

Correct reply

2 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
siddhartha252
Level 2

Likes

3 likes

Total Posts

15 posts

Correct reply

2 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile
siddhartha252
Level 2

04-09-2019

Hi Ashwin,

If your repository is being accessed heavily there is no wonder in an increase of size in /var/audit/* .

There are 2 options here:

1. You can add audit purge to daily activity and keep your repository intact.

2. You can configure in such a way that you are only saving a few days worth of audit rather than 90-120 days worth of data in you weekly maintenance configurations.

Thanks

Sid