Page 1 of 1

Logging Tip

PostPosted: 24.02.2013, 12:33
by wquatan
To get quickly the Errors/Warnings out of the download.log, proceed as follows

- download http://ferguson.home.xs4all.nl/freeware/filter50.zip and unzip it into \LOG
- create \LOG\logfilter.bat containing
Code: Select all
@echo off
filter.exe <download.log >attention.tmp /G* " Error:"
filter.exe <download.log >>attention.tmp /G* " Warning:"
sort <attention.tmp >attention.log
del *.tmp /Q

- execute \LOG\logfilter.bat from the command-prompt

The result is \LOG\attention.log containing all errors and warnings

Re: Logging Tip

PostPosted: 24.02.2013, 19:36
by WSUSUpdateAdmin
Hi.

Thanks, but what about
Code: Select all
findstr "Warning" download.log

:?:
RTW

Re: Logging Tip

PostPosted: 24.02.2013, 20:16
by wquatan
Nothing wrong with findstr, just a matter of being used to use filter.exe as findstr wasn't available before Win2000

This gives the same result

Code: Select all
@echo off
findstr " Error:" download.log >attention.tmp
findstr " Warning:" download.log >>attention.tmp
sort <attention.tmp >attention.log
del *.tmp /Q

In this topic, the WOW is the most important thing, and even better would be if done in wsusoffline