<?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>O tym jak internet popsułem… &#187; Eventlog</title>
	<atom:link href="http://www.arabek.net/tag/eventlog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.arabek.net</link>
	<description>i inne bajki.</description>
	<lastBuildDate>Fri, 30 Dec 2011 08:46:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Eventlog rotator for Windows</title>
		<link>http://www.arabek.net/eventlog-rotator-for-windows/</link>
		<comments>http://www.arabek.net/eventlog-rotator-for-windows/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 15:13:14 +0000</pubDate>
		<dc:creator>arab</dc:creator>
				<category><![CDATA[Wpisy]]></category>
		<category><![CDATA[Eventlog]]></category>
		<category><![CDATA[log parser]]></category>
		<category><![CDATA[logrotator]]></category>
		<category><![CDATA[Secevent]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.arabek.net/?p=87</guid>
		<description><![CDATA[Well not exactly, but close&#8230; Here&#8217;s the deal: i&#8217;ve been assigned a task, to figure out a way to rotate security logs on a Windows server, which has leveraged auditing policies. Problem: Eventlog retention mechanism under Windows does not allow &#8230; <a href="http://www.arabek.net/eventlog-rotator-for-windows/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Well not exactly, but close&#8230;</p>
<p>Here&#8217;s the deal: i&#8217;ve been assigned a task, to figure out a way to rotate security logs on a Windows server, which has leveraged auditing policies.</p>
<p>Problem: Eventlog retention mechanism under Windows does not allow for creating new log files when the current logfile grows to a certain limit (which is plain stupid and short-sighted). Windows built in mechanism can only overwrite the oldest entries with newer ones if the logfile size limit has been reached.</p>
<p>After some extensive googling, i finally stumbled upon <a href="http://userssuck.com/2007/03/20/windows-logging/">one blog entry</a> that has put me on the right track. Microsoft does have a tool for parsing the binary logfiles (and not only that, but you&#8217;ll have to figure it out by yourself), using SQL format queries as commands. It&#8217;s called &#8222;Log Parser&#8221; (how obvious!), and is featured <a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&#038;FamilyID=890cd06b-abf8-4c25-91b2-f8d975cf8c07">here</a>.</p>
<p>I&#8217;ve downloaded the tool and started playing with VBScript (damn you Microsoft for not adopting Bash) and Log Parser, to get the desired result. I won&#8217;t go into details, as the file posted below is pretty self-explanatory (and well commented too).</p>
<p>Anyway, here&#8217;s <a href="http://www.arabek.net/files/secevent-parser.tar.gz">&#8222;the result&#8221;</a> (it&#8217;s a gzipped/tared vbscript, some antiviruses might go crazy &#8217;bout it).</p>
<p>Enjoy!</p>
<p>P.S. I&#8217;ve yet to add a zipping function to it.<br />
P.S.(2) It&#8217;s my first VBScript batch, please don&#8217;t laugh. Thank you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.arabek.net/eventlog-rotator-for-windows/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 1/6 queries in 0.003 seconds using disk: basic
Object Caching 247/250 objects using disk: basic
Content Delivery Network via www.arabek.net

Served from: www.arabek.net @ 2012-02-07 04:57:49 -->
