<?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: Want to extract FOID= into two field, Pls help in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Want-to-extract-FOID-into-two-field-Pls-help/m-p/430331#M166956</link>
    <description>&lt;P&gt;Either this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex mode=sed "s/^.*?FOID//"
| rex max_match=0 "=(?&amp;lt;Type&amp;gt;[^,]+),(?&amp;lt;Number&amp;gt;\d+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex mode=sed "s/^.*? - //g s/FOID=//g s/,/=/g"
| kv
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 14 Feb 2019 07:01:32 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-02-14T07:01:32Z</dc:date>
    <item>
      <title>Want to extract FOID= into two field, Pls help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Want-to-extract-FOID-into-two-field-Pls-help/m-p/430327#M166952</link>
      <description>&lt;P&gt;05:45:25.985 [http-nio-8080-exec-137] INFO  c.b.h.i.s.i.OrderDecompositionServiceImpl - POID=20275475 FOID=TRAFFIC_MGMT,43375717 FOID=CPE,43375719 FOID=RADIUS,43375721 FOID=WCLI,43375723 &lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2018 04:54:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Want-to-extract-FOID-into-two-field-Pls-help/m-p/430327#M166952</guid>
      <dc:creator>jayavasge</dc:creator>
      <dc:date>2018-10-19T04:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Want to extract FOID= into two field, Pls help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Want-to-extract-FOID-into-two-field-Pls-help/m-p/430328#M166953</link>
      <description>&lt;P&gt;Hi there, can you let me know what is expected output? &lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2018 18:50:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Want-to-extract-FOID-into-two-field-Pls-help/m-p/430328#M166953</guid>
      <dc:creator>sudosplunk</dc:creator>
      <dc:date>2018-10-19T18:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Want to extract FOID= into two field, Pls help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Want-to-extract-FOID-into-two-field-Pls-help/m-p/430329#M166954</link>
      <description>&lt;P&gt;Type                         Number&lt;BR /&gt;
TRAFFIC_MGMT     43375717 &lt;BR /&gt;
CPE                         43375719 &lt;BR /&gt;
RADIUS                  43375721 &lt;BR /&gt;
WCLI                      43375723 &lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 04:57:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Want-to-extract-FOID-into-two-field-Pls-help/m-p/430329#M166954</guid>
      <dc:creator>jayavasge</dc:creator>
      <dc:date>2019-02-14T04:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Want to extract FOID= into two field, Pls help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Want-to-extract-FOID-into-two-field-Pls-help/m-p/430330#M166955</link>
      <description>&lt;P&gt;Hi @jayavasge ,&lt;/P&gt;

&lt;P&gt;You can try this ...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Your search | rex max_match=0 "FOID\=(?P&amp;lt;type1&amp;gt;[^\,]+)\,(?P&amp;lt;number1&amp;gt;[^\s]+)" 
| eval zipped= mvzip(type1,number1,"!!!!!number1=") 
| mvexpand zipped 
| fields _time zipped 
| mvexpand zipped 
| rex field=zipped "^(?P&amp;lt;Type&amp;gt;.*)!!!!!number1\=(?P&amp;lt;Number&amp;gt;\d+)"
|table  Type Number
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;for example , &lt;BR /&gt;
this is a run anywhere search &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval data="05:45:25.985 [http-nio-8080-exec-137] INFO c.b.h.i.s.i.OrderDecompositionServiceImpl - POID=20275475 FOID=TRAFFIC_MGMT,43375717 FOID=CPE,43375719 FOID=RADIUS,43375721 FOID=WCLI,43375723" 
| rename data as _raw 
| rex max_match=0 "FOID\=(?P&amp;lt;type1&amp;gt;[^\,]+)\,(?P&amp;lt;number1&amp;gt;[^\s]+)" 
| eval zipped= mvzip(type1,number1,"!!!!!number1=") 
| mvexpand zipped 
| fields _time zipped 
| mvexpand zipped 
| rex field=zipped "^(?P&amp;lt;Type&amp;gt;.*)!!!!!number1\=(?P&amp;lt;Number&amp;gt;\d+)"
|table  Type Number
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;let me know if this works...&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 06:27:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Want-to-extract-FOID-into-two-field-Pls-help/m-p/430330#M166955</guid>
      <dc:creator>vinod94</dc:creator>
      <dc:date>2019-02-14T06:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Want to extract FOID= into two field, Pls help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Want-to-extract-FOID-into-two-field-Pls-help/m-p/430331#M166956</link>
      <description>&lt;P&gt;Either this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex mode=sed "s/^.*?FOID//"
| rex max_match=0 "=(?&amp;lt;Type&amp;gt;[^,]+),(?&amp;lt;Number&amp;gt;\d+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex mode=sed "s/^.*? - //g s/FOID=//g s/,/=/g"
| kv
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Feb 2019 07:01:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Want-to-extract-FOID-into-two-field-Pls-help/m-p/430331#M166956</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-02-14T07:01:32Z</dc:date>
    </item>
  </channel>
</rss>

