<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Use Regex to extract time-take field from IIS logs in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Use-Regex-to-extract-time-take-field-from-IIS-logs/m-p/126015#M34096</link>
    <description>&lt;P&gt;Try:&lt;BR /&gt;
&lt;CODE&gt;your search |rex ".*\s(?P&amp;lt;TimeTaken&amp;gt;\d+)$" |table TimeTaken&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Apr 2014 17:03:04 GMT</pubDate>
    <dc:creator>lukejadamec</dc:creator>
    <dc:date>2014-04-09T17:03:04Z</dc:date>
    <item>
      <title>Use Regex to extract time-take field from IIS logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-Regex-to-extract-time-take-field-from-IIS-logs/m-p/126014#M34095</link>
      <description>&lt;P&gt;I'm a noob to regex. I'm trying to extract the time-taken field from our IIS logs (this is the very last entry in the IIS log) Below is a sample of an entry in our IIS logs:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2014-04-09 12:33:43 W3SVC212014703889 HostName-GoesHere 192.168.1.1 POST /NET/forms/action.cfm - 80 - 10.10.10.10 HTTP/1.1 Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+5.1;+Trident/4.0;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729;+.NET4.0C;+.NET4.0E) __utma=0160643.09453435.371030337.371123455.371206007.3;+CFID=0934024;+CFTOKEN=4326922;+LastMRH_Session=f343018;+F5_ST=1,1,1,397046727,04800;+JSESSIONID=430d83085f0220a92cb5b1184b305a2d501;+TS8ada1b=5a642dc1bf90ac67c6b2aa83fa05b09abbd49a527d4ef10353453dc660ac0ec5504bf0e2 &lt;A href="https://www.stuff.com/NET/forms/action.cfm" target="test_blank"&gt;https://www.stuff.com/NET/forms/action.cfm&lt;/A&gt; &lt;A href="https://community.splunk.com/www.stuff.com" target="test_blank"&gt;www.stuff.com&lt;/A&gt; 302 0 0 426 1197 31
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The value I want to extract to a field called "time-taken" is the number 31 above, the very last entry in the log file. And for IIS logging purposes there is always a space before it, and it is always the last entry in the log.&lt;/P&gt;

&lt;P&gt;Many thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2014 16:58:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-Regex-to-extract-time-take-field-from-IIS-logs/m-p/126014#M34095</guid>
      <dc:creator>hagjos43</dc:creator>
      <dc:date>2014-04-09T16:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Use Regex to extract time-take field from IIS logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-Regex-to-extract-time-take-field-from-IIS-logs/m-p/126015#M34096</link>
      <description>&lt;P&gt;Try:&lt;BR /&gt;
&lt;CODE&gt;your search |rex ".*\s(?P&amp;lt;TimeTaken&amp;gt;\d+)$" |table TimeTaken&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2014 17:03:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-Regex-to-extract-time-take-field-from-IIS-logs/m-p/126015#M34096</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2014-04-09T17:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: Use Regex to extract time-take field from IIS logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-Regex-to-extract-time-take-field-from-IIS-logs/m-p/126016#M34097</link>
      <description>&lt;P&gt;You can also use the automated field extracter for this.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2014 17:04:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-Regex-to-extract-time-take-field-from-IIS-logs/m-p/126016#M34097</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2014-04-09T17:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Use Regex to extract time-take field from IIS logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-Regex-to-extract-time-take-field-from-IIS-logs/m-p/126017#M34098</link>
      <description>&lt;P&gt;PERFECT! THANK YOU!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2014 17:06:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-Regex-to-extract-time-take-field-from-IIS-logs/m-p/126017#M34098</guid>
      <dc:creator>hagjos43</dc:creator>
      <dc:date>2014-04-09T17:06:29Z</dc:date>
    </item>
  </channel>
</rss>

