Files
Scripts/loggrabber2.bat

27 lines
6.2 KiB
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
Echo comp1-time1-EventType1 9/29 11:49 am to 9/29 5pm >>C:\output2.txt
"C:\Progra~1\Log Parser 2.2\LogParser" -i:EVT -e:CSV "SELECT * FROM \\PNYCPSRCHRES01\Application,\\PNYCPSRCHRES02\Application,\\PNYCPSRCHRES03\Application,\\PNYCPSRCHRES04\Application,\\PNYCPSRCHRES05\Application,\\PNYCPSRCHRES06\Application,\\PNYCPSRCHRES07\Application,\\PNJCPSRCHRES01\Application,\\PNJCPSRCHRES02\Application,\\PNJCPSRCHRES03\Application,\\PNJCPSRCHRES04\Application,\\PNJCPSRCHRES05\Application,\\PNJCPSRCHRES06\Application,\\PNJCPSRCHRES07\Application TO C:\comp1-time1-Eventype1.csv WHERE EventID=8534 and EventType=1 and TimeGenerated BETWEEN TO_TIMESTAMP('09/29/2010 11:49', 'MM/dd/yyyy hh:mm') AND TO_TIMESTAMP('09/29/2010 17:00', 'MM/dd/yyyy hh:mm')" -stats:OFF -q:ON >> C:\output2.txt
Echo comp1-time1-EventType2 9/29 11:49 am to 9/29 5pm >>C:\output2.txt
"C:\Progra~1\Log Parser 2.2\LogParser" -i:EVT -e:CSV "SELECT * FROM \\PNYCPSRCHRES01\Application,\\PNYCPSRCHRES02\Application,\\PNYCPSRCHRES03\Application,\\PNYCPSRCHRES04\Application,\\PNYCPSRCHRES05\Application,\\PNYCPSRCHRES06\Application,\\PNYCPSRCHRES07\Application,\\PNJCPSRCHRES01\Application,\\PNJCPSRCHRES02\Application,\\PNJCPSRCHRES03\Application,\\PNJCPSRCHRES04\Application,\\PNJCPSRCHRES05\Application,\\PNJCPSRCHRES06\Application,\\PNJCPSRCHRES07\Application TO C:\comp1-time1-Eventype2.csv WHERE EventID=8534 and EventType=2 and TimeGenerated BETWEEN TO_TIMESTAMP('09/29/2010 11:49', 'MM/dd/yyyy hh:mm') AND TO_TIMESTAMP('09/29/2010 17:00', 'MM/dd/yyyy hh:mm')" -stats:OFF -q:ON >> C:\output2.txt
Echo comp1-time2-EventType1 9/28 11:49 am to 9/28 5pm >>C:\output2.txt
"C:\Progra~1\Log Parser 2.2\LogParser" -i:EVT -e:CSV "SELECT * FROM \\PNYCPSRCHRES01\Application,\\PNYCPSRCHRES02\Application,\\PNYCPSRCHRES03\Application,\\PNYCPSRCHRES04\Application,\\PNYCPSRCHRES05\Application,\\PNYCPSRCHRES06\Application,\\PNYCPSRCHRES07\Application,\\PNJCPSRCHRES01\Application,\\PNJCPSRCHRES02\Application,\\PNJCPSRCHRES03\Application,\\PNJCPSRCHRES04\Application,\\PNJCPSRCHRES05\Application,\\PNJCPSRCHRES06\Application,\\PNJCPSRCHRES07\Application TO C:\comp1-time2-Eventype1.csv WHERE EventID=8534 and EventType=1 and TimeGenerated BETWEEN TO_TIMESTAMP('09/28/2010 11:49', 'MM/dd/yyyy hh:mm') AND TO_TIMESTAMP('09/28/2010 17:00', 'MM/dd/yyyy hh:mm')" -stats:OFF -q:ON >> C:\output2.txt
Echo comp1-time2-EventType2 9/28 11:49 am to 9/28 5pm >>C:\output2.txt
"C:\Progra~1\Log Parser 2.2\LogParser" -i:EVT -e:CSV "SELECT * FROM \\PNYCPSRCHRES01\Application,\\PNYCPSRCHRES02\Application,\\PNYCPSRCHRES03\Application,\\PNYCPSRCHRES04\Application,\\PNYCPSRCHRES05\Application,\\PNYCPSRCHRES06\Application,\\PNYCPSRCHRES07\Application,\\PNJCPSRCHRES01\Application,\\PNJCPSRCHRES02\Application,\\PNJCPSRCHRES03\Application,\\PNJCPSRCHRES04\Application,\\PNJCPSRCHRES05\Application,\\PNJCPSRCHRES06\Application,\\PNJCPSRCHRES07\Application TO C:\comp1-time2-Eventype2.csv WHERE EventID=8534 and EventType=2 and TimeGenerated BETWEEN TO_TIMESTAMP('09/28/2010 11:49', 'MM/dd/yyyy hh:mm') AND TO_TIMESTAMP('09/28/2010 17:00', 'MM/dd/yyyy hh:mm')" -stats:OFF -q:ON >> C:\output2.txt
Echo comp2-time1-EventType1 9/28 5pm to 9/29 11 am >>C:\output2.txt
"C:\Progra~1\Log Parser 2.2\LogParser" -i:EVT -e:CSV "SELECT * FROM \\PNYCPSRCHRES01\Application,\\PNYCPSRCHRES02\Application,\\PNYCPSRCHRES03\Application,\\PNYCPSRCHRES04\Application,\\PNYCPSRCHRES05\Application,\\PNYCPSRCHRES06\Application,\\PNYCPSRCHRES07\Application,\\PNJCPSRCHRES01\Application,\\PNJCPSRCHRES02\Application,\\PNJCPSRCHRES03\Application,\\PNJCPSRCHRES04\Application,\\PNJCPSRCHRES05\Application,\\PNJCPSRCHRES06\Application,\\PNJCPSRCHRES07\Application TO C:\comp2-time1-Eventype1.csv WHERE EventID=8534 and EventType=1 and TimeGenerated BETWEEN TO_TIMESTAMP('09/28/2010 17:00', 'MM/dd/yyyy hh:mm') AND TO_TIMESTAMP('09/29/2010 11:00', 'MM/dd/yyyy hh:mm')" -stats:OFF -q:ON >> C:\output2.txt
Echo comp2-time1-EventType2 9/28 5pm to 9/29 11 am >>C:\output2.txt
"C:\Progra~1\Log Parser 2.2\LogParser" -i:EVT -e:CSV "SELECT * FROM \\PNYCPSRCHRES01\Application,\\PNYCPSRCHRES02\Application,\\PNYCPSRCHRES03\Application,\\PNYCPSRCHRES04\Application,\\PNYCPSRCHRES05\Application,\\PNYCPSRCHRES06\Application,\\PNYCPSRCHRES07\Application,\\PNJCPSRCHRES01\Application,\\PNJCPSRCHRES02\Application,\\PNJCPSRCHRES03\Application,\\PNJCPSRCHRES04\Application,\\PNJCPSRCHRES05\Application,\\PNJCPSRCHRES06\Application,\\PNJCPSRCHRES07\Application TO C:\comp2-time1-Eventype2.csv WHERE EventID=8534 and EventType=2 and TimeGenerated BETWEEN TO_TIMESTAMP('09/28/2010 17:00', 'MM/dd/yyyy hh:mm') AND TO_TIMESTAMP('09/29/2010 11:00', 'MM/dd/yyyy hh:mm')" -stats:OFF -q:ON >> C:\output2.txt
Echo comp2-time2-EventType1 9/29 -5 pm to 9/30 11 am >>C:\output2.txt
"C:\Progra~1\Log Parser 2.2\LogParser" -i:EVT -e:CSV "SELECT * FROM \\PNYCPSRCHRES01\Application,\\PNYCPSRCHRES02\Application,\\PNYCPSRCHRES03\Application,\\PNYCPSRCHRES04\Application,\\PNYCPSRCHRES05\Application,\\PNYCPSRCHRES06\Application,\\PNYCPSRCHRES07\Application,\\PNJCPSRCHRES01\Application,\\PNJCPSRCHRES02\Application,\\PNJCPSRCHRES03\Application,\\PNJCPSRCHRES04\Application,\\PNJCPSRCHRES05\Application,\\PNJCPSRCHRES06\Application,\\PNJCPSRCHRES07\Application TO C:\comp2-time2-Eventype1.csv WHERE EventID=8534 and EventType=1 and TimeGenerated BETWEEN TO_TIMESTAMP('09/29/2010 17:00', 'MM/dd/yyyy hh:mm') AND TO_TIMESTAMP('09/30/2010 11:00', 'MM/dd/yyyy hh:mm')" -stats:OFF -q:ON >> C:\output2.txt
Echo comp2-time2-EventType2 9/29 -5 pm to 9/30 11 am >>C:\output2.txt
"C:\Progra~1\Log Parser 2.2\LogParser" -i:EVT -e:CSV "SELECT * FROM \\PNYCPSRCHRES01\Application,\\PNYCPSRCHRES02\Application,\\PNYCPSRCHRES03\Application,\\PNYCPSRCHRES04\Application,\\PNYCPSRCHRES05\Application,\\PNYCPSRCHRES06\Application,\\PNYCPSRCHRES07\Application,\\PNJCPSRCHRES01\Application,\\PNJCPSRCHRES02\Application,\\PNJCPSRCHRES03\Application,\\PNJCPSRCHRES04\Application,\\PNJCPSRCHRES05\Application,\\PNJCPSRCHRES06\Application,\\PNJCPSRCHRES07\Application TO C:\comp2-time2-Eventype2.csv WHERE EventID=8534 and EventType=2 and TimeGenerated BETWEEN TO_TIMESTAMP('09/29/2010 17:00', 'MM/dd/yyyy hh:mm') AND TO_TIMESTAMP('09/30/2010 11:00', 'MM/dd/yyyy hh:mm')" -stats:OFF -q:ON >> C:\output2.txt