<?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: In line rex not working once moved to Field Extraction in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/In-line-rex-not-working-once-moved-to-Field-Extraction/m-p/85383#M21804</link>
    <description>&lt;P&gt;As you mentioned: Field Discovery was set to "OFF"&lt;/P&gt;

&lt;P&gt;Field discovery is the process Splunk uses to extract &lt;B&gt;fields aside from default fields&lt;/B&gt; such as host, source, and sourcetype. This means that Splunk only returns information on default fields and fields that are required to fulfill your search (if you are searching on certain fields, it will extract those fields). &lt;/P&gt;

&lt;P&gt;so you must include &lt;BR /&gt;
  | fields httpTimeStamp, httpClientIp, httpMethod, httpUri, httpResponseCode, httpBytesDownloaded, httpDownloadTime&lt;/P&gt;

&lt;P&gt;or mention them in some other explicit way in order for Splunk to extract them when Field Discovery is off. &lt;/P&gt;

&lt;P&gt;If you were testing with just the sourcetype or with * you wouldn't have seen them.&lt;/P&gt;</description>
    <pubDate>Fri, 05 Apr 2013 01:58:37 GMT</pubDate>
    <dc:creator>rsennett_splunk</dc:creator>
    <dc:date>2013-04-05T01:58:37Z</dc:date>
    <item>
      <title>In line rex not working once moved to Field Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/In-line-rex-not-working-once-moved-to-Field-Extraction/m-p/85382#M21803</link>
      <description>&lt;P&gt;Sample log entry:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;23:36:15 '99.999.999.999' GET /downloads//999/SomeProduct/GetComponent/Foo.exe 'Private Message' 200 5814120 19.391&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"Private Message" | rex "(?&amp;lt;httpTimeStamp&amp;gt;\d\d\:\d\d\:\d\d) \'(?&amp;lt;httpClientIp&amp;gt;\d*\.\d*\.\d*\.\d*)\' (?&amp;lt;httpMethod&amp;gt;\w*) (?&amp;lt;httpUri&amp;gt;[^ ]*) \'CitrixOnline Installer-Downloader\' (?&amp;lt;httpResponseCode&amp;gt;\d+) (?&amp;lt;httpBytesDownloaded&amp;gt;[0-9\-]*) (?&amp;lt;httpDownloadTime&amp;gt;[0-9\.]*)" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In line this rex works exactly as I would expect. Because i do not want to type that out every time i need info on http I added to Manager &amp;gt;&amp;gt; Fields &amp;gt;&amp;gt; Field extractions. &lt;/P&gt;

&lt;P&gt;It looks like this on the Field Extractions browser:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;http : EXTRACT-SomeName  Inline  "(?&amp;lt;httpTimeStamp&amp;gt;\d\d\:\d\d\:\d\d) \'(?&amp;lt;httpClientIp&amp;gt;\d*\.\d*\.\d*\.\d*)\' (?&amp;lt;httpMethod&amp;gt;\w*) (?&amp;lt;httpUri&amp;gt;[^ ]*) \'Private Message\' (?&amp;lt;httpResponseCode&amp;gt;\d+) (?&amp;lt;httpBytesDownloaded&amp;gt;[0-9\-]*) (?&amp;lt;httpDownloadTime&amp;gt;[0-9\.]*)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I checked props.conf and everything looks alright.&lt;/P&gt;

&lt;P&gt;What might i be missing?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2013 23:49:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/In-line-rex-not-working-once-moved-to-Field-Extraction/m-p/85382#M21803</guid>
      <dc:creator>borisalves</dc:creator>
      <dc:date>2013-04-04T23:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: In line rex not working once moved to Field Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/In-line-rex-not-working-once-moved-to-Field-Extraction/m-p/85383#M21804</link>
      <description>&lt;P&gt;As you mentioned: Field Discovery was set to "OFF"&lt;/P&gt;

&lt;P&gt;Field discovery is the process Splunk uses to extract &lt;B&gt;fields aside from default fields&lt;/B&gt; such as host, source, and sourcetype. This means that Splunk only returns information on default fields and fields that are required to fulfill your search (if you are searching on certain fields, it will extract those fields). &lt;/P&gt;

&lt;P&gt;so you must include &lt;BR /&gt;
  | fields httpTimeStamp, httpClientIp, httpMethod, httpUri, httpResponseCode, httpBytesDownloaded, httpDownloadTime&lt;/P&gt;

&lt;P&gt;or mention them in some other explicit way in order for Splunk to extract them when Field Discovery is off. &lt;/P&gt;

&lt;P&gt;If you were testing with just the sourcetype or with * you wouldn't have seen them.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2013 01:58:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/In-line-rex-not-working-once-moved-to-Field-Extraction/m-p/85383#M21804</guid>
      <dc:creator>rsennett_splunk</dc:creator>
      <dc:date>2013-04-05T01:58:37Z</dc:date>
    </item>
  </channel>
</rss>

