* Audit logs rotation problem
@ 2012-05-21 13:11 Nicolas GORALSKI
2012-05-22 14:58 ` Steve Grubb
0 siblings, 1 reply; 3+ messages in thread
From: Nicolas GORALSKI @ 2012-05-21 13:11 UTC (permalink / raw)
To: linux-audit
Hi all
I've a got a problem on my audit log rotation.
Because we've got a lot of logs on our server (a little bit of rules
and lot of activities), we've decided to rotate logs every hours to
compress, backup and delete them.
I'm using the command "/etc/init.d/auditd rotate" to rotate them, no
other commands.
By the way we have some errors, sometimes logs are rotated twice.
The rotation job was successful and we have as a result this
compressed file :
audit_20120507-0940--20120507-1040.log.gz
The file contain in the firts line this information about the previous
rotation at 9h40
type=DAEMON_ROTATE msg=audit(1336376401.094:8139): auditd sending
auid=0 pid=20084 subj=root:system_r:initrc_t:s0
But we have a second file created a few seconds after the previous one
named : audit_20120507-1040--20120507-1040.log.gz
The first line contain this text :
type=DAEMON_ROTATE msg=audit(1336380001.723:8140): auditd error
getting usr1 info - no change, sending auid=? pid=? subj=? res=failed
My search on the internet doesn't give me any clues about a solution.
Does anybody have any clues ?
I'm using RH ES 5.7 with auditd 1.7.18
Regards.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Audit logs rotation problem
2012-05-21 13:11 Audit logs rotation problem Nicolas GORALSKI
@ 2012-05-22 14:58 ` Steve Grubb
2012-05-23 13:37 ` Nicolas GORALSKI
0 siblings, 1 reply; 3+ messages in thread
From: Steve Grubb @ 2012-05-22 14:58 UTC (permalink / raw)
To: linux-audit
On Monday, May 21, 2012 09:11:51 AM Nicolas GORALSKI wrote:
> Hi all
>
> I've a got a problem on my audit log rotation.
>
> Because we've got a lot of logs on our server (a little bit of rules
> and lot of activities), we've decided to rotate logs every hours to
> compress, backup and delete them.
> I'm using the command "/etc/init.d/auditd rotate" to rotate them, no
> other commands.
>
> By the way we have some errors, sometimes logs are rotated twice.
>
> The rotation job was successful and we have as a result this
> compressed file :
> audit_20120507-0940--20120507-1040.log.gz
>
> The file contain in the firts line this information about the previous
> rotation at 9h40
> type=DAEMON_ROTATE msg=audit(1336376401.094:8139): auditd sending
> auid=0 pid=20084 subj=root:system_r:initrc_t:s0
>
> But we have a second file created a few seconds after the previous one
> named : audit_20120507-1040--20120507-1040.log.gz
>
> The first line contain this text :
> type=DAEMON_ROTATE msg=audit(1336380001.723:8140): auditd error
> getting usr1 info - no change, sending auid=? pid=? subj=? res=failed
Whenever a signal comes in for log rotation, the audit system needs to find out
who asked for it. So, it queries the kernel. In this case its saying it couldn't
figure out who asked for the rotation - which is unusual. This almost looks like
2 signals came in or something to that effect.
-Steve
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Audit logs rotation problem
2012-05-22 14:58 ` Steve Grubb
@ 2012-05-23 13:37 ` Nicolas GORALSKI
0 siblings, 0 replies; 3+ messages in thread
From: Nicolas GORALSKI @ 2012-05-23 13:37 UTC (permalink / raw)
To: linux-audit
On Tue, 22 May 2012 10:58:26 -0400, Steve Grubb <sgrubb@redhat.com>
wrote:
> On Monday, May 21, 2012 09:11:51 AM Nicolas GORALSKI wrote:
>> Hi all
>>
>> I've a got a problem on my audit log rotation.
>>
>> Because we've got a lot of logs on our server (a little bit of rules
>> and lot of activities), we've decided to rotate logs every hours to
>> compress, backup and delete them.
>> I'm using the command "/etc/init.d/auditd rotate" to rotate them, no
>> other commands.
>>
>> By the way we have some errors, sometimes logs are rotated twice.
>>
>> The rotation job was successful and we have as a result this
>> compressed file :
>> audit_20120507-0940--20120507-1040.log.gz
>>
>> The file contain in the firts line this information about the previous
>> rotation at 9h40
>> type=DAEMON_ROTATE msg=audit(1336376401.094:8139): auditd sending
>> auid=0 pid=20084 subj=root:system_r:initrc_t:s0
>>
>> But we have a second file created a few seconds after the previous one
>> named : audit_20120507-1040--20120507-1040.log.gz
>>
>> The first line contain this text :
>> type=DAEMON_ROTATE msg=audit(1336380001.723:8140): auditd error
>> getting usr1 info - no change, sending auid=? pid=? subj=? res=failed
>
> Whenever a signal comes in for log rotation, the audit system needs
> to find out
> who asked for it. So, it queries the kernel. In this case its saying
> it couldn't
> figure out who asked for the rotation - which is unusual. This almost
> looks like
> 2 signals came in or something to that effect.
>
> -Steve
This is weird because my script of rotation is composed of :
/etc/init.d/auditd rotate
sleep 30
Any other idea about that, it's weird !!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-05-23 13:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-21 13:11 Audit logs rotation problem Nicolas GORALSKI
2012-05-22 14:58 ` Steve Grubb
2012-05-23 13:37 ` Nicolas GORALSKI
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.