
<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Logs &#8211; Mark&#039;s Website</title>
	<atom:link href="https://kram.nz/tag/logs/feed/" rel="self" type="application/rss+xml" />
	<link>https://kram.nz</link>
	<description>Solution Architect - Healthcare IT</description>
	<lastBuildDate>Sat, 13 Jan 2018 07:48:38 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.3</generator>

<image>
	<url>https://kram.nz/wp-content/uploads/2016/04/cropped-M-32x32.png</url>
	<title>Logs &#8211; Mark&#039;s Website</title>
	<link>https://kram.nz</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Apache Log Notifications in Linux</title>
		<link>https://kram.nz/2009/06/apache-log-notifications-in-linux/</link>
					<comments>https://kram.nz/2009/06/apache-log-notifications-in-linux/#respond</comments>
		
		<dc:creator><![CDATA[M]]></dc:creator>
		<pubDate>Sun, 14 Jun 2009 01:51:54 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Logs]]></category>
		<category><![CDATA[Notifications]]></category>
		<category><![CDATA[NotifyOSD]]></category>
		<category><![CDATA[Tail]]></category>
		<guid isPermaLink="false">https://kram.no-ip.com?p=96</guid>

					<description><![CDATA[I have a small personal website, as you can see, that gets the odd visitor now and then. This makes me happy! so I like to know about it. There are plenty of statistic gathering scripts like Google Analytics that generate excellent aggregate data, but for my scale of website I prefer a more fine-grain [&#8230;]]]></description>
										<content:encoded><![CDATA[<figure id="attachment_99" aria-describedby="caption-attachment-99" style="width: 329px" class="wp-caption alignright"><img loading="lazy" class="size-full wp-image-99" title="ApacheLogNotifier" src="/wp-content/uploads/2009/06/ApacheLogNotification.png" alt="A NotifyOSD notification of log activity" width="329" height="138" srcset="https://kram.nz/wp-content/uploads/2009/06/ApacheLogNotification.png 329w, https://kram.nz/wp-content/uploads/2009/06/ApacheLogNotification-300x125.png 300w" sizes="(max-width: 329px) 100vw, 329px" /><figcaption id="caption-attachment-99" class="wp-caption-text">A NotifyOSD notification of log activity</figcaption></figure>
<p>I have a small personal website, as you can see, that gets the odd visitor now and then. This makes me happy! so I like to know about it. There are plenty of statistic gathering scripts like Google Analytics that generate excellent aggregate data, but for my scale of website I prefer a more fine-grain monitoring. I use BBClone for this and it does an awesome job. Other than wishing it had the option for a SQL back-end, I always thought it would be great to have a real time notification of someone paying a visit.</p>
<p>Thus my java ApacheLogNotifier was born!</p>
<p>Using Java and Ubuntus port of NotifyOSD via the notification demon, I have created a small program to poll the tail of my Apache log and notify me whenever there is interesting activity. At the moment I ignoring localhost and bots, so that I can see if an actual person has just come to visit my website. There is a lot of work and refactoring to be done. My initial prototype is just a rushed couple of hours work (thanks to reusing the tail code from <a title="http://www.informit.com/guides/content.aspx?g=java&amp;seqNum=226" target="_blank" rel="noopener noreferrer nofollow" href="http://www.informit.com/guides/content.aspx?g=java&amp;seqNum=226">http://www.informit.com/guides/content.aspx?g=java&amp;seqNum=226</a>).</p>
<p>For more information and to get the code look at <a target="_blank" href="/wiki/index.php/2008:ApacheLogNotifier">the wiki page</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://kram.nz/2009/06/apache-log-notifications-in-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
