<?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: Search time field extraction not showing in available fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-time-field-extraction-not-showing-in-available-fields/m-p/112323#M29513</link>
    <description>&lt;P&gt;That did it.  You know, I looked at this over and over thinking it was something like this and kept missing it.&lt;/P&gt;

&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jun 2014 19:14:00 GMT</pubDate>
    <dc:creator>dkichline</dc:creator>
    <dc:date>2014-06-19T19:14:00Z</dc:date>
    <item>
      <title>Search time field extraction not showing in available fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-time-field-extraction-not-showing-in-available-fields/m-p/112320#M29510</link>
      <description>&lt;P&gt;I am attempting to perform a search time field extraction via the rex command.  I use the default field of _raw and give it a regex with named groups.  None of my named groups are showing up as an available field to select from.&lt;/P&gt;

&lt;P&gt;Essentially, I am parsing a custom apache access log:&lt;/P&gt;

&lt;P&gt;An example of a line of data is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;9.999.999.999 9.999.999.9 xxxxxxxx  [17/Jun/2014:23:11:43 -0400] "GET /someapp/css/windows/default.css HTTP/1.1" 200 767 "protocol://www.ourserver.com/someapp/some.jsp?param=1&amp;amp;param2=a" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The search I use is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source=/issue.log| rex "(?:[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+, )?(?&amp;lt;forwardedforip&amp;gt;[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+|\-) (?&amp;lt;remoteip&amp;gt;[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+) (?&amp;lt;userid&amp;gt;\S+|\-)[ ]+\[(?&amp;lt;day&amp;gt;\d+)/(?&amp;lt;month&amp;gt;\w+)/(?&amp;lt;year&amp;gt;\d+):(?&amp;lt;hour&amp;gt;\d+):(?&amp;lt;minute&amp;gt;\d+):(?&amp;lt;second&amp;gt;\d+) (&amp;lt;?timezone&amp;gt;-\d+)] \"(?&amp;lt;action&amp;gt;\w+) (?&amp;lt;url&amp;gt;.*?)(?&amp;lt;parameters&amp;gt;\?.*?)? (?&amp;lt;httpversion&amp;gt;\S+)\" (?&amp;lt;httpstatus&amp;gt;\d+) (?&amp;lt;responsesize&amp;gt;\d+|\-) \"(?&amp;lt;refererurl&amp;gt;.*?)\" \"(?&amp;lt;useragent&amp;gt;.*?)\""
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any ideas why my named groups are not showing up?  This regex works without the named groups in regex testing apps.  I just cannot get it to be recognized by Splunk.&lt;/P&gt;

&lt;P&gt;thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2014 18:56:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-time-field-extraction-not-showing-in-available-fields/m-p/112320#M29510</guid>
      <dc:creator>dkichline</dc:creator>
      <dc:date>2014-06-19T18:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Search time field extraction not showing in available fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-time-field-extraction-not-showing-in-available-fields/m-p/112321#M29511</link>
      <description>&lt;P&gt;However, if I look at a specific field, Apache_Request, it works!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source=/issue.log| rex field="Apache_Request" "(?&amp;lt;action&amp;gt;\w+) (?&amp;lt;url&amp;gt;.*?)(?&amp;lt;parameters&amp;gt;\?.*?)? (?&amp;lt;httpversion&amp;gt;\S+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Jun 2014 19:10:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-time-field-extraction-not-showing-in-available-fields/m-p/112321#M29511</guid>
      <dc:creator>dkichline</dc:creator>
      <dc:date>2014-06-19T19:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Search time field extraction not showing in available fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-time-field-extraction-not-showing-in-available-fields/m-p/112322#M29512</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;P&gt;I believe you just misplaced one '?' for the timezone field extraction. Remaining thing works.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source=/issue.log | rex "(?:[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+, )?(?&amp;lt;forwardedforip&amp;gt;[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+|\-) (?&amp;lt;remoteip&amp;gt;[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+) (?&amp;lt;userid&amp;gt;\S+|\-)[ ]+\[(?&amp;lt;day&amp;gt;\d+)/(?&amp;lt;month&amp;gt;\w+)/(?&amp;lt;year&amp;gt;\d+):(?&amp;lt;hour&amp;gt;\d+):(?&amp;lt;minute&amp;gt;\d+):(?&amp;lt;second&amp;gt;\d+) (?&amp;lt;timezone&amp;gt;-\d+)] \"(?&amp;lt;action&amp;gt;\w+) (?&amp;lt;url&amp;gt;.*?)(?&amp;lt;parameters&amp;gt;\?.*?)? (?&amp;lt;httpversion&amp;gt;\S+)\" (?&amp;lt;httpstatus&amp;gt;\d+) (?&amp;lt;responsesize&amp;gt;\d+|\-) \"(?&amp;lt;refererurl&amp;gt;.*?)\" \"(?&amp;lt;useragent&amp;gt;.*?)\""
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Jun 2014 19:11:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-time-field-extraction-not-showing-in-available-fields/m-p/112322#M29512</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-06-19T19:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Search time field extraction not showing in available fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-time-field-extraction-not-showing-in-available-fields/m-p/112323#M29513</link>
      <description>&lt;P&gt;That did it.  You know, I looked at this over and over thinking it was something like this and kept missing it.&lt;/P&gt;

&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2014 19:14:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-time-field-extraction-not-showing-in-available-fields/m-p/112323#M29513</guid>
      <dc:creator>dkichline</dc:creator>
      <dc:date>2014-06-19T19:14:00Z</dc:date>
    </item>
  </channel>
</rss>

