Tusas BT
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\Pri ntService\ Operationa l". What must I use at the end of the query (select ..... \\printserver\????) ?
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\Pri
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.
ASKER
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Glad you were able to discover a solution.
WMIC NTEVENT where "LogFile='application and services' and Type>'0'"
Adjust for what you are looking for.