<div dir="ltr"><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">As for logformat if I knew where this was coming from I wouldn’t have to
 rotate logs - I’d just kill the logging. LDAP is only used in my 
application (within PHP) not on the server itself (which is using it as a
 different login with lighttpd).</blockquote><div>Ahh, that makes sense.<br><br></div><div>-> Jake<br></div><div> </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Dec 3, 2013 at 11:41 AM, Ryan Coleman <span dir="ltr"><<a href="mailto:ryanjcole@me.com" target="_blank">ryanjcole@me.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><div class="im"><div>On Dec 3, 2013, at 11:32 AM, Jake Vath <<a href="mailto:jake.vath@gmail.com" target="_blank">jake.vath@gmail.com</a>> wrote:</div>
<br><blockquote type="cite"><div dir="ltr"><div><div>I guess, what I was saying might not have been clear.<br><br></div>If you used <i>rotatelogs</i> (or something to rotate the logs), wouldn't that move <i>some_log_file.log</i> to <i>some_log_file.log.1</i> and recreate <i>some_log_file.log?</i></div>

<div>Then your scripts could remove <i>some_log_file.log.1</i>, which would create a new file descriptor that references the newly created inode for <i>some_log_file.log.<br></i></div><div>When you delete <i>some_log_file.log.1</i> wouldn't that free up that file descriptor and the inode which was referenced?<br>

</div><div>Wouldn't this force an update of the available inodes in the file table?<br></div></div></blockquote><div><br></div></div>Yes, I believe so. But I haven’t been using rotatelogs at all so… I wouldn’t know (even on my production servers - I have massive storage for log files I’ve always compressed them once a year and burned them to multiple media types for archiving).</div>
<div><br></div><div>As for logformat if I knew where this was coming from I wouldn’t have to rotate logs - I’d just kill the logging. LDAP is only used in my application (within PHP) not on the server itself (which is using it as a different login with lighttpd).<div class="im">
<br><br><blockquote type="cite"><div dir="ltr"><div>Using  <i>rotatelogs or </i>Apache's <i>graceful</i> restart option should be different than just running  <i>$ :> some_log_file.log </i>or<i> $ cat /dev/null > some_log_file.log</i>, </div>
<div>
as both of those options retain the current inode in use.<i><br></i></div><div>However, I'm not entirely certain how either <i>rotatelogs or </i>Apache's <i>graceful</i> restart option handles file descriptors/inodes.<br>

</div><div>I should probably go read some man pages...<br></div><div><br></div><div>Anyone? Am I <i>way </i>off in my thinking?<br></div><div><br></div><div>-> Jake<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">

On Tue, Dec 3, 2013 at 10:51 AM, Jake Vath <span dir="ltr"><<a href="mailto:jake.vath@gmail.com" target="_blank">jake.vath@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div dir="ltr"><div><div>Could you use <i>graceful-restart </i>or <i>rotatelogs</i> to take care of this?<br></div>I'm not sure that either of those would update any inodes though.<br><br></div><div>Alternately, would you be able to edit the <i>LogFormat </i>to not include that information, in the log file, for the time being?<span><font color="#888888"><br>


</font></span></div><span><font color="#888888"><div><br></div><div>-> Jake<br></div></font></span></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Dec 3, 2013 at 10:44 AM, Ryan Coleman <span dir="ltr"><<a href="mailto:ryanjcole@me.com" target="_blank">ryanjcole@me.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I’ll take a look, thanks!<br>
<div>On Dec 3, 2013, at 10:36 AM, Jeremy MountainJohnson <<a href="mailto:jeremy.mountainjohnson@gmail.com" target="_blank">jeremy.mountainjohnson@gmail.com</a>> wrote:<br>
<br>
> wipe and srm are possibilities too; although I would think there would<br>
> be a better solution to this.<br>
<br>
</div><div>_______________________________________________<br>
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota<br>
<a href="mailto:tclug-list@mn-linux.org" target="_blank">tclug-list@mn-linux.org</a><br>
<a href="http://mailman.mn-linux.org/mailman/listinfo/tclug-list" target="_blank">http://mailman.mn-linux.org/mailman/listinfo/tclug-list</a><br>
</div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
_______________________________________________<br>TCLUG Mailing List - Minneapolis/St. Paul, Minnesota<br><a href="mailto:tclug-list@mn-linux.org" target="_blank">tclug-list@mn-linux.org</a><br><a href="http://mailman.mn-linux.org/mailman/listinfo/tclug-list" target="_blank">http://mailman.mn-linux.org/mailman/listinfo/tclug-list</a><br>
</blockquote></div></div><br></div><br>_______________________________________________<br>
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota<br>
<a href="mailto:tclug-list@mn-linux.org">tclug-list@mn-linux.org</a><br>
<a href="http://mailman.mn-linux.org/mailman/listinfo/tclug-list" target="_blank">http://mailman.mn-linux.org/mailman/listinfo/tclug-list</a><br>
<br></blockquote></div><br></div>