<div dir="ltr">Hey Scot,<div>Have your read the FAQ?</div><div><a href="http://campin.net/syslog-ng/faq.html">http://campin.net/syslog-ng/faq.html</a><br></div><div><br></div><div>There&#39;s a relevant section to what you were asking to achieve, just search for </div>
<div>&quot; <a name="bad_filenames" style="color:rgb(0,0,0);font-family:&#39;Times New Roman&#39;;font-size:medium"><li style="display:inline!important"><p style="display:inline!important"><b>Directories with names like &quot;Error&quot;, &quot;SCSI&quot;, &quot;&quot;, are showing up in the directory that holds the syslogs for the different hosts that we monitor. </b></p>
</li></a>&quot;</div><div><br></div><div>I know the title doesn&#39;t seem relevant but the response in that sections is what I used to setup exactly what you were asking, hope that helps.</div><div><br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, Aug 21, 2014 at 6:08 PM, Jim Hendrick <span dir="ltr">&lt;<a href="mailto:jrhendri@roadrunner.com" target="_blank">jrhendri@roadrunner.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div>I would check doing a manual mkdir -p &lt;/some/long/path&gt; as the user specified in the config.</div><div>Then try as root if different.</div><div>Also look at how that file system is mounted. Is it local disk or NFS ?</div>
<div>NFS treats root differently.</div><div>Also I have seen the permissions of the underlying mount point also cause problems. That is rwxr-x--- for the directory on which the NFS is mounted can cause problems for the mounted filesystem.  And you won&#39;t see it unless you unmount the NFS piece.</div>
<div>Anyway that&#39;s what I can think of right off.</div><div>Jim</div><div><br></div><div><br></div><div><br></div><div><div style="font-size:9px;color:#575757">Sent from my Verizon Wireless 4G LTE smartphone</div></div>
<div><div class="h5"><div></div><br><br>-------- Original message --------<br>From: &quot;AVELING, BEN (BEN)&quot; &lt;<a href="mailto:ben.aveling@alcatel-lucent.com" target="_blank">ben.aveling@alcatel-lucent.com</a>&gt; <br>
Date:08/21/2014  6:33 PM  (GMT-05:00) <br>To: Syslog-ng users&#39; and developers&#39; mailing list &lt;<a href="mailto:syslog-ng@lists.balabit.hu" target="_blank">syslog-ng@lists.balabit.hu</a>&gt; <br>Cc:  <br>Subject: Re: [syslog-ng] create_dir and &quot;dynamic&quot; destinations. <br>
<br>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Permissions problem? Is anything  reported in syslog-ng’s own logs?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Regards, Ben<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> <a href="mailto:syslog-ng-bounces@lists.balabit.hu" target="_blank">syslog-ng-bounces@lists.balabit.hu</a> [mailto:<a href="mailto:syslog-ng-bounces@lists.balabit.hu" target="_blank">syslog-ng-bounces@lists.balabit.hu</a>]
<b>On Behalf Of </b>Renato Bezerra<br>
<b>Sent:</b> Friday, 22 August 2014 05:51<br>
<b>To:</b> Syslog-ng users&#39; and developers&#39; mailing list<br>
<b>Subject:</b> Re: [syslog-ng] create_dir and &quot;dynamic&quot; destinations.<u></u><u></u></span></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<p>I use this same config and work very well.<u></u><u></u></p>
<div>
<p class="MsoNormal">Em 21/08/2014 16:44, &quot;Balazs Scheidler&quot; &lt;<a href="mailto:bazsi77@gmail.com" target="_blank">bazsi77@gmail.com</a>&gt; escreveu:<u></u><u></u></p>
<p>Hmm it should create the entire path.<u></u><u></u></p>
<div>
<p class="MsoNormal">On Aug 20, 2014 5:16 PM, &quot;Scot Needy&quot; &lt;<a href="mailto:scotrn@gmail.com" target="_blank">scotrn@gmail.com</a>&gt; wrote:<u></u><u></u></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
<br>
Yes, I have the create-dies() option enabled but that does not seem to work for upper level directories.<br>
<br>
Example:<br>
<br>
Only works if the 192_168_9_0 directory is pre-created.<br>
        destination d_192_168_9_0 { file(/opt/syslog-ng/logs/192_168_9_0/$YEAR/$MONTH/$DAY/$HOST.log);};<br>
<br>
<br>
<br>
On Aug 20, 2014, at 7:24 AM, Fabien Wernli &lt;<a href="mailto:wernli@in2p3.fr" target="_blank">wernli@in2p3.fr</a>&gt; wrote:<br>
<br>
&gt; Hi Scot,<br>
&gt;<br>
&gt; You have the `create-dirs()` option for that:<br>
&gt;<br>
&gt; <a href="http://www.balabit.com/sites/default/files/documents/syslog-ng-ose-3.5-guides/en/syslog-ng-ose-v3.5-guide-admin/html-single/index.html#idp4490112" target="_blank">
http://www.balabit.com/sites/default/files/documents/syslog-ng-ose-3.5-guides/en/syslog-ng-ose-v3.5-guide-admin/html-single/index.html#idp4490112</a><br>
&gt;<br>
&gt; ______________________________________________________________________________<br>
&gt; Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">
https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
&gt; Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">
http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
&gt; FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
&gt;<br>
<br>
______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">
https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">
http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">
https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">
http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
<br>
<u></u><u></u></p>
</div>
</div>


</div></div></div><br>______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
<br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><i><font face="tahoma, sans-serif">Nullius In Verba</font></i>
</div>