<?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: Create tag for rex field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Create-tag-for-rex-field/m-p/571510#M199148</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;thanks for your input.&lt;BR /&gt;&lt;BR /&gt;I've tried other suggestions i.e placing quotation marks, removing &amp;lt;&amp;gt; but no die.&lt;BR /&gt;&lt;BR /&gt;it seems you are right by documentation that it is not possible due to tags created last during search time operation order.&lt;BR /&gt;&lt;BR /&gt;i will instead use linebreaking to break the events correctly, this way the fields i care about will be created automatically at index time.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Oct 2021 13:32:40 GMT</pubDate>
    <dc:creator>bablucho</dc:creator>
    <dc:date>2021-10-19T13:32:40Z</dc:date>
    <item>
      <title>Create tag for rex field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-tag-for-rex-field/m-p/570594#M198852</link>
      <description>&lt;P&gt;Hey All,&lt;/P&gt;&lt;P&gt;I get no results found for a tag that looks for fields created by a rex.&lt;BR /&gt;&lt;BR /&gt;So...&lt;BR /&gt;&lt;BR /&gt;sourcetype=DataServices | rex "JOB: Job (?&amp;lt;BIMEJob&amp;gt;&amp;lt;(?&amp;lt;=&amp;lt;).*(?=&amp;gt;)&amp;gt;)"&lt;BR /&gt;&lt;BR /&gt;i get the following field with results&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bablucho_0-1634038045003.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/16368i277F739A86BCC274/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bablucho_0-1634038045003.png" alt="bablucho_0-1634038045003.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Now i want to bunch some field values together so i create a tag containing the field values i care about&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bablucho_1-1634038236278.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/16369i00A14703CD558D8A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bablucho_1-1634038236278.png" alt="bablucho_1-1634038236278.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;added to my search but i get no results found...&lt;/P&gt;&lt;P&gt;sourcetype=DataServices &lt;STRONG&gt;tag=GB1_BIME&lt;/STRONG&gt; | rex "JOB: Job (?&amp;lt;BIMEJob&amp;gt;&amp;lt;(?&amp;lt;=&amp;lt;).*(?=&amp;gt;)&amp;gt;)"&lt;BR /&gt;&lt;BR /&gt;Greatly appreciated if someone could help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 11:36:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-tag-for-rex-field/m-p/570594#M198852</guid>
      <dc:creator>bablucho</dc:creator>
      <dc:date>2021-10-12T11:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Create tag for rex field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-tag-for-rex-field/m-p/570605#M198855</link>
      <description>&lt;P&gt;The tag expects the BIMEJob field to have two values at the same time, which is not possible.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 12:54:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-tag-for-rex-field/m-p/570605#M198855</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-10-12T12:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Create tag for rex field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-tag-for-rex-field/m-p/570619#M198859</link>
      <description>&lt;P&gt;the BIMEJob field returns multiple values but i want only 2 values as defined in the tag.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apologies i do not understand why it would not return results for the tag as the BIMEJob field does contain the values in the tag, just doesnt show it in the search&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 14:21:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-tag-for-rex-field/m-p/570619#M198859</guid>
      <dc:creator>bablucho</dc:creator>
      <dc:date>2021-10-12T14:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Create tag for rex field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-tag-for-rex-field/m-p/570632#M198862</link>
      <description>&lt;P&gt;I'm wondering if the angle brackets are interfering with things.&amp;nbsp; Try putting quotation marks around the right-hand side of each tag pair.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;BIMEJob="&amp;lt;ds.scheduler.job&amp;gt;"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 15:17:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-tag-for-rex-field/m-p/570632#M198862</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-10-12T15:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: Create tag for rex field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-tag-for-rex-field/m-p/570679#M198873</link>
      <description>&lt;P&gt;I didn't think you could have tags created during the search based on statements that occur in search. There is a defined order of search time operations, where tags are created last&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.2/Knowledge/Searchtimeoperationssequence" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.2/Knowledge/Searchtimeoperationssequence&lt;/A&gt;&lt;/P&gt;&lt;P&gt;but if you start doing rex statements during your query, I don't think Splunk will then recalculate tags again based on new fields you have created.&lt;/P&gt;&lt;P&gt;If you want to create tags, then create the BIMEJob field as a field extraction, so it will be available before the tags are created. However, I suspect&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;answer that the two definitions not being supported will still hold true.&lt;/P&gt;&lt;P&gt;You could however, create an eventtype where you have the two conditions BIMEJob=A OR BIMEJob=B and then assign the tag to the eventtype, but this would again have to be done pre search.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 21:34:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-tag-for-rex-field/m-p/570679#M198873</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2021-10-12T21:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create tag for rex field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-tag-for-rex-field/m-p/571510#M199148</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;thanks for your input.&lt;BR /&gt;&lt;BR /&gt;I've tried other suggestions i.e placing quotation marks, removing &amp;lt;&amp;gt; but no die.&lt;BR /&gt;&lt;BR /&gt;it seems you are right by documentation that it is not possible due to tags created last during search time operation order.&lt;BR /&gt;&lt;BR /&gt;i will instead use linebreaking to break the events correctly, this way the fields i care about will be created automatically at index time.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 13:32:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-tag-for-rex-field/m-p/571510#M199148</guid>
      <dc:creator>bablucho</dc:creator>
      <dc:date>2021-10-19T13:32:40Z</dc:date>
    </item>
  </channel>
</rss>

