Log Parser Instructions

Print

Log Parser Instructions

 

  1. Open the utility (Log Parser).

Log Parser Main Screen

 

  1. Locate the files you want to search by clicking on the "Locate Fle(s)" button. You can select as many as you want I have tested up to 35 at a time.

Locate Files

selected files

 

  1. Enter the string you want to search for. NOTE: Searches are CASE SENSITIVE!
  2. Set the line(s) to include in report (if you want more than the first one).
    • Example: You have a log file and it contains blocks of data you want to capture. The line your interested in has "Texas" in it, but you know that the following 3 lines will contain the extra information you want to capture. Increment the number in the "lines to capture" box to 3.lines to capture

Now when the LogParser runs through your files any lines that contain "Texas" will be written to the log file as well as the next 3 lines. So you have captured the "block" of text in your log file/report. If you don't want to capture any extra lines leave the setting at "0".

  1. Choose if you want to exclude any data or strings from your final output.
    • Example: Lets say you have a file with locations of government offices in the U.S. And you want to capture any line that has "California" in it. But you want to exclude any that have "San Francisco". Enter "San Francisco" in the "Data to exclude" box. Now any line that has California in it will be captured but if it also contains "San Francisco" it will be ignored.
  2. Choose the name and path of the output file (or leave at default). If you run the LogParser multiple times you may want to increment the name so you can distinguish them easily. As well if you do not change the name it will just keep appending data to the original log file/report.
  3. Click on start.

  1. A log file/text file containing any lines that have the data you searched on is created. You can see in the image below that all the lines with "Boost" were captured in every file searched. (I only show 2 files here). As well you may notice that the name of each file searched is listed before the captured data. This way you can keep track of what data came from what file.
    • If you want you can now search on your outputted file to even further narrow your results.

Software Download Statistics

Phoca Download