Use Logparser to extract information from a remote server application event log.

I was recently extracting information from an application event log for a particular issue.  Using Logparser made it very simple to just get what I needed.  Hope this helps.

'Extracts information for 'mydomain.com' and puts in a file called filename.csv

LogParser "SELECT SourceName,TimeGenerated,TimeWritten,Message INTO filename.csv FROM \ServerApplication where Message Like '%mydomain.com%'" -o:CSV

2 thoughts on “Use Logparser to extract information from a remote server application event log.”

  1. HI i’m using the same process to get eventlogs from remote servers but i don’t know how to perform it on a server that’s not in my domain, how can i specify username and password to connect to this server?

    thanks for help

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: