<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Trebuchet MS";
panose-1:2 11 6 3 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
span.StileMessaggioDiPostaElettronica17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="IT" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi all,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">on Centos 8 I’m trying to configure dnsdist to write logs to disk, in the documentation I found that I have to fix the systemd file and set Syslog Facility in pdns so I made this changes:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">/usr/lib/systemd/system/dnsdist.service<o:p></o:p></p>
<p class="MsoNormal"> ExecStart=/usr/bin/dnsdist -u dnsdist -g dnsdist –supervised<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">systemctl daemon-reload<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">mkdir /var/log/dnsdist<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">/etc/rsyslog.d/dnsdist.conf<o:p></o:p></p>
<p class="MsoNormal"> local0.* -/var/log/dnsdist/dnsdist-info.log<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">/etc/dnsdist/dnsdist.conf<o:p></o:p></p>
<p class="MsoNormal"> setSyslogFacility(0)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">systemctl restart rsyslog<o:p></o:p></p>
<p class="MsoNormal">systemctl restart dnsdist<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">But no .log files are written to disk, I see only dnsdist logs in /var/log/messages<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Someone is using rsyslog or can help me identifying what’s wrong?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks to all!<br>
Simone<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#1F497D;mso-fareast-language:IT">----------------------------------------------<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#1F497D;mso-fareast-language:IT"><img width="124" height="25" style="width:1.2916in;height:.2604in" id="Immagine_x0020_1" src="cid:image001.png@01D62EB4.A4D7B7C0" alt="logo_itnet_piccolo"></span><span lang="EN-US" style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:black;mso-fareast-language:IT"> </span><span lang="EN-US" style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#1F497D;mso-fareast-language:IT">
</span><span lang="EN-US" style="mso-fareast-language:IT"><o:p></o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:9.0pt;font-family:"Trebuchet MS",sans-serif;color:#1F497D;mso-fareast-language:IT"> </span></b><b><span lang="EN-US" style="font-size:9.0pt;font-family:"Trebuchet MS",sans-serif;color:#3091D6;mso-fareast-language:IT">
</span></b><b><span lang="EN-US" style="font-size:9.0pt;font-family:"Trebuchet MS",sans-serif;color:#287CCC;mso-fareast-language:IT">SIMONE BECCATO</span></b><span lang="EN-US" style="font-size:9.0pt;font-family:"Times New Roman",serif;color:#287CCC;mso-fareast-language:IT"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:6.0pt"><i><span lang="EN-US" style="font-size:9.0pt;font-family:"Trebuchet MS",sans-serif;color:black;mso-fareast-language:IT"> Cloud Architect</span></i><i><span lang="EN-US" style="font-size:9.0pt;font-family:"Times New Roman",serif;mso-fareast-language:IT"><o:p></o:p></span></i></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:"Trebuchet MS",sans-serif;color:black;mso-fareast-language:IT"> </span><span lang="EN-US" style="font-size:9.0pt;font-family:"Trebuchet MS",sans-serif;color:black;mso-fareast-language:IT"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:"Trebuchet MS",sans-serif;color:black;mso-fareast-language:IT"> <b>ITNET S.r.l.</b></span><span lang="EN-US" style="font-size:9.0pt;font-family:"Times New Roman",serif;mso-fareast-language:IT"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:"Trebuchet MS",sans-serif;color:black;mso-fareast-language:IT"> </span><span style="font-size:9.0pt;font-family:"Trebuchet MS",sans-serif;color:black;mso-fareast-language:IT">Via
del Bosco Rinnovato 8 – Palazzo U4<br>
20090 Assago Milanofiori Nord (MI)</span><span style="color:#1F497D;mso-fareast-language:IT"><o:p></o:p></span></p>
<p class="MsoNormal"><i><span style="font-size:9.0pt;font-family:"Trebuchet MS",sans-serif;color:blue;mso-fareast-language:IT">
<u><a href="http://www.it.net/"><span style="color:blue">www.it.net</span></a></u></span></i><span style="color:#1F497D;mso-fareast-language:IT"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>