<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 01/07/2020 16:03, Pierrick CHOVELON
via Pdns-users wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAHzjrsshtgkZjvp3L8e4NNGAyRXa1D-8QvBxNf_EpUN=Z4ZM9A@mail.gmail.com">
<div>I'm running a <span class="gmail-il">powerdns</span>-recursor
server and I configured the syslog part to log into the facility
5.<br>
</div>
<div>I used the default configuration with the tree files and put
them in /var/log/pdns : <br>
<pre><span><a href="http://local5.info" target="_blank" moz-do-not-send="true">local5.info</a> -/var/log/pdns/<a href="http://pdns.info" target="_blank" moz-do-not-send="true">pdns.info</a>
local5.warn -/var/log/pdns/pdns.warn
local5.err /var/log/pdns/pdns.err
<span style="font-family:arial,sans-serif"></span></span></pre>
<font face="arial,sans-serif">It works well.</font></div>
<div><font face="arial,sans-serif">However I can see that <a
href="http://pdns.info" target="_blank"
moz-do-not-send="true">pdns.info</a> and pdns.warn are
almost identical, both around 7.9Mo.</font></div>
<div>
<div>A <span style="font-family:monospace">diff</span> shows
very few lines in thoses 7.9Mo files, like 20 or something
like that.<br>
</div>
</div>
<div>I think this is not useful to have two files almost
identical.</div>
<div><br>
</div>
<div>Did I miss something ?</div>
</blockquote>
<p>Yes :-)<br>
</p>
<p>local5.=info<br>
local5.=warn<br>
local5.err</p>
<p>if you want *only* those levels in those files. Otherwise you get
that level and the levels above too. In other words, without
this, all "warn" and "err" messages will appear in the "info" file
too.</p>
<p>Leave local5.err like it is, so you get higher levels like
critical and emergency too.<br>
</p>
</body>
</html>