<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>DIYMacServer &#187; Tag: Log - Recent Posts</title>
<link>http://diymacserver.com/forum/</link>
<description>DIYMacServer &#187; Tag: Log - Recent Posts</description>
<language>en</language>
<pubDate>Tue, 07 Feb 2012 07:07:19 +0000</pubDate>

<item>
<title>Richard on "AWStats"</title>
<link>http://diymacserver.com/forum/topic/awstats#post-224</link>
<pubDate>Wed, 22 Nov 2006 06:33:11 +0000</pubDate>
<dc:creator>Richard</dc:creator>
<guid isPermaLink="false">224@http://diymacserver.com/forum/</guid>
<description>&#60;p&#62;jstubbs EscribiÃƒÂ³:&#60;/p&#62;&#60;blockquote&#62;Don't know your country, but it's a long holiday weekend and I'll be leaving Wednesday evening and won't be back till Sunday. Sorry.&#60;/blockquote&#62;&#60;br /&#62;
OT: Why should you be sorry for having a long weekend off, I envy you for that ;-)</description>
</item>
<item>
<title>jstubbs on "AWStats"</title>
<link>http://diymacserver.com/forum/topic/awstats#post-222</link>
<pubDate>Wed, 22 Nov 2006 05:48:13 +0000</pubDate>
<dc:creator>jstubbs</dc:creator>
<guid isPermaLink="false">222@http://diymacserver.com/forum/</guid>
<description>&#60;p&#62;kbeeby EscribiÃƒÂ³:&#60;/p&#62;&#60;blockquote&#62;Is there a how to compile AWStats for OS X you could share&#60;/blockquote&#62;&#60;br /&#62;
&#60;br /&#62;
I'll have to get back to you on this. I lost my install notes when the disk crashed on  my home machine before I printed them (shoots self in foot). However, I just  checked the mail server and the .bash_history file still covers the AWStats install. Also, I dumped the AWStats configure script output to a text file, so I should be able to reconstruct what I did. &#60;br /&#62;
&#60;br /&#62;
IIRC, it wasn't a difficult install and the install script does most of the heavy lifting. The PITA was modifying the config file to read mail log instead of web logs. A lot of hunting for lines to change, though there is a template to tell you what to change. Depending on your usage, you can have both mail and web config files to access both log files.&#60;br /&#62;
&#60;br /&#62;
Don't know your country, but it's a long holiday weekend and I'll be leaving Wednesday evening and won't be back till Sunday. Sorry.</description>
</item>
<item>
<title>kbeeby on "AWStats"</title>
<link>http://diymacserver.com/forum/topic/awstats#post-218</link>
<pubDate>Tue, 21 Nov 2006 23:02:00 +0000</pubDate>
<dc:creator>kbeeby</dc:creator>
<guid isPermaLink="false">218@http://diymacserver.com/forum/</guid>
<description>Is there a how to compile AWStats for OS X you could share?&#60;br /&#62;
&#60;br /&#62;
Keith</description>
</item>
<item>
<title>jstubbs on "AWStats"</title>
<link>http://diymacserver.com/forum/topic/awstats#post-129</link>
<pubDate>Fri, 06 Oct 2006 03:18:46 +0000</pubDate>
<dc:creator>jstubbs</dc:creator>
<guid isPermaLink="false">129@http://diymacserver.com/forum/</guid>
<description>Just got done installing AWStats. Primary usage is for web logs, but it can be switched to analyzing mail logs. Installation was pretty straight forward. Of course, I only had about a half days worth of mail log, but the graphs look pretty.  ;-)&#60;br /&#62;
&#60;br /&#62;
Still got one problem to solve, getting the update function to run before rotating mail logs. Might have to un-modify periodic's daily command.&#60;br /&#62;
&#60;br /&#62;
Will advise which course I take.</description>
</item>
<item>
<title>jstubbs on "Mail log rotation"</title>
<link>http://diymacserver.com/forum/topic/mail-log-rotation#post-105</link>
<pubDate>Mon, 25 Sep 2006 18:40:38 +0000</pubDate>
<dc:creator>jstubbs</dc:creator>
<guid isPermaLink="false">105@http://diymacserver.com/forum/</guid>
<description>&#60;p&#62;richard5 EscribiÃƒÂ³:&#60;/p&#62;&#60;blockquote&#62;Jeff, be carefull. if I remember correctly the original cron files might be overwritten by a software update. It's better to copy the original and put the additional jobs there. &#60;br /&#62;
&#60;br /&#62;
Don't  have any evidence to support this at the moment. Will dig deeper...&#60;/blockquote&#62;&#60;br /&#62;
&#60;br /&#62;
I agree, modifying any Apple supplied process is a known risk. This hint has worked for me from Jaguar (10.2) on, and has survived the minor updates along the way.&#60;br /&#62;
&#60;br /&#62;
With Tiger, I was worried about cron moving under launchd's control, but it seems to not have been affected.&#60;br /&#62;
&#60;br /&#62;
I guess you could create another cron process, that would only run Monday to Saturday, to rotate the mail log. Then the weekly periodic script would rotate the log on Sundays.</description>
</item>
<item>
<title>Richard on "Mail log rotation"</title>
<link>http://diymacserver.com/forum/topic/mail-log-rotation#post-92</link>
<pubDate>Mon, 25 Sep 2006 06:30:03 +0000</pubDate>
<dc:creator>Richard</dc:creator>
<guid isPermaLink="false">92@http://diymacserver.com/forum/</guid>
<description>Jeff, be carefull. if I remember correctly the original cron files might be overwritten by a software update. It's better to copy the original and put the additional jobs there. &#60;br /&#62;
&#60;br /&#62;
Don't  have any evidence to support this at the moment. Will dig deeper...</description>
</item>
<item>
<title>jstubbs on "Mail log rotation"</title>
<link>http://diymacserver.com/forum/topic/mail-log-rotation#post-91</link>
<pubDate>Mon, 25 Sep 2006 04:58:14 +0000</pubDate>
<dc:creator>jstubbs</dc:creator>
<guid isPermaLink="false">91@http://diymacserver.com/forum/</guid>
<description>Here's one hint that I use to keep my mail logs under control. The way the periodic commands are set up, the mail logs are only rotated on a weekly basis. In my case, that resulted in extremely _large_ mail logs. Taking a hint from &#60;em&#62;serversolutions&#60;/em&#62; at the afp548.com site, I modified my periodic commands.&#60;br /&#62;
&#60;br /&#62;
Open /private/etc/periodic/daily/500.daily in your favorite text editor. Look at line 97.&#60;br /&#62;
&#60;p&#62;&#60;code&#62;for i in system.log; do&#60;/code&#62;&#60;/p&#62;&#60;br /&#62;
Modify this line to read:&#60;br /&#62;
&#60;p&#62;&#60;code&#62;for i in system.log mail.log; do&#60;/code&#62;&#60;/p&#62;&#60;br /&#62;
Then save the file.&#60;br /&#62;
&#60;br /&#62;
Then open /private/etc/periodic/weekly500.weekly. Line 35 is the one that needs modified, change it from&#60;br /&#62;
&#60;p&#62;&#60;code&#62;for i in &#60;a href=&#34;http://ftp.log&#34; rel=&#34;nofollow&#34;&#62;http://ftp.log&#60;/a&#62; lookupd.log lpr.log mail.log netinfo.log hwmond.log ipfw.log ppp.log secure.log; do&#60;/code&#62;&#60;/p&#62;to&#60;br /&#62;
&#60;p&#62;&#60;code&#62;for i in &#60;a href=&#34;http://ftp.log&#34; rel=&#34;nofollow&#34;&#62;http://ftp.log&#60;/a&#62; lookupd.log lpr.log netinfo.log hwmond.log ipfw.log ppp.log secure.log; do&#60;/code&#62;&#60;/p&#62;&#60;br /&#62;
Now your mail log will be rotated on a daily basis.&#60;br /&#62;
&#60;br /&#62;
I keep meaning to write a shell script to automatically move the oldest mail log to a central archive location, but never get around to it. It could actually be embedded in the 500.daily file to save the oldest log daily.</description>
</item>
<item>
<title>Richard on "Where should the Apache logfiles reside ?"</title>
<link>http://diymacserver.com/forum/topic/where-should-the-apache-logfiles-reside#post-50</link>
<pubDate>Mon, 21 Aug 2006 20:43:27 +0000</pubDate>
<dc:creator>Richard</dc:creator>
<guid isPermaLink="false">50@http://diymacserver.com/forum/</guid>
<description>As talked about in &#60;a href=&#34;http://switch.richard5.net/2006/08/21/rotating-your-apache-logfiles/&#34;&#62;the blogpost&#60;/a&#62; about my discoveries and the rotating logfiles script. Please let me know your thoughts on this. I would think you need to put the logfiles in /var/log as any unix sysadmin will tell you.</description>
</item>

</channel>
</rss>

