<?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 rex works but simple field extraction searching does not in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/search-time-rex-works-but-simple-field-extraction-searching-does/m-p/469862#M132220</link>
    <description>&lt;P&gt;So it turns out this old blog post fixed my issue. &lt;A href="https://www.splunk.com/en_us/blog/tips-and-tricks/cannot-search-based-on-an-extracted-field.html"&gt;https://www.splunk.com/en_us/blog/tips-and-tricks/cannot-search-based-on-an-extracted-field.html&lt;/A&gt; entitled "Cannot search based on an extracted field"  There seems to be an issue when I try to create the extraction for MF3 and MF4 ...&lt;/P&gt;

&lt;P&gt;I created a fields.conf file within the app folder on the search head ... (ie ...\apps\MF-Servers\local\fields.conf ... and added the stanza for the fields giving issues and it worked&lt;/P&gt;

&lt;P&gt;========== The fields.conf file: ========&lt;BR /&gt;
[mf3]&lt;BR /&gt;
INDEXED_VALUE = False&lt;/P&gt;

&lt;P&gt;[mf4]&lt;/P&gt;

&lt;H1&gt;INDEXED_VALUE = False&lt;/H1&gt;

&lt;P&gt;I also found some specific field lengths so I expanded on my rex - &lt;CODE&gt;"(^(?P&amp;lt;mf01&amp;gt;\d+\s\d+).{6}(?P&amp;lt;mf02&amp;gt;.{5}).(?P&amp;lt;mf02a&amp;gt;.{8}).(?P&amp;lt;mf3&amp;gt;.{9})(?&amp;lt;mf4&amp;gt;.).(?&amp;lt;mf5&amp;gt;.+)(?P&amp;lt;mf6&amp;gt;[0-2][0-9]:[0-9][0-9]:[0-9][0-9])$)"&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Apr 2020 00:16:12 GMT</pubDate>
    <dc:creator>rewritex</dc:creator>
    <dc:date>2020-04-09T00:16:12Z</dc:date>
    <item>
      <title>search time rex works but simple field extraction searching does not</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-time-rex-works-but-simple-field-extraction-searching-does/m-p/469859#M132217</link>
      <description>&lt;P&gt;Basically, when I try to search for mf4 values on their own, &lt;STRONG&gt;index="sean-testing" mf4=w&lt;/STRONG&gt;, the data found is zero or blank but if I use the  full search with rex as seen below then click the mf4 value from the table view, the full event data will come up. I use regex101.com to drop the rex into the expression line and the data sample, one at a time, into the test sample box to test things out.&lt;BR /&gt;
*&lt;EM&gt;Q: I'm thinking  that I need to place this field extraction in a promps as a report or extract on the indexers? *&lt;/EM&gt;&lt;BR /&gt;
Any advice, examples or links to a better understanding would be great! Thank you. -Sean&lt;/P&gt;

&lt;P&gt;full Search with rex &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="sean-testing" sourcetype="mfsource1" 
| rex "\s{2}(?P&amp;lt;mf1&amp;gt;\d+)\s(?P&amp;lt;mf2&amp;gt;.{8})\s(?P&amp;lt;mf3&amp;gt;\S{10}){1}(?P&amp;lt;mf4&amp;gt;\S+)\s(?P&amp;lt;mf5&amp;gt;.+)[0-2][0-9]:[0-9][0-9]:[0-9][0-9]$"
| search mf4=W OR mf4=I 
| table _time mf1 mf2 mf3 mf4 mf5
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Event Data Sample 1&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;200401 07595444      17476 CARDS5   EXSFJM1083I EJM1: Using LWASP provider module "LWASP32.DLL", from API version 2009 07:59:54
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Event Data Sample 2&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;200331 18250270       1764 CARDS1   CASHO00200I AB2P XA interface loaded. Name(AB2 for WINDOWS), Registration Mode(Dynamic) 18:25:02
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Event Data Sample 3&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;200331 18250131       6508 CARDS3   CASZS50110W Failed to open port 21661 for TCPIPSERVICE ZTGIPP1  18:25:01
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;sourcetype&lt;BR /&gt;
Basic stuff - break at everyline, no regex added&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 22:34:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-time-rex-works-but-simple-field-extraction-searching-does/m-p/469859#M132217</guid>
      <dc:creator>rewritex</dc:creator>
      <dc:date>2020-04-07T22:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: search time rex works but simple field extraction searching does not</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-time-rex-works-but-simple-field-extraction-searching-does/m-p/469860#M132218</link>
      <description>&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mfsource1]
EXTRACT-mf = ^\S+\s\S+\s+(?P&amp;lt;mf1&amp;gt;\d+)\s(?P&amp;lt;mf2&amp;gt;\w+)\s+(?P&amp;lt;mf3&amp;gt;\S{10})(?P&amp;lt;mf4&amp;gt;\S)\s(?P&amp;lt;mf5&amp;gt;.+)\s+\S+$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It is better to extract with REGEX from the beginning.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 01:25:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-time-rex-works-but-simple-field-extraction-searching-does/m-p/469860#M132218</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-08T01:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: search time rex works but simple field extraction searching does not</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-time-rex-works-but-simple-field-extraction-searching-does/m-p/469861#M132219</link>
      <description>&lt;P&gt;Thanks for the input, i'll try the props.conf suggestion&lt;BR /&gt;
| search mf_status=W OR mf_status=I ... this should read | search mf4=W OR mf4=I&lt;BR /&gt;
I've updated the original post.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:53:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-time-rex-works-but-simple-field-extraction-searching-does/m-p/469861#M132219</guid>
      <dc:creator>rewritex</dc:creator>
      <dc:date>2020-09-30T04:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: search time rex works but simple field extraction searching does not</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-time-rex-works-but-simple-field-extraction-searching-does/m-p/469862#M132220</link>
      <description>&lt;P&gt;So it turns out this old blog post fixed my issue. &lt;A href="https://www.splunk.com/en_us/blog/tips-and-tricks/cannot-search-based-on-an-extracted-field.html"&gt;https://www.splunk.com/en_us/blog/tips-and-tricks/cannot-search-based-on-an-extracted-field.html&lt;/A&gt; entitled "Cannot search based on an extracted field"  There seems to be an issue when I try to create the extraction for MF3 and MF4 ...&lt;/P&gt;

&lt;P&gt;I created a fields.conf file within the app folder on the search head ... (ie ...\apps\MF-Servers\local\fields.conf ... and added the stanza for the fields giving issues and it worked&lt;/P&gt;

&lt;P&gt;========== The fields.conf file: ========&lt;BR /&gt;
[mf3]&lt;BR /&gt;
INDEXED_VALUE = False&lt;/P&gt;

&lt;P&gt;[mf4]&lt;/P&gt;

&lt;H1&gt;INDEXED_VALUE = False&lt;/H1&gt;

&lt;P&gt;I also found some specific field lengths so I expanded on my rex - &lt;CODE&gt;"(^(?P&amp;lt;mf01&amp;gt;\d+\s\d+).{6}(?P&amp;lt;mf02&amp;gt;.{5}).(?P&amp;lt;mf02a&amp;gt;.{8}).(?P&amp;lt;mf3&amp;gt;.{9})(?&amp;lt;mf4&amp;gt;.).(?&amp;lt;mf5&amp;gt;.+)(?P&amp;lt;mf6&amp;gt;[0-2][0-9]:[0-9][0-9]:[0-9][0-9])$)"&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 00:16:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-time-rex-works-but-simple-field-extraction-searching-does/m-p/469862#M132220</guid>
      <dc:creator>rewritex</dc:creator>
      <dc:date>2020-04-09T00:16:12Z</dc:date>
    </item>
  </channel>
</rss>

