<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)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Aptos;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Aptos",sans-serif;
mso-ligatures:standardcontextual;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Aptos",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:11.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
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="EN-US" link="#467886" vlink="#96607D" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi All,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am using 2 syslog servers on version 3.31. The devices are sending syslog message to 1<sup>st</sup> syslog server. The 1<sup>st</sup> syslog server is forwarding the same message to 2<sup>nd</sup> syslog server.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Device <span style="font-family:Wingdings">à</span> Syslog Server 1
<span style="font-family:Wingdings">à</span> Syslog Server 2<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The configurations of 1<sup>st</sup> syslog server -<o:p></o:p></p>
<p class="MsoNormal"><b>Options -<o:p></o:p></b></p>
<p class="MsoNormal">keep-hostname(yes);<o:p></o:p></p>
<p class="MsoNormal">use-dns(yes);<o:p></o:p></p>
<p class="MsoNormal">use-fqdn(yes);<o:p></o:p></p>
<p class="MsoNormal"><span style="mso-ligatures:none"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="mso-ligatures:none">Destination - <o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="mso-ligatures:none">destination d_sec { udp("IP_of_second_syslog" port(514) template("${ISODATE} ${HOST} ${PRIORITY} ${MSG}\n") template-escape(no)); };<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-ligatures:none"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-ligatures:none">The configuration of 2<sup>nd</sup> syslog server –
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-ligatures:none"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-ligatures:none">destination d_syslogFile { file("/var/log/syslog.log" template("${R_ISODATE} ${HOST} ${PRIORITY} ${FACILITY} ${PROGRAM} ${MSG}\n") template-escape(no)); };<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-ligatures:none"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="mso-ligatures:none">Problem – <o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span style="mso-ligatures:none"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><span style="mso-ligatures:none">When the syslog message is getting logged at 2<sup>nd</sup> Syslog server, the ${PRIORITY} of the message is always “notice”. And the original severity/priotity of the message is getting captured in the
${PROGRAM} macro. <o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-ligatures:none">How to capture the priority of the forwarded message on 2<sup>nd</sup> Syslog server in the ${PRIORITY} macro instead of ${PROGRAM} macro?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-ligatures:none"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-ligatures:none">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-ligatures:none">Shivani Maurya<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>