<?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: how can I save rex to IFX? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-save-rex-to-IFX/m-p/334365#M99361</link>
    <description>&lt;P&gt;If you can make your regex work with _raw field (by changing it), then you can save it with &lt;CODE&gt;settings--&amp;gt;fields---&amp;gt; Field extractions----&amp;gt;new&lt;/CODE&gt; . If not, you'd need to setup field transform, so that you can use other available field. &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.2/Knowledge/Configureadvancedextractionswithfieldtransforms"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.2/Knowledge/Configureadvancedextractionswithfieldtransforms&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Mar 2018 15:45:01 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2018-03-07T15:45:01Z</dc:date>
    <item>
      <title>how can I save rex to IFX?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-save-rex-to-IFX/m-p/334364#M99360</link>
      <description>&lt;P&gt;I am using rex to split an existing field,can I use the same rex in IFX ?&lt;/P&gt;

&lt;P&gt;| rex field="External ID" "(?.*)_"&lt;/P&gt;

&lt;P&gt;I want to save the field1 in IFX .I went to settings--&amp;gt;fields---&amp;gt; Field extractions----&amp;gt;new---&amp;gt;selected sourcetype and used inline &lt;/P&gt;

&lt;P&gt;But it was not showing up in the search &lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 15:33:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-save-rex-to-IFX/m-p/334364#M99360</guid>
      <dc:creator>vrmandadi</dc:creator>
      <dc:date>2018-03-07T15:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: how can I save rex to IFX?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-save-rex-to-IFX/m-p/334365#M99361</link>
      <description>&lt;P&gt;If you can make your regex work with _raw field (by changing it), then you can save it with &lt;CODE&gt;settings--&amp;gt;fields---&amp;gt; Field extractions----&amp;gt;new&lt;/CODE&gt; . If not, you'd need to setup field transform, so that you can use other available field. &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.2/Knowledge/Configureadvancedextractionswithfieldtransforms"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.2/Knowledge/Configureadvancedextractionswithfieldtransforms&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 15:45:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-save-rex-to-IFX/m-p/334365#M99361</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-03-07T15:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: how can I save rex to IFX?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-save-rex-to-IFX/m-p/334366#M99362</link>
      <description>&lt;P&gt;I did not see &lt;CODE&gt;field="External ID"&lt;/CODE&gt; &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; @somesoni2 answer will do .&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 15:51:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-save-rex-to-IFX/m-p/334366#M99362</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-03-07T15:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: how can I save rex to IFX?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-save-rex-to-IFX/m-p/334367#M99363</link>
      <description>&lt;P&gt;Hi  vrmandadi,&lt;BR /&gt;
I didn't understand why, but there a delay between field creation and availability in searches!&lt;BR /&gt;
In addition, beware to spaces in the regex when you copy it.&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 16:32:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-save-rex-to-IFX/m-p/334367#M99363</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2018-03-07T16:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: how can I save rex to IFX?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-save-rex-to-IFX/m-p/334368#M99364</link>
      <description>&lt;P&gt;Hello @cusello&lt;/P&gt;

&lt;P&gt;yup I am aware of that it takes time but is there a problem with the quotes when placing in IFX &lt;/P&gt;

&lt;P&gt;I just placed  "External ID" (?.*)_             in the ifx bu the rex has something like this&lt;/P&gt;

&lt;P&gt;| rex field="External  ID" "(?.*)_"&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 18:55:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-save-rex-to-IFX/m-p/334368#M99364</guid>
      <dc:creator>vrmandadi</dc:creator>
      <dc:date>2018-03-07T18:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: how can I save rex to IFX?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-save-rex-to-IFX/m-p/334369#M99365</link>
      <description>&lt;P&gt;sorry for the confusion @mayur98&lt;/P&gt;

&lt;P&gt;I just placed "External ID" (?.*)_ in the ifx but the rex has something like this&lt;/P&gt;

&lt;P&gt;| rex field="External ID" "(?.*)_"&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 18:58:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-save-rex-to-IFX/m-p/334369#M99365</guid>
      <dc:creator>vrmandadi</dc:creator>
      <dc:date>2018-03-07T18:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: how can I save rex to IFX?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-save-rex-to-IFX/m-p/334370#M99366</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/15147"&gt;@somesoni2&lt;/a&gt;&lt;/P&gt;

&lt;P&gt;This is the sample event&lt;/P&gt;

&lt;P&gt;RSN,interstitial/live_rsn_desktop_live ,Autozone/RSN_RSN_372462,Autozone/RSN_900014269,DIGITAL- 4Q17-2Q18 NBA Lakers Streaming_101917-042218_Live Stream,Autozone/RSN_ZONA1801_RSN,RSN APP,73369465,RSNAPP_LIVE,XXXXXXXXXXXX Network,Autozone/&lt;STRONG&gt;RSN_RSN&lt;/STRONG&gt;_Live Stream,2/15/2018,620&lt;/P&gt;

&lt;P&gt;I am trying to extract the one in bold&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:20:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-save-rex-to-IFX/m-p/334370#M99366</guid>
      <dc:creator>vrmandadi</dc:creator>
      <dc:date>2020-09-29T18:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: how can I save rex to IFX?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-save-rex-to-IFX/m-p/334371#M99367</link>
      <description>&lt;P&gt;Is it always found in the 3rd last value in your raw data?? If yes, out of &lt;CODE&gt;Autozone/RSN_RSN_Live Stream&lt;/CODE&gt; which part is (currently) extracted as "External ID" and which part should be your new field?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 19:23:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-save-rex-to-IFX/m-p/334371#M99367</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-03-07T19:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: how can I save rex to IFX?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-save-rex-to-IFX/m-p/334372#M99368</link>
      <description>&lt;P&gt;Nope,It is different for some events,I "External ID"  has values like&lt;/P&gt;

&lt;P&gt;ID_LIVE&lt;BR /&gt;&lt;BR /&gt;
MS_LIVE&lt;BR /&gt;
RTS_LIVE&lt;BR /&gt;&lt;BR /&gt;
TT_LIVE &lt;BR /&gt;
HG_LIVE&lt;BR /&gt;&lt;BR /&gt;
Cp_LIVE &lt;/P&gt;

&lt;P&gt;I am trying to extract a new field called field removing the part after _ like ID,MS,TT,HG&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:20:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-save-rex-to-IFX/m-p/334372#M99368</guid>
      <dc:creator>vrmandadi</dc:creator>
      <dc:date>2020-09-29T18:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: how can I save rex to IFX?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-save-rex-to-IFX/m-p/334373#M99369</link>
      <description>&lt;P&gt;Meanwhile give this regex a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;^([^,]+,){10}(?&amp;lt;YourNewField&amp;gt;([^_]+_)+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="https://regex101.com/r/lOwD2p/1"&gt;https://regex101.com/r/lOwD2p/1&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 20:04:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-save-rex-to-IFX/m-p/334373#M99369</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-03-07T20:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: how can I save rex to IFX?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-save-rex-to-IFX/m-p/334374#M99370</link>
      <description>&lt;P&gt;How is the field "External ID" extracted?? Do it's value always ends with _LIVE??&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 20:39:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-save-rex-to-IFX/m-p/334374#M99370</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-03-07T20:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: how can I save rex to IFX?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-save-rex-to-IFX/m-p/334375#M99371</link>
      <description>&lt;P&gt;So its a csv file and it extracts that automatically as it is in the header and not all values end with _LIVE&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 20:54:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-save-rex-to-IFX/m-p/334375#M99371</guid>
      <dc:creator>vrmandadi</dc:creator>
      <dc:date>2018-03-07T20:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: how can I save rex to IFX?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-save-rex-to-IFX/m-p/334376#M99372</link>
      <description>&lt;P&gt;This did not work,cant we extract from existing field and save it as new field?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 20:55:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-save-rex-to-IFX/m-p/334376#M99372</guid>
      <dc:creator>vrmandadi</dc:creator>
      <dc:date>2018-03-07T20:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: how can I save rex to IFX?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-save-rex-to-IFX/m-p/334377#M99373</link>
      <description>&lt;P&gt;Ok.. One final question, how is CSV field extraction setup, at search-time (using KV_MODE=csv) OR at indexed-time (INDEXED_EXTRACTIONS=csv )? You can see the order in which a search time field extraction setting is applied here. &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.0/Knowledge/Searchtimeoperationssequence#Search-time_operation_sequence" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.0/Knowledge/Searchtimeoperationssequence#Search-time_operation_sequence&lt;/A&gt;&lt;BR /&gt;
The field transforms (using which you can extract a field out of existing field) is executed before the KV_MODE field extraction so your "External ID" will not be available to field transform if "External ID" is extracted via KV_MODE. &lt;BR /&gt;
In that case, I think you can do your extraction using it by using calculated fields which are done after KV_MODE or automatic field extractions. Follow instructions from below link &lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.0/Knowledge/CreatecalculatedfieldswithSplunkWeb" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.0/Knowledge/CreatecalculatedfieldswithSplunkWeb&lt;/A&gt; &lt;BR /&gt;
and use following a eval expression: &lt;CODE&gt;replace('External ID',"(.+)_(.+)","\1")&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:15:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-save-rex-to-IFX/m-p/334377#M99373</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-09-29T18:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: how can I save rex to IFX?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-save-rex-to-IFX/m-p/334378#M99374</link>
      <description>&lt;P&gt;I used INDEXED_EXTRACTIONS=csv ,so should I try uploading the csv again and change it to KV_MODE=CSV and then use it&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:20:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-save-rex-to-IFX/m-p/334378#M99374</guid>
      <dc:creator>vrmandadi</dc:creator>
      <dc:date>2020-09-29T18:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: how can I save rex to IFX?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-save-rex-to-IFX/m-p/334379#M99375</link>
      <description>&lt;P&gt;You can test with INDEXED_EXTRACTIONS itself. Try  both calculated fields and field transforms method.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 21:48:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-save-rex-to-IFX/m-p/334379#M99375</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-03-07T21:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: how can I save rex to IFX?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-save-rex-to-IFX/m-p/334380#M99376</link>
      <description>&lt;P&gt;Hi vrmandadi,&lt;BR /&gt;
Please use Code Sample (button with numbers) to show your regexes, I cannot see them.&lt;/P&gt;

&lt;P&gt;Anyway, in IFX you can insert field="External ID" in IFX putting it at the end of the regex, in other words (I cannot use your regex because I cannot see it):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?&amp;lt;External_ID&amp;gt;.*)_ in "External ID"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'd prefer (if possible) to rename field dropping spaces&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?&amp;lt;External_ID&amp;gt;.*)_ in External_ID
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 08:01:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-save-rex-to-IFX/m-p/334380#M99376</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2018-03-08T08:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: how can I save rex to IFX?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-save-rex-to-IFX/m-p/334381#M99377</link>
      <description>&lt;P&gt;This was the rex I was using&lt;/P&gt;

&lt;P&gt;| rex field="External Video ID" "(?.*)_"&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 19:11:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-save-rex-to-IFX/m-p/334381#M99377</guid>
      <dc:creator>vrmandadi</dc:creator>
      <dc:date>2018-03-08T19:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: how can I save rex to IFX?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-save-rex-to-IFX/m-p/334382#M99378</link>
      <description>&lt;P&gt;Hi vrmandadi,&lt;BR /&gt;
sorry if I repeat: I cannot see your regex, please use Code Sample!&lt;/P&gt;

&lt;P&gt;Anyway the condition field="External Video ID" can be reproduced in IFX adding after the regex &lt;CODE&gt;in &amp;lt;fieldname&amp;gt;&lt;/CODE&gt; , see the following example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?&amp;lt;External_ID&amp;gt;.*)_ in External_ID
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In addition I suggest to not use spaces in field names, you can use field names with spaces at the end of your search using rename.&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 07:30:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-save-rex-to-IFX/m-p/334382#M99378</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2018-03-09T07:30:28Z</dc:date>
    </item>
  </channel>
</rss>

