<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 12 (filtered medium)">
<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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</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=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal>Greetings,<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I am trying to accomplish something and am requiring some assistance.
I have custom logs that write needed output to this directory:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>/production/server/20070822/xxxx.log<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>This log file rotates every day so the next date will be
20070823 and so on.<o:p></o:p></p>
<p class=MsoNormal>How can I direct a custom destination file to log remotely
that log file to the central server and have it pick it up everyday?<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>So for example . . . I have a central syslog server that
writes all its input to /remote/logs/<date>/<HOST><o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>On the server sending the remote logs I have this parameter:
destination { file(“/production/server/$YYYY$MM$DD/xxxx.log”);
};<o:p></o:p></p>
<p class=MsoNormal>For some reason I think its not working properly due to the
$DATE variables, I tried also using % to no avail. All the necessary logs
do log remotely as I wish them to.<o:p></o:p></p>
<p class=MsoNormal>Is this the proper way to configure this scenario?<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>What I want to do is log the custom logging @ xxxx.log to
the correct server $hostname on the central server<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>This would be the idea:<o:p></o:p></p>
<p class=MsoNormal>Custom.log -> local syslog-ng -> central-syslog-ng
-> /remote/logs/<date>/<HOST><o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I am currently logging all the servers logging locally and
remotely, but I cannot get syslog-ng to log that custome log file to the remote
server.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I hope this makes sense!<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Thanks.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Regards, Corey M. Bobb<o:p></o:p></p>
<p class=MsoNormal>Data Center Manager<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>850 South Concourse<o:p></o:p></p>
<p class=MsoNormal>Suite 150<o:p></o:p></p>
<p class=MsoNormal>Maitland, FL 32751<o:p></o:p></p>
<p class=MsoNormal>D: 321.445-2150<o:p></o:p></p>
<p class=MsoNormal>M: 321-262-2845<o:p></o:p></p>
<p class=MsoNormal>F: 407.333.7701<o:p></o:p></p>
<p class=MsoNormal>cbobb@cygnus.com <o:p></o:p></p>
<p class=MsoNormal>www.cygnus.com<o:p></o:p></p>
<p class=MsoNormal> <o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>