<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=iso-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@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:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
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.E-MailFormatvorlage17
        {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 70.85pt 2.0cm 70.85pt;}
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="DE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hello there,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">My syslog-ng is logging fine from 700 servers but a few times per day it is logging into a wrong folder which is created by the $HOST variable.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Normally syslog should use a hostname like host-1.worker.foobar.com but a few times a day it creates a folder names like:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">4.22<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">p6-allrouter?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">p6-localnet<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">p6-mc?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">p6-mcastpref<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">p6-mcastpref?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">host-1.worker.foobar.xcom<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">and other weird names…<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">It only logs one or two lines and then uses the right folder again. Does anyone have a clue where I have to look for the problem?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Here are the option line from the server and the client:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Client:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">@version: 3.3<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">options {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> threaded(yes);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> use_dns(yes);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> use_fqdn(yes);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> dns_cache(yes);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> dns_cache_size(16384);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> dns_cache_expire(3600);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> dns_cache_expire_failed(10);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> log_msg_size(256000);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> log_fifo_size(100000);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> normalize_hostnames(yes);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> check_hostname(yes);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> bad_hostname("^gconfd$");<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> create_dirs(yes);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> owner("root");<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> group("root");<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> perm(0640);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> time_reopen(30);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">};<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Server:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">options {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> threaded(yes);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> owner("root");<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> group("root");<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> perm(0660);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> dir_owner("root");<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> dir_group("root");<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> dir_perm(0770);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> create_dirs(yes);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> chain_hostnames(no);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> normalize_hostnames(yes);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> check_hostname(yes);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> keep_hostname(no);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> use_fqdn(yes);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> dns_cache(yes);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> dns_cache_size(16384);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> dns_cache_expire(3600);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> dns_cache_expire_failed(60);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> log_msg_size(256000);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> log_fifo_size(1000000);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">};<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Destination example:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">destination d_syslog { file("/log/syslog/${R_YEAR}/${R_MONTH}/${R_DAY}/$HOST/$PROGRAM"); };<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:DE">-- <o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:DE">Daniel Neubacher, Network Administrator<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:DE"><a href="mailto:daniel.neubacher@xing.com"><span style="color:blue">daniel.neubacher@xing.com</span></a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:DE"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:DE">XING AG<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:DE">Gaensemarkt 43, 20354 Hamburg, Germany<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:DE">Tel. +49 40 419131-28, Fax +49 40 419131-11<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:DE"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:DE">Commercial Reg. (Registergericht): Amtsgericht Hamburg, HRB 98807
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:DE">Exec. Board (Vorstand): Dr. Stefan Groß-Selbeck (Vorsitzender), Dr. Thomas Vollmoeller, Ingo Chu, Dr. Helmut Becker, Jens Pape
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:DE">Chairman of the Supervisory Board (Aufsichtsratsvorsitzender): Dr. Neil Sunderland<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:DE"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:DE">This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and
destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden and may be unlawful.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
</body>
</html>