<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>This was dumb user error.&nbsp;</div><div><br></div><div>I'm glad to report the create_dir function works as expected.&nbsp;<br><br>Sent from my iPad</div><div><br>On Aug 21, 2014, at 9:08 PM, Jim Hendrick &lt;<a href="mailto:jrhendri@roadrunner.com">jrhendri@roadrunner.com</a>&gt; wrote:<br><br></div><blockquote type="cite"><div><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><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. &nbsp;And you won't see it unless you unmount the NFS piece.</div><div>Anyway that'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><br><br>-------- Original message --------<br>From: "AVELING, BEN (BEN)" &lt;<a href="mailto:ben.aveling@alcatel-lucent.com">ben.aveling@alcatel-lucent.com</a>&gt; <br>Date:08/21/2014  6:33 PM  (GMT-05:00) <br>To: Syslog-ng users' and developers' mailing list &lt;<a href="mailto:syslog-ng@lists.balabit.hu">syslog-ng@lists.balabit.hu</a>&gt; <br>Cc:  <br>Subject: Re: [syslog-ng] create_dir and "dynamic" destinations. <br><br>
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Permissions problem? Is anything &nbsp;reported in syslog-ng’s own logs?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Regards, Ben<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></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">syslog-ng-bounces@lists.balabit.hu</a> [<a href="mailto:syslog-ng-bounces@lists.balabit.hu">mailto: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' and developers' mailing list<br>
<b>Subject:</b> Re: [syslog-ng] create_dir and "dynamic" destinations.<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p>I use this same config and work very well.<o:p></o:p></p>
<div>
<p class="MsoNormal">Em 21/08/2014 16:44, "Balazs Scheidler" &lt;<a href="mailto:bazsi77@gmail.com">bazsi77@gmail.com</a>&gt; escreveu:<o:p></o:p></p>
<p>Hmm it should create the entire path.<o:p></o:p></p>
<div>
<p class="MsoNormal">On Aug 20, 2014 5:16 PM, "Scot Needy" &lt;<a href="mailto:scotrn@gmail.com" target="_blank">scotrn@gmail.com</a>&gt; wrote:<o:p></o:p></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>
&nbsp; &nbsp; &nbsp; &nbsp; 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><o:p></o:p></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>
<o:p></o:p></p>
</div>
</div>


</div></blockquote><blockquote type="cite"><div><span>______________________________________________________________________________</span><br><span>Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a></span><br><span>Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng">http://www.balabit.com/support/documentation/?product=syslog-ng</a></span><br><span>FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq">http://www.balabit.com/wiki/syslog-ng-faq</a></span><br><span></span><br></div></blockquote></body></html>