This compresses the dumped events logs down to a manageable size. I managed to get a 60 MB log file that I generated during varying testing phases down to just over 6 MB. I also managed to get 480 KB of log files down to 14kb. At this point, you should have a BOB-SERVER-2007-01-03.zip file which includes your three event logs and your md5 file.<\/p>\n
del %outputname%.sec
\ndel %outputname%.app
\ndel %outputname%.sys
\ndel %outputname%.md5<\/p><\/blockquote>\n
This section cleans up the files outside of the zip. I manage to get these files down 90% in size I don’t need these to eat up extra space.<\/p>\n
What do you do now?<\/p>\n
From here I would add a line at the end to move the logs to another server where you can store them for the length your organization deems necessary. To help combat the MD5 re-engineering I mentioned above I would copy the compressed archived to two locations on your network. This will help make having an MD5 meaningful. Another option is adding a script that e-mails you the MD5 hash so you have it saved for reference. Having the MD5 and collecting 2 days of information from the logs would mean an attacker may have to edit 2-4 archives and regenerate MD5s for them – double that if you store a second set of archives in another location.<\/p>\n
While this may fulfill your needs for log file capturing and an easy way to store them, it does not address the fact of easy log file auditing and tracking down events. There are all-in-one solutions out there for you to use and I don’t say in any terms this is a solution to those. You need to address your own needs and decide what works for you. This is to give you some time until you decide what you are going to do.<\/p>\n","protected":false},"excerpt":{"rendered":"
So your company has a requirement to maintain log files for a year? You don’t know how to go about it and you need to implement it now? I have a solution for you and …<\/p>\n","protected":false},"author":1,"featured_media":97594,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"_links":{"self":[{"href":"http:\/\/10.10.2.102\/creevacom\/index.php\/wp-json\/wp\/v2\/posts\/2380"}],"collection":[{"href":"http:\/\/10.10.2.102\/creevacom\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/10.10.2.102\/creevacom\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/10.10.2.102\/creevacom\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/10.10.2.102\/creevacom\/index.php\/wp-json\/wp\/v2\/comments?post=2380"}],"version-history":[{"count":0,"href":"http:\/\/10.10.2.102\/creevacom\/index.php\/wp-json\/wp\/v2\/posts\/2380\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/10.10.2.102\/creevacom\/index.php\/wp-json\/wp\/v2\/media\/97594"}],"wp:attachment":[{"href":"http:\/\/10.10.2.102\/creevacom\/index.php\/wp-json\/wp\/v2\/media?parent=2380"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/10.10.2.102\/creevacom\/index.php\/wp-json\/wp\/v2\/categories?post=2380"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/10.10.2.102\/creevacom\/index.php\/wp-json\/wp\/v2\/tags?post=2380"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}