Page 1 of 1

How to move /var/asl/data/audit to a bigger partition

Posted: Wed Jun 24, 2015 8:13 pm
by CRServers
Hello to all,

The data in /var/asl/data/audit has grown to over 11Gb taking a big chunk of our /var partition.

So I decided to modify the configuration and move that to my bigger /home partition.
I created the new folders and changed MODSEC_AUDITDIR to /home/var/asl/data/audit.
Then restarted Apache
But the audit log files did not change to the new path.

What else do I have to do or restart to activate the change?

Thanks for your help

Rodrigo

Re: How to move /var/asl/data/audit to a bigger partition

Posted: Fri Jun 26, 2015 7:26 am
by scott
Did you update the policy with asl -s -f?

Re: How to move /var/asl/data/audit to a bigger partition

Posted: Mon Sep 21, 2015 1:07 pm
by CRServers
Yes, I have done it several times.
From the terminal and from the GUI
But I'm stuck

It seems that some procedure is overwriting my configuration every time I run

Code: Select all

asl -s -f
I see this in the results report:
Audit Logging to: /var/asl/data/audit FIXED

SecTmpDir set to: /tmp FIXED
How can I stop ASL from overwriting my changes?

Thanks,

Re: How to move /var/asl/data/audit to a bigger partition

Posted: Thu Dec 31, 2015 10:55 pm
by MehdiMoz
CRServers wrote:Yes, I have done it several times.
From the terminal and from the GUI
But I'm stuck

It seems that some procedure is overwriting my configuration every time I run

Code: Select all

asl -s -f
I see this in the results report:
Audit Logging to: /var/asl/data/audit FIXED

SecTmpDir set to: /tmp FIXED
How can I stop ASL from overwriting my changes?

Thanks,

Try mounting a new hard drive to a new directory and symlinking /var/asl/data/audit to that new directory or mount new hard drive on /var/asl/data/audit and see if it could help