Link to home
Start Free TrialLog in
Avatar of Tusas BT
Tusas BTFlag for Türkiye

asked on

Query "application and services logs" with log parser

Hello,
I have a script which collects printing logs from print server using logparser. We have moved our print server to Window 2008 R2. The problem is, I was querying printing logs from System logs (select ... from \\printserver\system), but on 2008 R2, these logs are under "application and services logs\Microsoft\Windows\PrintService\Operational". What must I use at the end of the query (select ..... \\printserver\????) ?
Avatar of Steven Carnahan
Steven Carnahan
Flag of United States of America image

Are you using WMIC to query the log files?

WMIC NTEVENT where "LogFile='application and services' and Type>'0'"

Adjust for what you are looking for.
Avatar of Tusas BT

ASKER

Hello, I am using "log parser", not WMIC.
It appears that either someone else is asking for the same information or this is also you on http://forums.iis.net/1140.aspx (the logparser forum) There is no answer as of yet.
Yes, this is my post too.Waiting for someone to help.
Let me see what I can find.  I haven't used log parser before. WMIC is pretty simple to use though.
ASKER CERTIFIED SOLUTION
Avatar of Tusas BT
Tusas BT
Flag of Türkiye 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
Glad you were able to discover a solution.