<div dir="ltr">Philippe, by "managing and using" the audit logs after centralizing, what do you mean?<div><br></div><div>You can centralize logfiles using <b>rsyslog </b>to a "central" (r)<i>syslog</i> server, then you can find the logs in whatever path you decided to store them and use the ausearch command and seek out whatever records you want based on audit record details you can query.</div><div><br></div><div>It is important though to fully and discretely articulate what you mean by "managing and using" audit logs after centralizing.</div><div>Perhaps what you mean by managing is:  logrotation?</div><div>Perhaps what you mean by using is: query audit-record data based on specific filter-capable details?</div><div><br></div><div><br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">--------------------------<br><font color="#000099" size="4">Warron French<br><font size="4"><font size="4"><font size="4"><br></font></font></font></font></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 7, 2020 at 2:15 PM Steve Grubb <<a href="mailto:sgrubb@redhat.com">sgrubb@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Friday, February 7, 2020 5:02:01 AM EST MAUPERTUIS, PHILIPPE wrote:<br>
> Apart the man pages, I didn’t find anything useful relating to<br>
> audisp-remote. I am searching information on how it scales ? Is there any<br>
> performance issue ? How to use it in a large environment ?<br>
<br>
It is really designed for smaller deployments. If you have 10 or so systems, <br>
it should do OK. I have not tested load handling of the daemon via network <br>
sources. But have tested the ability to write logs and its very fast. Fast <br>
enough to fill your hard drive in a minute or so.<br>
<br>
> Most of what I found dated a long time ago and mainly said use rsyslog<br>
> instead. It seems that centralizing the messages through rsyslog is far<br>
> more popular. Is audisp-remote really used ?<br>
<br>
For small deployments sure. If you really have a lot, then you probably <br>
should use some kind of subsystem designed to handle large amounts of data. <br>
ELK, graylog, splunk are all a couple that come to mind. I also suspect you <br>
want audit data correlated with other application information.<br>
<br>
The main issues at scale are log management, searching, and alerting. These <br>
are all problems that one person hacking on spare time can't really achieve <br>
well. If we had a stronger community with more participants, we probably <br>
would have better and nicer tools.<br>
<br>
> The man page read :<br>
>        tcp_max_per_addr<br>
>               This  is  a  numeric  value  which  indicates  how many<br>
> concurrent connections from one IP address is allowed.  The default is 1<br>
> and the maximum is 1024. Setting this too large may allow for a Denial of<br>
> Service attack on  the  log‐ ging  server.  Also  note  that the kernel<br>
> has an internal maximum that will eventually prevent this even if auditd<br>
> allows it by config. The default should be adequate in most cases unless a<br>
> custom written recovery script  runs  to forward unsent events. In this<br>
> case you would increase the number only large enough to let it in too.<br>
> Where could I find an example of recovery script ?<br>
> Could it be a way to inject the audit message in auditd after having<br>
> receiving them via rsyslog ? This might be useful just because, by default<br>
> ausearch in all available logs and the -if parameter accepts only one<br>
> file.<br>
<br>
I think you can inject logs by <br>
<br>
ausearch --start XXX --raw | audisp-remote<br>
<br>
<br>
> Maybe my lack of knowledge about auditd leads me to write rubbish.<br>
> If so, please direct me to where I can find how to manage and use audit<br>
> logs after centralizing them. Not only keeping them but  acutually using<br>
> them.<br>
<br>
There may be others in the community that can offer some insight here.<br>
<br>
-Steve<br>
<br>
<br>
<br>
--<br>
Linux-audit mailing list<br>
<a href="mailto:Linux-audit@redhat.com" target="_blank">Linux-audit@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/linux-audit" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/linux-audit</a></blockquote></div>