Link to home
Start Free TrialLog in
Avatar of bsharath
bsharathFlag for India

asked on

How can i search for a particular event log in all the machines in the file and get the results to a file

Hi,

How can i search for a particular event log in all the machines in the file and get the results to a file.

Is there a way to do this.

Regards
Sharath
Avatar of jordibartrina
jordibartrina

You can export all events to a flat file, like .csv, .txt. Merge all and filter with some text editor. It's possible to automate this procedure with a little script.

Don't hesitate contact again for any question
ASKER CERTIFIED SOLUTION
Avatar of Farhan Kazi
Farhan Kazi
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks Sharath,

Little amendment in my above statement.

WMIC /NODE:@"Computers.txt" /OUTPUT:C:\EventsOutput.txt NTEVENT WHERE "EventCode='517'" GET /FORMAT:LIST         ^--- enclose file name inside double quotes.
Avatar of bsharath

ASKER

Farhan without the "" also i was able to get the results...
Yes, but if filename contains any space then it will generate an error.
Ok Farhan thanks...