<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Kary Wall</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/karywa/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/karywa/feed.xml</link>
    <description>Cruising the streets of Microsoft Exchange, networking, debugging and more....</description>
    <lastBuildDate>Fri, 15 Jul 2016 17:20:42 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Exchange Server 2013/2016 EWS Logging Configuration</title>
      <link>https://docs.microsoft.com/archive/blogs/karywa/exchange-server-20132016-ews-logging-configuration</link>
      <pubDate>Fri, 15 Jul 2016 16:07:42 GMT</pubDate>
      <dc:creator><![CDATA[Kary Wall]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/karywa/?p=365</guid>
      <description><![CDATA[Up until Mid/Late Exchange 2010, all EWS logging was saved in the query string field in IIS logs....]]></description>
      <content:encoded><![CDATA[Up until Mid/Late Exchange 2010, all EWS logging was saved in the query string field in IIS logs. However, due to the amount of logging that is sometimes needed for troubleshooting etc., the location  was moved. This allowed more detailed logging without unnecessarily bloating the single IIS log field. The new default location is as follows:

<strong>\ExchangeInstallPath\V15\Logging\EWS</strong>

Which if the default installation on the system drive looks like this:

<strong>C:\Program Files\Microsoft\Exchange Server\V15\Logging\Ews</strong>

For most installations this is usually fine because these are automatically purged based on age and/or size. However, if your organization depends heavily on EWS AND needs to troubleshoot, this may not be an ideal location. Let's consider a scenario where the logs are being recycled too quickly to be helpful such as you have an intermittent issue but by the time the issue is reported the logs we care about have been purged.

The good news is we have some control over where the logs reside as well as some additional control on how the logs are generated. Let's take quick look at these settings, all of which reside in the EWS web.config file:

<strong>MaxLogRetentionInDays</strong>
The age of the log(s) in days before deletion. Default: 30 Days

<strong>MaxLogDirectorySizeInGB</strong>
The maximum size in GB of the 'directory' the log files are stored in before files are cleaned up. Default: 5GB

<strong>MaxLogFileSizeInMB</strong>
The maximum size a single EWS log can grow before it is closed and new log is started. Default: 10MB

<strong>RequestDetailsLogger.EWSProtocolLogFolder</strong>
The path on disk where the logs are stored. Default: Exchange install path logging folder.

So, that's a decent amount of control of our logs. Here is the location of the web.config file for EWS that controls them.

<strong>\ExchangeInstallPath\V15\ClientAccess\exchweb\ews\web.config</strong>

Or the full path if installed on the system drive

<strong>C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\exchweb\ews\web.config</strong>

There are two ways to modify this file; we can edit it directly or just add the settings in the IIS 7.5 management console.

** NOTE **
Make a backup of the web.config! Any typo's or errors will cause IIS (specifically the EWS services application pool) to fail during startup which results in HTTP 500 errors. Until the errors are corrected and the app pool can successfully parse the XML file, EWS will not be functional! This includes case-sensitivity FYI.

<strong>Make the changes directly to the web.config</strong>
<ol>
	<li>Make a backup copy of the web.config first.</li>
	<li>Find the "&lt;appSettings&gt;" entry in the config file. Our settings go between &lt;appSettings&gt; and &lt;/appSettings&gt;</li>
	<li>For any setting we wish to change add the corresponding setting in the following format:

&lt;add key="SettingName" value="SettingValue"&gt;


If we are changing the number of days we want the logs retained to two weeks, our entry would look like this:

&lt;add key="MaxLogRetentionInDays" value="14"&gt;

Here are examples of the remaining settings:

&lt;add key="MaxLogDirectorySizeInGB" value="3"&gt;
&lt;add key="MaxLogFileSizeInMB" value="20"&gt;
&lt;add key="RequestDetailsLogger.EWSProtocolLogFolder" value="D:\EWSLogs"&gt;</li>
	<li>Save the web.config file and recycle the services app pool. The changes will take effect as soon as the next EWS request comes in.</li>
</ol>
The result of the changes above are that we'll allow individual logs to grow to 20MB before rolling over to a new log and the directory can grow to 3GB before cleanup; our logs will now be saved @ D:\EWSLogs and/or any logs that are &gt;14 days old will be purged.

<strong>Make the changes in IIS 7.5 management console</strong>

1. Open IIS 7.5 management console
2. Navigate to the "Exchange Backend" website.
4. Click on "EWS" in the Exchange Backend tree.
5. Double click "Application Settings" under "ASP.NET" in the right hand pane.
6. Either right-click in the main window where the existing settings are listed and choose "Add" or choose "Add" in the rightmost Actions pane.
7. Type the name of the setting and value, click OK.
8. As before, recycle the EWS application pool. (This can be found under "Application Pools" in the IIS management console and is named "MSExchangeServicesAppPool").]]></content:encoded>
    </item>
    <item>
      <title>Log Parser Studio - Keyboard Shortcuts</title>
      <link>https://docs.microsoft.com/archive/blogs/karywa/log-parser-studio-keyboard-shortcuts</link>
      <pubDate>Fri, 30 Oct 2015 08:21:00 GMT</pubDate>
      <dc:creator><![CDATA[Kary Wall]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/karywa/2015/10/30/log-parser-studio-keyboard-shortcuts/</guid>
      <description><![CDATA[I often find myself wooing and wowing colleagues with the keyboard shortcuts built into LPS. Though...]]></description>
      <content:encoded><![CDATA[<p>I often find myself wooing and wowing colleagues with the keyboard shortcuts built into LPS. Though they can be found via help, I thought it might a good idea to list them here since they are so handy:</p>
<h2>Log Parser Studio - Shortcuts</h2>
<ul>
<li><strong>ALT+B </strong>- Display the Batch Job window.<br /><br /></li>
<li><strong>CTRL+C</strong> - Query Results: Copy selected cells to clipboard including field names. Library: Copy selected queries and their properties to clipboard.<br /><br /></li>
<li><strong>CTRL+D</strong> - Duplicate the selected query tab. Use this to quickly create a new copy of the query you are editing.<br /><br /></li>
<li><strong>CTRL+E </strong>- Export query results to CSV file.<br /><br /></li>
<li><strong>CTRL+ALT+E </strong>- Opens the LPS error log if any errors have been logged.<br /><br /></li>
<li><strong>CTRL+F </strong>- Reloads the default library into Log Parser Studio. If you have saved some queries but have not saved the library, this will revert those changes.<br /><br /></li>
<li><strong>ALT+F </strong>- When the library is visible, this will filter to only show queries that are marked as favorites (Same as clicking the favorites button&nbsp;- The category/favorites buttons are no longer shown by default - see preferences to enable).<br /><br /></li>
<li><strong>F1 </strong>- Open Log Parser Studio Help.<br /><br /></li>
<li><strong>F2</strong> - When the library is visible, this allows quick editing of the selected query&#39;s name, description and category. This is handy if you have previously saved a query but need to make small changes quickly without actually opening the query.<br /><br /></li>
<li><strong>F3 </strong>- When a query tab is visible, this displays the default IISW3C field names for quick reference. CTRL+Click to select the desired fields then click enter to place these on the clipboard. Any queries beginning with * are fields that are not enabled by default when IIS is initially installed.<br /><br /></li>
<li><strong>SHIFT+F3 </strong>- Displays the Log Parser 2.2 Function Reference. Use this when creating your own queries or to learn more about Log Parser&#39;s built-in functions.<br /><br /></li>
<li><strong>F4</strong> - If a cell or cells are highlighted in a query&#39;s result grid, this will expand/collapse the selected columns the cells belong to.<br /><br /></li>
<li><strong>F5</strong> - When a query is opened, execute the selected query.<br /><br /></li>
<li><strong>F6</strong> - When a query which has results is visible, F6 displays its chart. However, for the chart functionality to work, the first column can be any data type, the second column must be some type of numerical value. Charts always operate on the first two columns only.<br /><br /></li>
<li><strong>F7</strong> - Auto insert FROM &#39;[LOGFILEPATH]&#39; into the selected position when editing a query.<br /><br /></li>
<li><strong>F8 </strong>- Auto insert INTO &#39;[OUTFILEPATH]\<span class="auto-style1"><span>Output.csv&#39;</span></span> into the selected position when editing a query. Output.csv is auto-selected to facilitate changing the name to something more meaningful, quickly. <br /><br /></li>
<li><strong>F9</strong>- Auto insert LIKE &#39;%%&#39; into the selected position when editing a query. Many queries search for data using the LIKE statement. This makes using LIKE quick and easy. Just press F9 then type the string you are searching for.<br /><br /></li>
<li><strong>F10</strong> - Display a new random hint. Hints are randomly displayed in the top right main window. Press F10 to see a new one.<br /><br /></li>
<li><strong>CTRL+L or CTRL+I</strong>- Load/Import XML Queries.<br /><br /></li>
<li><strong>CTRL+ALT+L</strong> - Opens the current library in XML format in an installed text editor. If no known editors are found, it uses the operating system&#39;s default editor for XML files. Order of search for installed editors (first found is used): Notepad++, Notepad2, Textpad, Notepad, Default.<br /><br /></li>
<li><strong>CTRL+K</strong>- Display&#39;s the shortcut keys window you are viewing now.<br /><br /></li>
<li><strong>CTRL+Q</strong> - Switch to the library.<br /><br /></li>
<li><strong>Mouse Button Forward </strong>- Move to next tab.<br /><br /></li>
<li><strong>Mouse Button Back</strong> - Move to previous tab.</li>
</ul>
<p style="padding:0;margin:0;"></p>]]></content:encoded>
    </item>
    <item>
      <title>LPS: Custom Field Extraction</title>
      <link>https://docs.microsoft.com/archive/blogs/karywa/lps-custom-field-extraction</link>
      <pubDate>Wed, 04 Mar 2015 14:30:00 GMT</pubDate>
      <dc:creator><![CDATA[Kary Wall]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/karywa/2015/03/04/lps-custom-field-extraction/</guid>
      <description><![CDATA[I may have mentioned this before but I use it so often, I think it deserves it&#39;s own post. I am...]]></description>
      <content:encoded><![CDATA[<p>I may have mentioned this before but I use it so often, I think it deserves it&#39;s own post. I am often faced&nbsp;(as in very often) with a single field of data that has lots of disparate bits of data embedded within it. A perfect example is the cs-uri-query field&nbsp;contained in&nbsp;IIS logs, especially where Exchange is concerned. Here is an example:</p>
<p>ae=Folder&amp;t=IPF.Appointment&amp;id=LgAAAACZfhLxcD%2bnRZZG0OyEvOwcAQC3gm%2fVeZsgSIJcyGKb0MppAEwcvx5xAAAC&amp;yr=2015&amp;mn=3&amp;dy=15&amp;Initial+Budget&gt;&gt;Conn:1,HangingConn:0,AD:60000/60000/0%,CAS:90000/85862/7%,AB:60000/60000/0%,RPC:90000/87538/5%,FC:$null/0,Policy:DefaultThrottlingPolicy_67df4d2e-9f19-4270-9b8e-dec43773104b,Norm&amp;v=14.3.174.1&amp;mbx=MBX1.CONTOSO.COM&amp;sessionId=891d047b451141b0a6406ca854de41b9&amp;prfltncy=134&amp;prfrpccnt=15&amp;prfrpcltncy=78&amp;prfldpcnt=1&amp;prfldpltncy=15&amp;prfavlcnt=0&amp;prfavlltncy=0&amp;End+Budget&gt;&gt;Conn:1,HangingConn:0,AD:60000/60000/0%,CAS:90000/85738/8%,AB:60000/60000/0%,RPC:90000/87463/5%,FC:$null/0,Policy:DefaultThrottlingPolicy_67df4d2e-9f19-4270-9b8e-dec43773104b,Norm[Resources:(Mdb)ABC-DAG09-DB32(Health:-1%,HistLoad:0),]</p>
<p>^That is a lot of info for a single field,&nbsp;not to mention not very review-friendly, and for the&nbsp;sake of my theoretical needs I really just wanted the MBX being used, the session ID and which throttling policy is being applied. I have no real&nbsp;need for this data right now, I&#39;m just randomly grabbing these for the example hence the term &quot;theoretical need&quot;.</p>
<p>It is easy to extract each bit of information we want into it&#39;s own field. I can for example use EXTRACT_PREFIX() and EXTRACT_SUFFIX() to do this. We could probably use&nbsp;SUBSTR() but&nbsp;that would potentially be much messier and we&#39;d be dealing with string lengths which is going to break the moment the string we are dealing with changes.</p>
<p>With EXTRACT, we can use strings and grab exactly what we want. There is a shortcut in LPS which auto-creates a near ready to go combo of the EXTRACT functions, that shortcut is SHIFT+F12 and inserts the following into the LPS query window (yes, this shortcut exists because I grew extremely tired of typing it out by hand!):</p>
<p><strong>EXTRACT_PREFIX(EXTRACT_SUFFIX(<span style="color:#ff0000;">FieldName</span>, 0, <span style="color:#ff0000;">&#39;StartChar&#39;</span>), 0, <span style="color:#ff0000;">&#39;EndChar&#39;</span>) as <span style="color:#ff0000;">FieldAlias</span></strong></p>
<p><strong><br /></strong>We only need to change the tokens to fit our data. Here are those tokens and their meaning:<strong><br /></strong></p>
<p><strong>FieldName -</strong> The name of the field we want to extract data from (in this case cs-uri-query)<strong><br /></strong></p>
<p><strong>StartChar - </strong>The starting character(s) we want to use as a marker to tell LPS where our data begins.<strong><br /></strong></p>
<p><strong>EndChar - </strong>The ending character(s) we want to use as a marker to tell LPS where our data ends.<strong><br /></strong></p>
<p><strong>FieldAlias - </strong>What we want our custom column to be named.<strong><br /></strong></p>
<p><br />Since I want three items, I need three of these lines, one for each&nbsp;bit of data I want to extract&nbsp;(E.g.: Mailbox Server, SessionID and Throttling Policy). I&#39;ll go ahead and fill these in and you can compare to the example querystring above to see why I chose what I chose:</p>
<p></p>
<p dir="LTR"><span style="color:#0000ff;">SELECT</span> <span style="color:#0000ff;">TOP</span> <span style="color:#ff00ff;">1000</span></p>
<p></p>
<p dir="LTR"><span style="color:#a52a2a;">EXTRACT_PREFIX</span>(<span style="color:#a52a2a;">EXTRACT_SUFFIX</span>(cs-uri-query, <span style="color:#ff00ff;">0</span>, <span style="color:#ff0000;">&#39;&amp;mbx=&#39;</span>), <span style="color:#ff00ff;">0</span>, <span style="color:#ff0000;">&#39;&amp;&#39;</span>) <span style="color:#0000ff;">as</span> MBXServer,</p>
<p></p>
<p dir="LTR"><span style="color:#a52a2a;">EXTRACT_PREFIX</span>(<span style="color:#a52a2a;">EXTRACT_SUFFIX</span>(cs-uri-query, <span style="color:#ff00ff;">0</span>, <span style="color:#ff0000;">&#39;&amp;sessionId=&#39;</span>), <span style="color:#ff00ff;">0</span>, <span style="color:#ff0000;">&#39;&amp;&#39;</span>) <span style="color:#0000ff;">as</span> [Session ID],</p>
<p></p>
<p dir="LTR"><span style="color:#a52a2a;">EXTRACT_PREFIX</span>(<span style="color:#a52a2a;">EXTRACT_SUFFIX</span>(cs-uri-query, <span style="color:#ff00ff;">0</span>, <span style="color:#ff0000;">&#39;Policy:&#39;</span>), <span style="color:#ff00ff;">0</span>, <span style="color:#ff0000;">&#39;,&#39;</span>) <span style="color:#0000ff;">as</span> Policy</p>
<p></p>
<p dir="LTR"><span style="color:#0000ff;">FROM</span> <span style="color:#ff0000;">&#39;[LOGFILEPATH]&#39;</span></p>
<p></p>
<p dir="LTR"><span style="color:#0000ff;">WHERE</span> cs-uri-stem <span style="color:#0000ff;">LIKE</span> <span style="color:#ff0000;">&#39;%ev.owa%&#39;</span></p>
<p></p>
<p><span style="color:#0000ff;">AND</span> cs-username <span style="color:#0000ff;">IS</span> <span style="color:#0000ff;">NOT</span> <span style="color:#0000ff;">NULL</span></p>
<p>*The WHERE statement above exists to make sure only records that contain the querystring data I expect are returned. If I did not do this, we&#39;d get back some&nbsp;empty fields because the data we want to extract doesn&#39;t exist in every request in the IIS log. Here is an example result of the above:</p>
<table>
<thead>
<tr><th>&nbsp;</th><th style="text-align:left;"><span style="font-size:small;">Mailbox</span></th><th style="text-align:left;"><span style="font-size:small;">Session ID</span></th><th style="text-align:left;"><span style="font-size:small;">Policy</span></th></tr>
</thead>
<tbody>
<tr>
<td align="center">&nbsp;</td>
<td>MBX2.CONTOSO.COM</td>
<td>8667ec4f36ao4660a3d8382de9dfbafe</td>
<td>DefaultThrottlingPolicy_45df4d2e-9f19-4270-9b8e-deu22273104b</td>
</tr>
<tr>
<td align="center">&nbsp;</td>
<td>MBX1.CONTOSO.COM</td>
<td>8667ec4f36ao4660a3d8382de9dfbafe</td>
<td>DefaultThrottlingPolicy_54df4d2e-9f19-4270-9b8e-deu22273104b</td>
</tr>
<tr>
<td align="center">&nbsp;</td>
<td>MBX3.CONTOSO.COM</td>
<td>86e44db93ec245e0b64f3feb2a68feeb</td>
<td>DefaultThrottlingPolicy_54df4d2e-9f19-4270-9b8e-deu22273104b</td>
</tr>
<tr>
<td align="center">&nbsp;</td>
<td>MBX1.CONTOSO.COM</td>
<td>86e44db93ec245e0b64f3feb2a68feeb</td>
<td>DefaultThrottlingPolicy_54df4d2e-9f19-4270-9b8e-deu22273104b</td>
</tr>
</tbody>
</table>
<p>Neat! Now this is something I can work with.</p>
<p>Being an Exchange Escalation Enginner I used Exchange data from my lab but this can be used with any type of data in LPS that has text, not just IIS logs. We could have just as easily used this on a CSV log or even text. Consider the following line of text and also consider it is in some text file somewhere:</p>
<p>foo=bar+bar=001,sometext||hello</p>
<p>We could easily use what we have learned to turn that into useful columns of data. In this example I&#39;m using the TEXTLINELOG type to search my example text file:</p>
<p><span style="color:#0000ff;">SELECT</span> <span style="color:#0000ff;">TOP</span> <span style="color:#ff00ff;">1000</span></p>
<p><span style="color:#a52a2a;">EXTRACT_PREFIX</span>(<span style="color:#a52a2a;">EXTRACT_SUFFIX</span>(Text, <span style="color:#ff00ff;">0</span>, <span style="color:#ff0000;">&#39;foo=&#39;</span>), <span style="color:#ff00ff;">0</span>, <span style="color:#ff0000;">&#39;+&#39;</span>) <span style="color:#0000ff;">as</span> Foo,</p>
<p><span style="color:#a52a2a;">EXTRACT_PREFIX</span>(<span style="color:#a52a2a;">EXTRACT_SUFFIX</span>(Text, <span style="color:#ff00ff;">0</span>, <span style="color:#ff0000;">&#39;bar=&#39;</span>), <span style="color:#ff00ff;">0</span>, <span style="color:#ff0000;">&#39;,&#39;</span>) <span style="color:#0000ff;">as</span> Bar,</p>
<p><span style="color:#a52a2a;">EXTRACT_PREFIX</span>(<span style="color:#a52a2a;">EXTRACT_SUFFIX</span>(Text, <span style="color:#ff00ff;">0</span>, <span style="color:#ff0000;">&#39;||&#39;</span>), <span style="color:#ff00ff;">0</span>, <span style="color:#ff0000;">&#39;+&#39;</span>) <span style="color:#0000ff;">as</span> SomeText</p>
<p><span style="color:#0000ff;">FROM</span> <span style="color:#ff0000;">&#39;[LOGFILEPATH]&#39;</span></p>
<p><span style="color:#ff0000;"><br /><span style="color:#000000;">Result:</span><br /></span></p>
<p></p>
<table style="width:372px;height:49px;">
<thead>
<tr><th><span style="font-size:small;">&nbsp;</span></th><th style="text-align:left;"><span style="font-size:small;">Foo</span></th><th style="text-align:left;"><span style="font-size:small;">Bar</span></th><th style="text-align:left;"><span style="font-size:small;">SomeText</span></th></tr>
</thead>
<tbody>
<tr>
<td align="center">&nbsp;</td>
<td>bar</td>
<td>001</td>
<td>hello</td>
</tr>
</tbody>
</table>
<p><span style="color:#ff0000;"><br /></span><span style="color:#ff0000;"><span style="color:#000000;">When data mining all types of data with LPS, I find myself using this technique much of the time. It&#39;s just too handy to be able to extract data and view it as I need to see it which is the entire point.... Get to the data and represent it in a meaningful way. Just remember to use SHIFT+F12 to insert the template.</span><br /></span></p>
<p></p>
<p></p>
<p></p>
<p></p>]]></content:encoded>
    </item>
    <item>
      <title>LPS Tutorial: Batched Queries, Folders and Automation</title>
      <link>https://docs.microsoft.com/archive/blogs/karywa/lps-tutorial-batched-queries-folders-and-automation</link>
      <pubDate>Tue, 17 Feb 2015 10:12:00 GMT</pubDate>
      <dc:creator><![CDATA[Kary Wall]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/karywa/2015/02/17/lps-tutorial-batched-queries-folders-and-automation/</guid>
      <description><![CDATA[One of the coolest features of LPS is batch queries and automating them. What could be cooler than...]]></description>
      <content:encoded><![CDATA[<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">One of the coolest features of LPS is batch queries and automating them. What could be cooler than arriving in the morning and seeing comprehensive reports of your CAS array, event logs etc. just waiting for you? This tutorial is an in-depth step-by-step tutorial on how this works and how to accomplish. </span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">First, we need to cover how to create the list of files/folders and queries and save them to disk for later consumption. Even if you aren&rsquo;t automating, if you have sets of queries and sets of logs that you query often, this will allow you to browse and select them only once saving lots of time.</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="font-size:medium;"><span style="font-size:12pt;"><b>Saving folders/logs to query as XML</b></span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">- Open file manager.</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">- Choose &quot;Add Files&quot; or &quot;Add Folder&quot;</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">- Browse to the network path or type the UNC name of the machine to access for example: \\ComputerName\D$ </span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">- Browse the remaining UNC path to the logs and select the files or folder (if using Add Folder then just double click any log file in that folder). </span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">- While still in File Manager choose File &gt; Save and save as somefile.fld where somefile is a name that makes sense to you. This will save the folder\file list as an XML file.</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">Here is an example of what a FLD file looks like which is really just XML. I&#39;ll also explain its format so you can edit the file manually if you ever need to:</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="font-size:large;"><span style="font-size:14pt;">&nbsp;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&lt;?</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">xml</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;"> </span></span><span style="color:red;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">version</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">=</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&quot;</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">1.0</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&quot;</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;"> </span></span><span style="color:red;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">encoding</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">=</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&quot;</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">utf-8</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&quot;</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">?&gt;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&lt;</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">ArrayOfLPLogFile</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;"> </span></span><span style="color:red;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">xmlns:xsi</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">=</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&quot;</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">http://www.w3.org/2001/XMLSchema-instance</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&quot;</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;"> </span></span><span style="color:red;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">xmlns:xsd</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">=</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&quot;</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">http://www.w3.org/2001/XMLSchema</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&quot;</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&nbsp; &lt;</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">LPLogFile</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&nbsp;&nbsp;&nbsp; &lt;</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">Filename</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">\\bigmono\Dumps\MASPing\u_ex140404.log</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&lt;/</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">Filename</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&nbsp;&nbsp;&nbsp; &lt;</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">isChecked</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">true</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&lt;/</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">isChecked</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&nbsp; &lt;/</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">LPLogFile</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&nbsp; &lt;</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">LPLogFile</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&nbsp;&nbsp;&nbsp; &lt;</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">Filename</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">E:\Dumps\Corey2013\W3SVC1\W3SVC2\*.log</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&lt;/</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">Filename</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&nbsp;&nbsp;&nbsp; &lt;</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">isChecked</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">true</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&lt;/</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">isChecked</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&nbsp; &lt;/</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">LPLogFile</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&nbsp; &lt;</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">LPLogFile</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&nbsp;&nbsp;&nbsp; &lt;</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">Filename</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">E:\Dumps\Corey2013\W3SVC1\W3SVC2\u_ex140112.log</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&lt;/</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">Filename</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&nbsp;&nbsp;&nbsp; &lt;</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">isChecked</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">true</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&lt;/</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">isChecked</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&nbsp; &lt;/</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">LPLogFile</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&lt;/</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">ArrayOfLPLogFile</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">The 1st, 2nd and last lines must always be present:</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&lt;?</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">xml</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;"> </span></span><span style="color:red;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">version</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">=</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&quot;</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">1.0</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&quot;</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;"> </span></span><span style="color:red;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">encoding</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">=</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&quot;</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">utf-8</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&quot;</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">?&gt;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&lt;</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">ArrayOfLPLogFile</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;"> </span></span><span style="color:red;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">xmlns:xsi</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">=</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&quot;</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">http://www.w3.org/2001/XMLSchema-instance</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&quot;</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;"> </span></span><span style="color:red;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">xmlns:xsd</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">=</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&quot;</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">http://www.w3.org/2001/XMLSchema</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&quot;</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&nbsp;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&lt;/</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">ArrayOfLPLogFile</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="font-size:large;"><span style="font-size:14pt;">&nbsp;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">The data that is in between is the list of files or folders. Here is a single file:</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="font-size:large;"><span style="font-size:14pt;">&nbsp;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&lt;</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">LPLogFile</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&nbsp; &lt;</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">Filename</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">\\bigmono\Dumps\MASPing\</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:yellow;">u_ex140404.log</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&lt;/</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">Filename</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&nbsp; &lt;</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">isChecked</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">true</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&lt;/</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">isChecked</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&lt;/</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">LPLogFile</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp; </span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">Here is a folder:</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&lt;</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">LPLogFile</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&nbsp; &lt;</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">Filename</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">\\bigmono\Dumps\MASPing\</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:yellow;">*.log</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&lt;/</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">Filename</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&nbsp; &lt;</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">isChecked</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">true</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&lt;/</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">isChecked</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&lt;/</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">LPLogFile</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp; </span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">Notice the only difference between a file and a folder is the wildcard. Also notice this little chunk of XML represents a log file. &ldquo;isChecked&rdquo; simply tells LPS whether to check the box in its list to make it active. </span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">To recap, using <i>File &gt; Save </i>or <i>File &gt; Load</i> in LPS&#39; file manager takes care of this for you. However, you can edit these manually if needed. The only caveat is XML is very strictly formatted and any mistakes may cause errors or worse.</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="font-size:medium;"><span style="font-size:12pt;"><b>Saving batches of queries as XML</b></span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">- Create the queries you want to use and save them to the library, or choose the queries you want to use that are already in the library. </span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">- Add them to a batch job:</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Right-click one or more queries and choose &quot;Add to batch&quot;</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- To add multiple queries at once, CTRL+Click to highlight multiples then right-click &gt; &quot;Add to Batch&quot;.</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">- Once you have added all the queries you want to automate open the batch window (7th&nbsp; button from the left which is teal colored) or ALT+B.</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">- To run all queries immediately, click &quot;Execute&quot;.</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">- To save these for later, choose File &gt; Save Batch and give it a name that makes sense to you such as LPSBatch.XML.</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">- If you plan on using these for automation:</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Save the batch file in the same directory as the FLD folder list file.</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Remove the queries from the batch window if you wish by clicking Remove All.</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">A batch of queries is somewhat similar to a folder batch. In other words it uses XML too but the format is completely different. I don&#39;t generally recommend editing batch XML files due to that complexity and possible escape sequences contained within the query. However, here is what a batch file with a single query looks like:</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&lt;?</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">xml</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;"> </span></span><span style="color:red;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">version</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">=</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&quot;</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">1.0</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&quot;</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;"> </span></span><span style="color:red;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">encoding</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">=</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&quot;</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">utf-8</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&quot;</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">?&gt;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&lt;</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">ArrayOfLPBatchQuery</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;"> </span></span><span style="color:red;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">xmlns:xsi</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">=</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&quot;</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">http://www.w3.org/2001/XMLSchema-instance</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&quot;</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;"> </span></span><span style="color:red;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">xmlns:xsd</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">=</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&quot;</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">http://www.w3.org/2001/XMLSchema</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&quot;</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&nbsp; </span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:yellow;">&lt;</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:yellow;">LPBatchQuery</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:yellow;">&gt;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&nbsp;&nbsp;&nbsp; &lt;</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">QueryName</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">ActiveSync: Count all errors</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&lt;/</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">QueryName</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&nbsp;&nbsp;&nbsp; &lt;</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">QueryDescription</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">ActiveSync: Count all errors</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&lt;/</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">QueryDescription</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&nbsp;&nbsp;&nbsp; &lt;</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">QueryData</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /*&nbsp; Query to count number of errors by error message */</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /*&nbsp; Note: For Exchange 2013 these must be executed against the MBX server logs!&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; */</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&nbsp;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Select Count(*) AS Hits,</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TO_STRING(EXTRACT_PREFIX(EXTRACT_SUFFIX(cs-uri-query, 0, &#39;_Error:&#39;), 0, &#39;_&#39;)) As Error</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FROM &#39;[LOGFILEPATH]&#39;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WHERE cs-uri-stem LIKE &#39;%ActiveSync%&#39;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AND cs-uri-query LIKE &#39;%Error:%&#39;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GROUP BY Error</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ORDER BY Hits DESC</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&nbsp;&nbsp;&nbsp; &lt;/</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">QueryData</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&nbsp;&nbsp;&nbsp; &lt;</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">QueryID</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">9c84785c-531b-41a9-9dfb-519e0330527a</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&lt;/</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">QueryID</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&nbsp;&nbsp;&nbsp; &lt;</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">LogType</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">IISW3CLOG</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&lt;/</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">LogType</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&nbsp;&nbsp;&nbsp; &lt;</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">QueryCategory</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">ALL</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&lt;/</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">QueryCategory</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&nbsp;&nbsp;&nbsp; &lt;</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">IsFavorite</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">false</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&lt;/</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">IsFavorite</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&nbsp;&nbsp;&nbsp; &lt;</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">DateModified</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">0001-01-01T00:00:00</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&lt;/</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">DateModified</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&nbsp;&nbsp;&nbsp; &lt;</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">BatchItemGuid</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span><span style="color:black;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">fa621719-cbcd-48bf-9434-485721f0640e</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&lt;/</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">BatchItemGuid</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&nbsp; </span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:yellow;">&lt;/</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:yellow;">LPBatchQuery</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:yellow;">&gt;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&lt;/</span></span><span style="color:#a31515;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">ArrayOfLPBatchQuery</span></span><span style="color:blue;font-family:Consolas;font-size:small;"><span style="font-size:10pt;background-color:white;">&gt;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="font-size:medium;"><span style="font-size:12pt;"><b>Automating LPS with what we have learned</b></span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">Requirements:<br /><br /></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1. An existing batch file.</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2. An existing folder file.</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">Command line syntax:</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><b>LPS.EXE BatchFile.XML FolderFile.FLD [silent]</b></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - The batch file and folder file can be in any order. In other words it doesn&#39;t matter which is listed first.</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - The silent switch is optional but needs to be the last argument in the command line if used.</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - The silent switch will auto close LPS when the batch completes. For this reason, you probably want all batch queries to export data to CSV instead of the GUI so you don&rsquo;t lose the results...</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">Examples: </span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">Run LPS load folders.fld and batch.xml, run all queries then exit LPS:</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;</span></span></div>
<div style="margin:0px;text-indent:36pt;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><b>lps.exe folders.fld batch.xml -silent</b></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">Same as above but do not exit LPS:</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;</span></span></div>
<div style="margin:0px;text-indent:36pt;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><b>lps.exe folders.fld batch.xml </b></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><b>Modifying queries to export to CSV automatically</b></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">Many queries already send results to CSV but some do not. Any query that doesn&#39;t not already send to CSV can be easily **modified to do so by adding the INTO statement. Here is a query that does not export to CSV using a before after example.</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><b>BEFORE:</b></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;">Select</span><span style="color:black;"> </span><span style="color:brown;">Count</span><span style="color:black;">(*) </span><span style="color:blue;">AS</span><span style="color:black;"> Hits,</span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:brown;">TO_STRING</span><span style="color:black;">(</span><span style="color:brown;">EXTRACT_PREFIX</span><span style="color:black;">(</span><span style="color:brown;">EXTRACT_SUFFIX</span><span style="color:black;">(cs-uri-query, </span><span style="color:fuchsia;">0</span><span style="color:black;">, </span><span style="color:red;">&#39;_Error:&#39;</span><span style="color:black;">), </span><span style="color:fuchsia;">0</span><span style="color:black;">, </span><span style="color:red;">&#39;_&#39;</span><span style="color:black;">)) </span><span style="color:blue;">As</span><span style="color:black;"> Error</span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;">FROM</span><span style="color:black;"> </span><span style="color:red;">&#39;[LOGFILEPATH]&#39;</span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;">WHERE</span><span style="color:black;"> cs-uri-stem </span><span style="color:blue;">LIKE</span><span style="color:black;"> </span><span style="color:red;">&#39;%ActiveSync%&#39;</span><span style="color:black;"> </span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;">AND</span><span style="color:black;"> cs-uri-query </span><span style="color:blue;">LIKE</span><span style="color:black;"> </span><span style="color:red;">&#39;%Error:%&#39;</span><span style="color:black;"> </span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;">GROUP</span><span style="color:black;"> </span><span style="color:blue;">BY</span><span style="color:black;"> Error</span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;">ORDER</span><span style="color:black;"> </span><span style="color:blue;">BY</span><span style="color:black;"> Hits </span><span style="color:blue;">DESC</span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><b>AFTER:</b></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;">Select</span><span style="color:black;"> </span><span style="color:brown;">Count</span><span style="color:black;">(*) </span><span style="color:blue;">AS</span><span style="color:black;"> Hits,</span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:brown;">TO_STRING</span><span style="color:black;">(</span><span style="color:brown;">EXTRACT_PREFIX</span><span style="color:black;">(</span><span style="color:brown;">EXTRACT_SUFFIX</span><span style="color:black;">(cs-uri-query, </span><span style="color:fuchsia;">0</span><span style="color:black;">, </span><span style="color:red;">&#39;_Error:&#39;</span><span style="color:black;">), </span><span style="color:fuchsia;">0</span><span style="color:black;">, </span><span style="color:red;">&#39;_&#39;</span><span style="color:black;">)) </span><span style="color:blue;">As</span><span style="color:black;"> Error</span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;"><span style="background-color:yellow;">INTO</span></span><span style="color:black;"><span style="background-color:yellow;"> </span></span><span style="color:red;"><span style="background-color:yellow;">&#39;[OUTFILEPATH]\Output.CSV&#39;</span></span><span style="color:black;"> </span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;">FROM</span><span style="color:black;"> </span><span style="color:red;">&#39;[LOGFILEPATH]&#39;</span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;">WHERE</span><span style="color:black;"> cs-uri-stem </span><span style="color:blue;">LIKE</span><span style="color:black;"> </span><span style="color:red;">&#39;%ActiveSync%&#39;</span><span style="color:black;"> </span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;">AND</span><span style="color:black;"> cs-uri-query </span><span style="color:blue;">LIKE</span><span style="color:black;"> </span><span style="color:red;">&#39;%Error:%&#39;</span><span style="color:black;"> </span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;">GROUP</span><span style="color:black;"> </span><span style="color:blue;">BY</span><span style="color:black;"> Error</span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="color:blue;">ORDER</span><span style="color:black;"> </span><span style="color:blue;">BY</span><span style="color:black;"> Hits </span><span style="color:blue;">DESC</span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">- Notice the added line just above the FROM statement. This line with the INTO statement must always be just above and before the FROM line.</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">- Output.CSV can be any name you desire. They can also be the same name across multiple queries because LPS always appends the exact time to the end of the file name. </span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">- The resolution of the timestamp appended to the CSV filename is in milliseconds.</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">To make adding this line easier and prevent mistakes you can use the F8 key. Just type INTO + a single space then click F8 and you&#39;ll get the following:</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><b>INTO &#39;[OUTFILEPATH]\Output.CSV&#39; </b></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">- OUTFILEPATH is set in Options &gt; Preferences &gt; Default Output Path.</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">- This is easily accessed by clicking the OUT button (2nd button from the right and is green in color).</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">- You do not necessarily need to use OUTFILEPATH. You can hardcode the path in the queries but isn&#39;t generally recommended for consistencies&rsquo; sake:</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><b>INTO &#39;D:\LPSREPORTS\ActiveSyncErrors.CSV&#39; </b></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="font-size:large;"><span style="font-size:14pt;">&nbsp;</span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><span style="font-size:medium;"><span style="font-size:12pt;"><b>Summary</b></span></span></span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">We can save both log file lists and query lists for later use.</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">We can automate LPS to use those lists:</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LPS.EXE batchfile.xml folderfile.xml</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">We can tell LPS to auto close by using the silent switch</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LPS.EXE batchfile.xml folderfile.xml silent</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">We can use the Window&#39;s Scheduled Tasks to run these a specified times. For example once all set up, we could have specific ActiveSync reports from all servers in a CAS array waiting for us when we arrive the next day.</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;** If you want to edit an existing query in the library, they are read-only by default. You can make them writeable by clicking the little orange lock just above the query window:</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;">&nbsp;</span></span></div>
<div style="margin:0px;"><span style="font-family:Calibri,sans-serif;font-size:small;"><span style="font-size:11pt;"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/90/13/LPSLock.png" original-url="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-90-13/LPSLock.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/90/13/LPSLock.png" original-url="http://blogs.technet.com/resized-image.ashx/__size/550x314/__key/communityserver-blogs-components-weblogfiles/00-00-00-90-13/LPSLock.png" border="0" /></a><br /></span></span></div>]]></content:encoded>
    </item>
    <item>
      <title>Log Parser Studio V2 Updated (12/11/2013)</title>
      <link>https://docs.microsoft.com/archive/blogs/karywa/log-parser-studio-v2-updated-12112013</link>
      <pubDate>Wed, 11 Dec 2013 13:28:00 GMT</pubDate>
      <dc:creator><![CDATA[Kary Wall]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/karywa/2013/12/11/log-parser-studio-v2-updated-12112013/</guid>
      <description><![CDATA[The latest bits for LPS 2.0 are now available. This update contains a number of small fixes and...]]></description>
      <content:encoded><![CDATA[<p>The latest bits for LPS 2.0 are now available. This update contains a number of small fixes and enhancements including the promised fix of enabling the &quot;Use Double Quotes&quot; option for IIS Advanced Logging. The latest bits and associated links are below.</p>
<p>&nbsp;Download the latest version of LPS:</p>
<p><a href="http://gallery.technet.microsoft.com/Log-Parser-Studio-cd458765">http://gallery.technet.microsoft.com/Log-Parser-Studio-cd458765</a></p>
<p>&nbsp;</p>
<p>There is also the ability to query Dynamics CRM logs. The log type is listed as &quot;CRMLOG&quot; in LPS.&nbsp;For more information see the following link.</p>
<p><a href="http://support.microsoft.com/kb/907490">http://support.microsoft.com/kb/907490</a></p>
<p>&nbsp;</p>
<p><span style="font-size:medium;"><strong>Change List</strong></span></p>
<p>+ Added custom support for Dynamics CRM tracing.</p>
<p>+Added default backslash to iCheckPoint for CSV because null<br />crashes PS export for CSV.</p>
<p>+Fixed chart type dropdown focus issue.</p>
<p>+Rewrote InputFormat parsing so that we derive the actual<br />name instead of [name, {type}] etc.</p>
<p>+Enabled IISW3C double quotes for IIS Advanced Logging. *** (Update - There is an issue with this fix which is being investigated. In the interim please use the workaround found<a href="/b/karywa/archive/2013/06/28/log-parser-studio-and-iis-advanced-logging.aspx"> here</a>.)</p>
<p>+Added Accept/Cancel buttons for Enter/ESC .</p>
<p>+Fixed PowerShell &quot;tabs&quot; param issue.</p>
<p>+Removed ValueFromPipeline from PS Script Template.</p>
<p>+Added Accept/Cancel buttons for Enter/ESC.</p>
<p>+Added cancel buttons/ESC functionality to format dialogs.</p>
<p>+Updated FunctionReference.html</p>
<p>+Added queries for ActiveSync Troubleshooting Guide<br />Walkthrough (Ref: <a href="http://support.microsoft.com/common/survey.aspx?scid=sw;en;3616&amp;showpage=1">http://support.microsoft.com/common/survey.aspx?scid=sw;en;3616&amp;showpage=1</a>)</p>
<p>+Multiple small fixes/improvements/enhancements</p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>Log Parser Studio and IIS Advanced Logging</title>
      <link>https://docs.microsoft.com/archive/blogs/karywa/log-parser-studio-and-iis-advanced-logging</link>
      <pubDate>Fri, 28 Jun 2013 08:50:00 GMT</pubDate>
      <dc:creator><![CDATA[Kary Wall]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/karywa/2013/06/28/log-parser-studio-and-iis-advanced-logging/</guid>
      <description><![CDATA[I was approached on two occasions with questions about LPS and IIS Advanced Logging&nbsp;and if LPS...]]></description>
      <content:encoded><![CDATA[<p>I was approached on two occasions with questions about LPS and <a title="IIS Advanced Logging" href="http://www.iis.net/learn/extensions/advanced-logging-module/advanced-logging-for-iis-custom-logging">IIS Advanced Logging</a>&nbsp;and if LPS can successfully query these logs. The use double-quotes option isn&#39;t yet available in LPS (hopefully coming soon) so here is a workaround&nbsp;that should&nbsp;suffice for now:</p>
<ol>
<li>Open an existing IIS Advanced log, copy the fields header row, paste into a text file (let&#39;s call it IISADVHeader.txt) and save it somewhere. You&#39;ll need to remove the #Fields comment as well. Here is a before/after:<br /><br />Before:<strong> <br /><span style="color:#ff0000;">#Fields:</span></strong>&nbsp; <strong>date time cs-uri-stem cs-uri-query s-contentpath sc-status s-computername cs(Referer) sc-win32-status sc-bytes cs-bytes</strong><br /><br />After:<br /> <strong>date time cs-uri-stem cs-uri-query s-contentpath sc-status s-computername cs(Referer) sc-win32-status sc-bytes cs-bytes<br /><br /></strong></li>
<li>Point LPS to the IIS Advanced log(s) you wish to query.</li>
<li>Create a new query. Keep the default LPS new query for your initial testing. You can modify the query to your needs after we know we are configured correctly.</li>
<li>Choose TSV as the log type.</li>
<li>Open the TSV log settings by clicking the properties button (The gray &quot;gear&quot; icon to the right of the log type drop down in LPS).</li>
<li>Change iSeparator from&nbsp;&quot;tab&quot;&nbsp;to &quot;space&quot;, add the path to the header file you just created for iHeaderFile and change nSkipLines to 4 then click OK:<br /><br /><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/90/13/4670.TSVIISADV.PNG" original-url="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-90-13/4670.TSVIISADV.PNG"><img width="408" height="253" alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/90/13/4670.TSVIISADV.PNG" original-url="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-90-13/4670.TSVIISADV.PNG" border="0" /></a><br /><br /></li>
<li>Run the query, that&#39;s it. If you (or I) didn&#39;t miss anything you should be up and running with LPS and Advanced IIS Logging:</li>
</ol>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/90/13/7245.IISADVGrid.PNG" original-url="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-90-13/7245.IISADVGrid.PNG"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/90/13/7245.IISADVGrid.PNG" original-url="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-90-13/7245.IISADVGrid.PNG" border="0" /></a></p>
<p>Remember that this is a workaround.&nbsp;As soon as I can get the&nbsp;IISW3C double-quotes option tested again, I&#39;ll enable it and this workaround will no longer be required.</p>
<p>If you don&#39;t want those double-quotes in the final output you can remove them using the REPLACE_STR() function. Here is an example using the&nbsp;cs(Referer) IIS field which in the advanced logs is surrounded by quotes:</p>
<p><strong><span style="color:#3366ff;">SELECT REPLACE_STR(cs(Referer), &#39;&quot;&#39;, &#39;&#39;) AS Referrer FROM &#39;[LOGFILEPATH]&#39;</span></strong></p>
<p><span style="color:#000000;">You would obviously want to include more fields in the above query. It&#39;s just a quick example of how to remove those pesky double-quotes if you need to. Notice I created an alias called Referrer for the field name. Otherwise the field name will be pretty ugly when the query executes:</span></p>
<p><span style="color:#000000;">The field name will appear like this without using an alias: </span></p>
<p><span style="color:#000000;"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/90/13/6866.TSVNoAlias.PNG" original-url="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-90-13/6866.TSVNoAlias.PNG"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/90/13/6866.TSVNoAlias.PNG" original-url="http://blogs.technet.com/resized-image.ashx/__size/400x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-90-13/6866.TSVNoAlias.PNG" border="0" /></a></span></p>
<p><span style="color:#000000;">But like this with an alias. I think this looks much better:</span></p>
<p><span style="color:#000000;"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/90/13/1411.TSVWithAlias.PNG" original-url="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-90-13/1411.TSVWithAlias.PNG"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/90/13/1411.TSVWithAlias.PNG" original-url="http://blogs.technet.com/resized-image.ashx/__size/311x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-90-13/1411.TSVWithAlias.PNG" border="0" /></a></span></p>]]></content:encoded>
    </item>
    <item>
      <title>Log Parser Studio - Exchange 2003 Message Tracking Logs</title>
      <link>https://docs.microsoft.com/archive/blogs/karywa/log-parser-studio-exchange-2003-message-tracking-logs</link>
      <pubDate>Wed, 19 Jun 2013 19:12:00 GMT</pubDate>
      <dc:creator><![CDATA[Kary Wall]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/karywa/2013/06/19/log-parser-studio-exchange-2003-message-tracking-logs/</guid>
      <description><![CDATA[If you&nbsp;saw the&nbsp;post about Exchange log file formats&nbsp;known from within&nbsp;LPS as...]]></description>
      <content:encoded><![CDATA[<p>If you&nbsp;saw the&nbsp;post about Exchange log file formats&nbsp;known from within&nbsp;LPS as<a title="  &quot;EEL&quot; and &quot;EELX&quot;" href="http://blogs.technet.com/b/karywa/archive/2013/06/04/log-parser-studio-what-s-an-eel-log-anyway.aspx"> "EEL" and "EELX"</a>&nbsp;you may remember that they all&nbsp;follow the same basic format albeit with a few exceptions. Exchange 2003 message tracking logs is&nbsp;one of those exceptions. Exchange 2003 message tracking logs are in a TSV type format so the TSV input log type works but it needs a slight&nbsp;modification of the default settings. Here's how to set up LPS to query these logs:</p>
<p>Point LPS to the Exchange 2003 message tracking logs in the log file manager window.</p>
<ol>
<li>Create a new query. File &gt; New Query or click the new query icon (far left in the toolbar).</li>
<li>Next you'll need to change the log file type to TSVLOG:<br /><br /><br /><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/90/13/0243.ShowLogType.png" original-url="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-90-13/0243.ShowLogType.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/90/13/0243.ShowLogType.png" original-url="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-90-13/0243.ShowLogType.png" alt="" border="0" /></a></li>
<li>Once TSVLOG has been selected click the gear icon to bring up the properties for TSV:<br /><br /><br /><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/90/13/2746.ShowLogTypeProps.png" original-url="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-90-13/2746.ShowLogTypeProps.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/90/13/2746.ShowLogTypeProps.png" original-url="http://blogs.technet.com/resized-image.ashx/__size/545x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-90-13/2746.ShowLogTypeProps.png" alt="" border="0" /></a><br /><br /></li>
<li>Once the properties window appears, the only change that is required is to set nSkipLines to a value of 2 and click OK:<br /><br /><br /><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/90/13/6825.TSVProps.png" original-url="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-90-13/6825.TSVProps.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/90/13/6825.TSVProps.png" original-url="http://blogs.technet.com/resized-image.ashx/__size/340x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-90-13/6825.TSVProps.png" alt="" border="0" /></a><br /><br /></li>
<li>Press F5 to run the query.</li>
</ol>
<p>Remember that you can revert to the default TSV format at any time by opening the properties window and clicking reset. The properties window will close and the defaults are now in effect. To bring this one to a close, I'll leave you with a starter query for Exchange 2003 Message Tracking. This query counts the number of messages per sender, recipient, message subject, date and client IP address for the top 20,000 messages in order of occurence:</p>
<p><span style="color: #3366ff;"><strong><span style="color: #008000;">/* Exchange 2003 Message Tracking - Count Messages per Sender/Recipient/Date/IP/Subject */ </span> <br /><br /><span style="color: #282828;">SELECT TOP 20000 [# Date] AS Date, client-ip, Count(*) AS Total, Sender-Address, Recipient-Address, Message-Subject <br />FROM '[LOGFILEPATH]' <br />GROUP BY Date, client-ip, Sender-Address, Recipient-Address, Message-Subject <br /><br /></span></strong></span>You can copy and paste the above into LPS or you can import/merge the XML file below into the LPS library. To import, from LPS choose File &gt; Import &gt; XML to Library. Make absolutely sure you choose "Merge now" instead of "Replace now" then search for "Exchange 2003:" in the library without the quotes.</p>
<p>You can also import it directly into the new query you setup above (bypassing the library)&nbsp;by right-clicking inside the query window and choosing Import. Change the file type to .XML, load the file and if you have already created a query and made the settings above,&nbsp;it is ready to run. Just be sure to save it (File &gt; Save or CTRL+S)&nbsp;if you decide you want it as part of the current library.<br />&nbsp;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/telligent.evolution.components.attachments/01/9013/00/00/03/58/00/67/Exchange2K3MT1.XML" original-url="http://blogs.technet.com/cfs-filesystemfile.ashx/__key/telligent-evolution-components-attachments/01-9013-00-00-03-58-00-67/Exchange2K3MT1.XML">Exchange2K3MT1.XML</a></p>]]></content:encoded>
    </item>
    <item>
      <title>Log Parser Studio - Tips and Tricks</title>
      <link>https://docs.microsoft.com/archive/blogs/karywa/log-parser-studio-tips-and-tricks</link>
      <pubDate>Mon, 17 Jun 2013 18:40:00 GMT</pubDate>
      <dc:creator><![CDATA[Kary Wall]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/karywa/2013/06/17/log-parser-studio-tips-and-tricks/</guid>
      <description><![CDATA[I&nbsp;mentioned in several&nbsp;posts that there were lots of improvements and hidden nuggets in...]]></description>
      <content:encoded><![CDATA[<p>I&nbsp;mentioned in several&nbsp;posts that there were lots of improvements and hidden nuggets in <a title="Log Parser Studio" href="http://gallery.technet.microsoft.com/Log-Parser-Studio-cd458765" target="_blank">Log Parser Studio</a>&nbsp;that haven't been documented yet. Well, let's start listing them.&nbsp;Many of these are either concepts or simple one-off shortcuts that may not fit a formal structure all that well so here goes:</p>
<p><strong>The Purple Timer</strong></p>
<p>I wonder how many people notice this. When LPS is executing one or more queries, at some point during&nbsp;thier execution, the timer that displays the query's elapsed time may suspiciously turn from black to purple text.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/90/13/2376.PurpleText.png" original-url="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-90-13/2376.PurpleText.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/90/13/2376.PurpleText.png" original-url="http://blogs.technet.com/resized-image.ashx/__size/419x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-90-13/2376.PurpleText.png" alt="" border="0" /></a></p>
<p>When LPS executes a query, it formats it into a Log Parser 2.2 friendly format, creates new thread and hands this off to the Log Parser 2.2 engine. LP 2.2 begins processing the logs and doesn't report back until it has completed most of its work. If the query results are going to be sent to the result grid in LPS, it has to populate a dataset in the background that gets passed back to the LPS GUI which in turn fills the grid with that data AKA the results.</p>
<p>So the short story is that when the timer text turns purple, the results have been returned but are being processed on their way back to the grid. If the text is black, the underlying LP 2.2 engine is still churning away and LPS hasn't received anything back yet. But wait, there's more...You can use this indication as to how efficient your query is,&nbsp;and whether it would be better served as an export to CSV (using the INTO statement)&nbsp;and bypassing the grid altogether, or allowing them to be sent back to the LPS grid. Here&nbsp;are a couple rules&nbsp;of thumb:</p>
<ul>
<li>If the text stays purple most of the time and queries seem to run longer than they should, send the output to CSV instead. Bypassing the grid and going straight to CSV is always faster.</li>
<li>If it is black most of the time and purple much less, it probably means its OK for the grid. It <em>could </em>also&nbsp;possibly point to a query that is causing excessive recursion in the underlying LP engine. IE: The query is causing LP 2.2 to iterate&nbsp;the same fields multiple times per pass and one or more of those fields also contain lots of text to iterate through.</li>
</ul>
<p>To elaborate on this&nbsp;iteration, consider the IIS field cs-uri-query on an Exchange 2010 CAS server. Exchange uses this field extensively to&nbsp;log performance information&nbsp;about the request resulting in very long strings in this field:</p>
<p><span style="font-size: x-small;">&nbsp;<em>ae=Item&amp;a=Preview&amp;t=IPM.Conversation&amp;id=CID.rVJdahzZXGamqABCVOAJQYQ%3d%3d.LgAAAAAlZwvuGcy3Q4dSE2TQ7naBAQAMifUxL48tRKNTKMcW4SQmAAAAtzWGAAAB.3wQFFFC3NYIAAAAABPgGAADDAAAA%3d&amp;pf=1&amp;UA=0&amp;canary=536bc4b7ca264eb2501f7bb958d55aca&amp;SP=1&amp;Initial+Budget&gt;&gt;Conn:1,HangingConn:0,AD:60000/60000/0%,CAS:90000/89645/1%,AB:60000/60000/0%,RPC:90000/89775/1%,FC:1000/0,Policy:DefaultThrottlingPolicy_57bas234-6a17-4d84-8873-4cde234b8a5f,Norm&amp;v=14.1.287.0&amp;mbx=MBX1CAS-37.EX123.contoso.internal&amp;sessionId=536bc4b7ca264eb2801f7bb958d55aca&amp;prfltncy=16&amp;prfrpccnt=3&amp;prfrpcltncy=16&amp;prfldpcnt=0&amp;prfldpltncy=0&amp;prfavlcnt=0&amp;prfavlltncy=0&amp;End+Budget&gt;&gt;Conn:1,HangingConn:0,AD:60000/60000/0%,CAS:90000/89630/1%,AB:60000/60000/0%,RPC:90000/89760/1%,FC:1000/0,Policy:DefaultThrottlingPolicy_57bdd422-6a17-4d84-8873-dcde358b8a5f,Norm</em></span></p>
<p>Now imagine a query searching for any occurrence of MBX1, MBX2, or MBX3: <span style="color: #3366ff;"><strong>SELECT * FROM '[LOGFILEPATH]' WHERE cs-uri-query <span style="color: #ff0000;">LIKE '%MBX1%'</span> OR cs-uri-query <span style="color: #ff0000;">LIKE '%MBX2%'</span> OR cs-uri-query <span style="color: #ff0000;">LIKE '%MBX3%'</span></strong></span></p>
<p>Due to the existence of three LIKE statements all with wildcards (%)&nbsp;on both sides of the search term, that single field is going to take some extra time to parse. Imagine a few gigabytes of IIS logs and you'll understand how perfectly good query can result in churn. The above could probably be modified to be more efficient or you may rethink how you want to retrieve the data. Just remember, purple text = results are now being returned to LPS and black text = the underlying LP 2.2 engine is still searching the actual files on disk.</p>
<p><strong>Hover, Expand or Pop Out &nbsp;</strong></p>
<p>Since all types of logs are to be queried with varying field sizes LPS sets grid column widths to an assumed size. This means you'll have queries where you can't see all of a column because the text is longer than the column width. There are actually multiple shortcuts around this.</p>
<ol>
<li>Hover your mouse over the field. This will show the field in "most" of its entirety. If it is extremely long like the query string above then some of it will still be cut off.</li>
<li>Right-click &gt; Expand/Collapse which will expand&nbsp;that column width to encompass the cell with the longest line of text. A second click collapses in toggle fashion.</li>
<li>Press F4 which is exactly the same as #2 but functions&nbsp;as a&nbsp;toggle with a single key.</li>
<li>Double-click the cell itself which will display the field contents in a small popup window.</li>
</ol>
<p>If there is a large number of rows in your query result as in &gt;10000 then consider using #4. All the other options expand the entire column which means every cell has to be accessed, measured, resized etc. which is going to take some time and possibly cause the GUI to hang until it is finished.</p>
<p><strong>Quick Import</strong></p>
<p>I keep most queries I use in the library but I spend just as much time writing one-off queries for one-off situations; who knows what that may be but it usually results in my exporting that single query as either XML or SQL into folder that is common to the issue I am working with. At some later time&nbsp;I need to revisit the project so it's&nbsp;nice to have an easily accessible&nbsp;set of the&nbsp;exact&nbsp;queries I used previously. I don't really want to import them into the library, I just need to run them a couple times for that project etc.&nbsp;</p>
<p>Right-Click anywhere inside the query window, choose Import and browse to the SQL or XML query and voila it opens in the query window. It isn't in the library unless you click save otherwise it just falls away when you close the query window. I didn't need to import and mix it in with my main library queries, I just used them quickly and discarded.</p>
<p><strong>Search the Results</strong></p>
<p>The library search feature in LPS now extends into the queries themselves and is context sensitive. Let's say you have five query tabs, each&nbsp;with results. You notice the queries were really close to what you wanted but you would like to narrow those results a little further. The search feature now does this to the query tab that has focus. Just type what you are searching for and the results will be narrowed to any fields containing that search term. You can then narrow further by searching again as new searches only search the latest result.</p>
<p>The text turns a bluish color to signify the results are currently narrowed due to search. To return to the original full result set, just click the X on by the search text box. This works across all query tabs independently.</p>
<p><strong>Search the Library</strong></p>
<p>If you haven't noticed the categories feature has been deprecated. It is still available if&nbsp;needed in preferences by enabling legacy categories. However, it was deprecated because it didn't get used much (only from my visibility), took up real estate and the search function is so much better. That being said, all queries are typically prefixed by a categorical identifier of some sort. So if you want to only see OWA queries just type OWA: and click the search button. Or for only IIS specific queries search for IIS:. We get the exact same results. The main thing I wanted to mention is that with the query library growing, continuing this format and remembering the search library feature will get you to your queries quicker and easier.</p>
<p><strong>Copy Cells + Headers or Not</strong></p>
<p>If you don't already know all query results can by copied/pasted as needed. You can select cells in any manner you wish and only the selected cells get copied to the clipboard and the header/field names are included (CTRL+C or right-click &gt; copy). This is great for pasting into Excel or an email etc. Sometimes however, we might want just the contents of a cell such as when we need to use that cell value in a new query. To copy the cell contents with no headers use SHIFT+CTRL+C or right-click + SHIFT &gt; copy.</p>
<p><strong>Drag -n- Drop Columns</strong></p>
<p>If you have&nbsp;by chance ran a query, clicked the chart button but nothing happened you may not&nbsp;be aware&nbsp;the requirements for creating a chart. In order to draw the bars/lines on the chart it needs a number. That is always supplied by the contents of the second column in any result grid. For example if you were counting HTTP 500 errors per hour you'd want the time/hour in column one and the number of errors in column two. Knowing this you may also notice that there are lots of queries in the library that would/could make a great chart but the number value column is not in the column two position. What to do?</p>
<p>Just drag that column over into the column two position and click the chart button (or F6). If you have multiple columns you care about, you can drag any one you wish over and generate a chart from it so remember any query with at least two columns and one of those is a number can be charted, you just need to drag the numbered column into position two.</p>
<p><strong>Popular Keyboard Shortcuts</strong></p>
<p>There are 23 or so keyboard shortcuts but there are a handful that I think get the most use when writing queries. I use these constantly and I think they need to be shared:</p>
<p><strong>F7</strong> - Inserts the following: '[LOGFILEPATH]' <br />The above is a bit tricky quickly type and not miss anything. F7 inserts it for you.</p>
<p><strong>F8</strong> - Inserts the following: '[OUTFILEPATH]\<span style="background-color: #cc99ff;">Output.CSV'<br /><span style="background-color: #ffffff;">Output.CSV is auto-selected, just type the filename you wish to use. This is when you want to run a query to CSV, you can type INTO and press F8 and you are good to go.</span></span></p>
<p><span style="background-color: #cc99ff;"><span style="background-color: #ffffff;"><strong>F9</strong> - Inserts the following: LIKE '%%'<br />One of the most used SQL keywords in LPS. Another one that at least for me can be aggravating to type all the time. Pressing F9 and then typing the search term is much faster</span></span></p>
<p><span style="background-color: #cc99ff;"><span style="background-color: #ffffff;"><strong>SHIFT+F10</strong> - Inserts: </span></span>EXTRACT_PREFIX(EXTRACT_SUFFIX(FieldName, 0, 'StartChar'), 0, 'EndChar') as FieldAlias<br />If you remember the cs-uri-querystring example I posted above, there are lots of individual indicators tucked into that field. We can extract exactly the piece we want as its own field using the above statement. I happen to use it extensively in the library and you can probably see how much fun it would be to type it or find in another query and copy paste. So, there is now a shortcut key for it that I hope is self-explanatory. You'll need to replace the placeholder names with the real names AKA FieldName, StartChar, EndChar, FieldAlias:</p>
<ul>
<li>FieldName - The field you are extracting from such as cs-uri-query</li>
<li>StartChar - The actual character(s) that is the last char before the one you want.</li>
<li>EndChar - The actual character(s) that is just after the last one you want.</li>
<li>FieldAlias - What you want the column created to be named.</li>
</ul>
<p>For example if the cs-uri-query contained <em>&amp;user=user1&amp;id=123456;someotherinfo </em>and you wanted to extract the&nbsp;ID from that the following would accomplish this. Notice that 'id=' and the semicolon are our start and end chars and that the result would be 123456:</p>
<p><span style="color: #3366ff;"><strong>EXTRACT_PREFIX(EXTRACT_SUFFIX(cs-uri-query, 0, <span style="color: #ff0000;">'id=</span>'), 0, '<span style="color: #ff0000;">;</span>') as IDField</strong></span></p>
<p><strong>F5</strong> - Runs the query that is focused.</p>
<p><strong>F3</strong> - What was the name of that IIS field?<br />IIS logs are by far one of the most queried logs files. You may have noticed that the Log Type drop-down in the query window is blue text while all the others are black. That's why, there is such a chance that someone may be querying an IIS log, we wanted to make it easy to find. Additionally, those darn field names can be hard to remember. Just hit F3 and a window will pop up with the fieldnames for quick reference:</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/90/13/8182.F3.png" original-url="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-90-13/8182.F3.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/90/13/8182.F3.png" original-url="http://blogs.technet.com/resized-image.ashx/__size/249x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-90-13/8182.F3.png" alt="" border="0" /></a></p>
<p>If you are just looking for a single field name, double-click it and it will be copied to the clipboard and the window will automatically close. If you want to select multiple fields, use CTRL+Click to select the one's you want, now press enter and each of those will be copied to your clipboard and comma delimited ready to paste directly into the query window. Note that fields denoted with an asterisk are not enabled by default in IIS so it's important to remember that if you haven't previously enabled these in your IIS environment they will not appear in the logs.</p>
<p><strong><span style="background-color: #cc99ff;"><span style="background-color: #ffffff;">Auto-Select Tabs</span></span></strong></p>
<p><span style="background-color: #cc99ff;"><span style="background-color: #ffffff;">In preferences there is an option to "Auto-Select tab on query completion". If you are working in tab&nbsp;1 for example and you have a long running query in tab 10, LPS will automatically send you to that tab when the query completes. If disabled the query completes without taking you away from the tab you are currently working in.</span></span></p>
<p><strong><span style="background-color: #cc99ff;"><span style="background-color: #ffffff;">Query Logging</span></span></strong></p>
<p><span style="background-color: #cc99ff;"><span style="background-color: #ffffff;">For the heavy user, lots of queries are being written vs. just running queries from the library. I&nbsp;start working on&nbsp;query that does "x", spend some time on it, get distracted, close LPS thinking there was nothing I really wanted to save and bam, there was that one line in the query that I struggled over, has value and now is gone. It only took a few times of getting it too big a hurry and losing such moments of genius that a query logger was added to LPS. That's right, if the option is enabled, every single time you press the execute query button, the query gets appended to query.log along with its name, when it was executed and its log type. </span></span></p>
<p><span style="background-color: #cc99ff;"><span style="background-color: #ffffff;">So theoretically, you could realize you don't have a great query you thought you had, you know you ran it but you can't find it. It'll be waiting for you in the query log. :) Just remember to enable it in Options &gt; Preferences &gt; Log all queries to file. </span></span></p>
<p style="text-align: justify;"><span style="background-color: #cc99ff;"><span style="background-color: #ffffff;">The file is always written to the LPS output directory which you can set to whatever you wish in Options &gt; Preferences &gt; Default Output Path. It's the same directory that CSV output goes to by default. To quickly access the query log, click the OUT button just to the left of the PowerShell button on the main menu bar in LPS. and open query.log where the newest queries are at the bottom.&nbsp;</span></span></p>
<p style="text-align: justify;"><strong><span style="background-color: #cc99ff;"><span style="background-color: #ffffff;">Renaming Tabs</span></span></strong></p>
<p style="text-align: justify;"><span style="background-color: #cc99ff;"><span style="background-color: #ffffff;">You have twenty query tabs open, you are reviewing the results, you see something interesting, switch to another tab and forget which of the other 19 you were on. Right-click the tab and give it a name that makes sense to you. You can rename any query tab to anything you wish for quick access.</span></span></p>
<p style="text-align: justify;"><strong><span style="background-color: #cc99ff;"><span style="background-color: #ffffff;">Hide the Query Window</span></span></strong></p>
<p style="text-align: justify;"><span style="background-color: #cc99ff;"><span style="background-color: #ffffff;">The little "SQL" icon on the left of the query window just above the query, below the results grid and to the left of the orange lock shows/hides the query window. Once the query has executed and you need more grid real estate, click this button to hide the query.</span></span></p>
<p style="text-align: justify;"><strong><span style="background-color: #cc99ff;"><span style="background-color: #ffffff;">LP 2.2 Function List</span></span></strong></p>
<p style="text-align: justify;"><span style="background-color: #cc99ff;"><span style="background-color: #ffffff;">We found ourselves constantly browsing to and opening the LP 2.2 help file when referencing all the built in functions&nbsp;in LP 2.2. If you are an LP 2.2 query pro you probably use these functions quite a bit. Click SHIFT+F3 which will launch a copy of the LP 2.2 function list in the default browser. </span></span></p>
<p style="text-align: justify;"><strong><span style="background-color: #cc99ff;"><span style="background-color: #ffffff;">File Manager Tips</span></span></strong></p>
<p style="text-align: justify;"><span style="background-color: #cc99ff;"><span style="background-color: #ffffff;">The file manager is where we choose all the log files we need to query. You can add all the files you want including different log file types, then control which files are queried based on whether their respective checkboxes are checked. This is very handy and keeps file browsing at a minimum and you can keep paths you use often without having to remove and add back them later, just disable/enable them.</span></span></p>
<p style="text-align: justify;"><span style="background-color: #cc99ff;"><span style="background-color: #ffffff;">You may have a list of files that you return to but for whatever reason you want those exclusively available as a "set" of files. File &gt; Save from within the File Manger allows you to save all files listed as a .FLD file that you can load at anytime. This could be lots of files with lots of paths all conveniently saved in one file. Automation also uses this type of file. </span></span></p>
<p style="text-align: justify;"><span style="background-color: #cc99ff;"><span style="background-color: #ffffff;">Right-click any file in the list to copy its full path to the clipboard.</span></span></p>
<p style="text-align: justify;"><span style="background-color: #cc99ff;"><span style="background-color: #ffffff;">In the bottom right of the main LPS GUI you'll see the log file that is being queried. If there is more than one file being queried it will display as "Multiple Files". In either case, clicking the text opens the file manager for you.</span></span></p>
<p style="text-align: justify;"><strong><span style="background-color: #cc99ff;"><span style="background-color: #ffffff;">Library Tips</span></span></strong></p>
<p style="text-align: justify;"><span style="background-color: #cc99ff;"><span style="background-color: #ffffff;">All queries now include a date modified field on the far right. It's easy to tell when a query was last saved and you can sort by date modified.</span></span></p>
<p style="text-align: justify;"><span style="background-color: #cc99ff;"><span style="background-color: #ffffff;">Selecting a query then CTRL+C will copy the query name, description and the query itself to the Windows clipboard.</span></span></p>
<p style="text-align: justify;"><span style="background-color: #cc99ff;"><span style="background-color: #ffffff;">Pressing F2 from the library view will open the selected query in quick-edit mode allowing minor changes. This is so you can change query meta-data easily when you don't intend on modifying or executing the query. For example you saved it with the wrong log type or name and that's all you need to change. F2 makes it happen.</span></span></p>
<p style="text-align: justify;"><span style="background-color: #cc99ff;"><span style="background-color: #ffffff;">File &gt; Reload library will reload the last saved library. If you choose File &gt; Save Library any saved queries are permanently saved to the library. </span></span></p>
<p style="text-align: justify;"><span style="background-color: #cc99ff;"><span style="background-color: #ffffff;">You can export one, few, many queries in groups as XML files. You may have ten queries that you want to share or save with a project or issue you are working on so that all files involved with the project are in one location. File &gt; Export &gt; Queries as XML is the choice. Use CTRL+Click to select non-adjacent queries; only the selected queries will be written to the XML file which can be later imported as needed. This is most valuable if you don't always use the standard library. </span></span></p>
<p style="text-align: justify;"><span style="background-color: #cc99ff;"><span style="background-color: #ffffff;">For example you always export your custom queries leaving the default library as-is. This ultimately depends on the person and what works best for them. An advanced user may want to separate queries into mini-libraries that they load depending on the job at hand. The default library can always be recovered using Help &gt; Recover Library. </span></span></p>
<p style="text-align: justify;"><span style="background-color: #cc99ff;"><span style="background-color: #ffffff;">Lastly, LPS 2.0 includes a somewhat configurable library location option. In other words LPS can use a common AppData path for the library or it can be stored directly in the LPS installation directory. This had advantages and implications:</span></span></p>
<ul>
<li>
<div style="text-align: justify;"><span style="background-color: #cc99ff;"><span style="background-color: #ffffff;">Since LPS doesn't require an install you could make several copies of the LPS folder with each having it's own separate library; running LPS.exe from LPSFolder1 would use a different library than LPS.exe in LPSFolder2 and so on.</span></span></div>
</li>
<li>
<div style="text-align: justify;"><span style="background-color: #cc99ff;"><span style="background-color: #ffffff;">All instances use the exact same library because it is stored in the user's AppData directory.</span></span></div>
</li>
<li>
<div style="text-align: justify;"><span style="background-color: #cc99ff;"><span style="background-color: #ffffff;">If you place the LPS directory in a protected folder such as Program Files&nbsp; you must use AppData as the library location or UAC will prevent saving the library and you'll get an access denied error when saving queries.</span></span></div>
</li>
</ul>
<p style="text-align: justify;"><span style="background-color: #cc99ff;"><span style="background-color: #ffffff;">To modify this setting see Options &gt; Preferences &gt; Store library in AppData folder for UAC compatibility. The default is disabled or unchecked.</span></span></p>
<p style="text-align: justify;"><strong><span style="background-color: #cc99ff;"><span style="background-color: #ffffff;">CSV Tip</span></span></strong></p>
<p style="text-align: justify;"><span style="background-color: #cc99ff;"><span style="background-color: #ffffff;">If you are executing queries where the output is directed to a CSV file instead and you don't have auto-open CSV enabled, the CSV is created but doesn't automatically open. However, for any query that goes to CSV or TSV etc. the file name of the file created appears in the result grid. You can just click that to open it. If auto-open CSV is enabled the CSV will auto-open in the default CSV editor either when the query completes or if you are saving a result grid as CSV. To save results that are already in the grid as CSV, click the green export button&nbsp;(fourth&nbsp;icon from the left)&nbsp;on the main toolbar.</span></span></p>
<p style="text-align: justify;"><strong><span style="background-color: #cc99ff;"><span style="background-color: #ffffff;">Tool Tips</span></span></strong></p>
<p style="text-align: justify;"><span style="background-color: #cc99ff;"><span style="background-color: #ffffff;">Many buttons, icons and interface elements contain tool tip text. If you are wondering what a button does, hover your mouse over it for a few seconds.</span></span></p>
<p style="text-align: justify;"><span style="background-color: #cc99ff;"><span style="background-color: #ffffff;"><span style="background-color: #cc99ff;"><span style="background-color: #ffffff;">That should be a good start, as you can see there is more to LPS than meets the eye at first glance. I'll try to document more tips and tricks in the future.</span></span></span></span></p>]]></content:encoded>
    </item>
    <item>
      <title>Log Parser Studio 2.0 Released!</title>
      <link>https://docs.microsoft.com/archive/blogs/karywa/log-parser-studio-2-0-released</link>
      <pubDate>Mon, 17 Jun 2013 17:51:00 GMT</pubDate>
      <dc:creator><![CDATA[Kary Wall]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/karywa/2013/06/17/log-parser-studio-2-0-released/</guid>
      <description><![CDATA[After quite a bit of blood, sweat and tears, LPS 2.0 was released today. A large number of...]]></description>
      <content:encoded><![CDATA[<p>After quite a bit of blood, sweat and tears, LPS 2.0 was released today. A large number of improvements have been made since V1. When considering improvements many were the result of either feedback from engineers and customers&nbsp;or, removing workflow barriers whenever I ran into them. In other words since I use LPS everyday I inevitably hit something that makes me think "well that could be easier than it is" which led attempting to meet that need, OK that's better, rinse and repeat.</p>
<p>This means that many times I was&nbsp;running LPS&nbsp;in debug mode in the Visual Studio 2012 development environment.&nbsp;If I stumbled across&nbsp;something that could be a little better, I could&nbsp;make the change right then and there.&nbsp;So, there was a good bit of refinement based on day to day&nbsp;use which I hope will provide the same value to you.</p>
<p>I'll be posting many of these improvements along with their explanations in the very near future so be sure to keep checking back as there will be goodies abound. :) In the meantime, check out the EHLO article, download&nbsp;LPS 2.0, check out the existing articles to experience some of the new stuff: Here is the EHLO article.</p>
<p><a href="http://blogs.technet.com/b/exchange/archive/2013/06/17/log-parser-studio-2-2-is-now-available.aspx">http://blogs.technet.com/b/exchange/archive/2013/06/17/log-parser-studio-2-2-is-now-available.aspx</a></p>
<p>&nbsp;</p>
<p>Direct link to the page with the latest bits:</p>
<p><a href="http://gallery.technet.microsoft.com/Log-Parser-Studio-cd458765">http://gallery.technet.microsoft.com/Log-Parser-Studio-cd458765</a></p>
<p>&nbsp;</p>
<p>The existing articles on LPS:</p>
<p><a href="http://blogs.technet.com/b/karywa/">http://blogs.technet.com/b/karywa/</a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>Log Parser Studio - Upgrading from V1 to V2</title>
      <link>https://docs.microsoft.com/archive/blogs/karywa/log-parser-studio-upgrading-from-v1-to-v2</link>
      <pubDate>Wed, 05 Jun 2013 11:39:00 GMT</pubDate>
      <dc:creator><![CDATA[Kary Wall]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/karywa/2013/06/05/log-parser-studio-upgrading-from-v1-to-v2/</guid>
      <description><![CDATA[If you are installing Log Parser Studio for the first time, you don't need anything in this post. If...]]></description>
      <content:encoded><![CDATA[<p>If you are installing Log Parser Studio for the first time, you don't need anything in this post. If this your first time using LPS please see <a title="this" href="http://blogs.technet.com/b/karywa/archive/2013/04/21/getting-started-with-log-parser-studio.aspx">this</a>&nbsp;post which explains the prerequisites and how to get LPS up and running quickly.</p>
<p>If you already have LPS V1 installed and you have been modifying existing queries and/or creating your own queries and adding them to the library there are a few things to be aware of. The changes that may affect upgrades are the schema of the library itself and, you'll need to import any custom or modified queries that you may have added in V1.</p>
<p>Ideally you will want to use the new V2 library then import your modified queries from V1. So, if you have custom V1 queries you wish to keep and you want to use LPS V2 along with it new queries, consider the following steps:</p>
<p>1. Before running V2, open LPS V1 and export any queries you wish to use keep using File &gt; Export &gt; Library as XML. You can select only the queries you wish to export by using CTRL+CLICK.</p>
<p>2. Run LPS V2. If you see any warnings about not being able to read/find/load the library or if you are asked to attempt to convert, just cancel and allow an empty library to be created.</p>
<p>3. Now choose Help &gt; Recover Library to generate the new V2 library.</p>
<p>4. Now we need to convert and import the queries you exported earlier and merge them into the new V2 library:<br />&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp; &raquo; Find the custom queries XML file you exported earlier and drag-n-drop it onto convertlib.exe. <br />&nbsp;&nbsp;&nbsp;&nbsp; &raquo; Convertlib will attempt to convert the exported queries to the new format. <br />&nbsp;&nbsp;&nbsp;&nbsp; &raquo; If the conversion is successful, use File &gt; Import &gt; XML to Library, load *_converted.XML.<br />&nbsp;&nbsp;&nbsp;&nbsp; &raquo; Choose Merge Now to merge these into the new library. Do not choose replace now!</p>
<p>5. If you don't have any custom queries you wish to keep, just run LPS V2,&nbsp;if the library&nbsp;fails to load, cancel any warnings then&nbsp;Help &gt; Recover library.</p>
<p>The above covers most the common scenarios. If you don't have previously saved V1 queries you care about none of the above really applies other than step 5.</p>
<p>SUMMARY</p>
<ul>
<li>If you have V1 and simply want to upgrade to V2, just run V2. If there are warnings that the library can't be found/loaded then cancel the warning, Help &gt; Recover Library.</li>
<li>If you have V1 and you also have custom queries in the library that you don't want to lose, export them first from V1, convert with convertlib.exe and import back into LPS V2.</li>
<li>If you don't have LPS V1 and you just downloaded LPS V2 and want to use it now you don't have to do anything.</li>
</ul>
<p>IMPORTANT</p>
<p>LPS is designed to be self-contained, in other words it doesen't require an install. If you decide to place LPS in a protected location such as the Program Files directory you must check the check box for the option below in preferences. If you run LPS from a protected location you will get access denied errors when saving queries etc. If you run LPS from any other non-protected location you do not need this setting:</p>
<p>"Store library in AppData folder for UAC compatibility" [x]</p>
<p>Lastly, you can enable the option even when it isn't needed if you want all LPS V2&nbsp;installs to share the same library.</p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
  </channel>
</rss>