Logging Tip

Logging Tip

Postby wquatan » 24.02.2013, 12:33

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
wquatan
 
Posts: 40
Joined: 11.02.2013, 00:03

Re: Logging Tip

Postby WSUSUpdateAdmin » 24.02.2013, 19:36

Hi.

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

:?:
RTW
WSUSUpdateAdmin
Administrator
 
Posts: 2245
Joined: 07.07.2009, 14:38

Re: Logging Tip

Postby wquatan » 24.02.2013, 20:16

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
wquatan
 
Posts: 40
Joined: 11.02.2013, 00:03


Return to Anregungen / Suggestions

Who is online

Users browsing this forum: No registered users and 38 guests