<?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 Need help of rex? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-help-of-rex/m-p/467229#M131490</link>
    <description>&lt;P&gt;Dear Friends,&lt;/P&gt;

&lt;P&gt;Need you're help on writing a rex.  As per my requirement. what ever value comes before a space need to be considered as first value and need to be extracted. values need to extracted and stored in field (checkme,DATA_ACE, FdTest@Labcatr, FG_sam, Check@#$values, D&amp;amp;*fuse,Data*now)&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Sample try&lt;/STRONG&gt;  &lt;CODE&gt;(?P&amp;lt;Clu&amp;gt;DATA_ACE)&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Sample data:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;DATA_ACE_CHE_Team
FdTest@Labcatr
DATA_ACE_CADD_Team
DATA_ACE_CAM_Team
DATA_ACE
DATA_ACE_CSS_Team
FG_sam
Check@#$values
checkme Data
D&amp;amp;*fuse
Data*now
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks in advance ... &lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 04:52:59 GMT</pubDate>
    <dc:creator>Shan</dc:creator>
    <dc:date>2020-09-30T04:52:59Z</dc:date>
    <item>
      <title>Need help of rex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-of-rex/m-p/467229#M131490</link>
      <description>&lt;P&gt;Dear Friends,&lt;/P&gt;

&lt;P&gt;Need you're help on writing a rex.  As per my requirement. what ever value comes before a space need to be considered as first value and need to be extracted. values need to extracted and stored in field (checkme,DATA_ACE, FdTest@Labcatr, FG_sam, Check@#$values, D&amp;amp;*fuse,Data*now)&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Sample try&lt;/STRONG&gt;  &lt;CODE&gt;(?P&amp;lt;Clu&amp;gt;DATA_ACE)&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Sample data:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;DATA_ACE_CHE_Team
FdTest@Labcatr
DATA_ACE_CADD_Team
DATA_ACE_CAM_Team
DATA_ACE
DATA_ACE_CSS_Team
FG_sam
Check@#$values
checkme Data
D&amp;amp;*fuse
Data*now
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks in advance ... &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:52:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-of-rex/m-p/467229#M131490</guid>
      <dc:creator>Shan</dc:creator>
      <dc:date>2020-09-30T04:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Need help of rex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-of-rex/m-p/467230#M131491</link>
      <description>&lt;P&gt;Hi ,&lt;BR /&gt;
Could you please try the below.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|makeresults
|eval _raw= "input_field
DATA_ACE_CHE_Team
FdTest@Labcatr
DATA_ACE_CADD_Team
DATA_ACE_CAM_Team
DATA_ACE
DATA_ACE_CSS_Team
FG_sam
Check@#$values
checkme Data
D&amp;amp;*fuse
 Data*now"
|multikv forceheader=1
|table input_field
|rex field=input_field "(?P&amp;lt;extracted_field&amp;gt;.*)\s"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Modify the last line if you want to extract anything before the special characters like - &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|rex field=input_field "(?P&amp;lt;extracted_field&amp;gt;.*)(\_|\@|\s|\*)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 Apr 2020 14:26:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-of-rex/m-p/467230#M131491</guid>
      <dc:creator>dindu</dc:creator>
      <dc:date>2020-04-06T14:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Need help of rex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-of-rex/m-p/467231#M131492</link>
      <description>&lt;P&gt;HI &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/209282"&gt;@dindu&lt;/a&gt; &lt;/P&gt;

&lt;P&gt;Thanks for ur reply. I forgot to mention one more thing for some case we need only values before 2nd _. Out of above sample data i need to extract value as mentioned below . &lt;BR /&gt;
(checkme,DATA_ACE, FdTest@Labcatr, FG_sam, Check@#$values, D&amp;amp;*fuse,Data*now)&lt;/P&gt;

&lt;P&gt;Thanks.. &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:53:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-of-rex/m-p/467231#M131492</guid>
      <dc:creator>Shan</dc:creator>
      <dc:date>2020-09-30T04:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need help of rex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-of-rex/m-p/467232#M131493</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval data="(checkme,DATA_ACE, FdTest@Labcatr, FG_sam, Check@#$values, D&amp;amp;*fuse,Data*now)" 
| rex field=data max_match=0 "(?&amp;lt;extracted&amp;gt;\w[^,()]*)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 Apr 2020 20:19:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-of-rex/m-p/467232#M131493</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-06T20:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need help of rex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-of-rex/m-p/467233#M131494</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Based on your requirement could you please try the below.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  |makeresults
  |eval _raw= "input_field
    DATA_ACE_CHE_Team
    FdTest@Labcatr
   DATA_ACE_CADD_Team
   DATA_ACE_CAM_Team
   DATA_ACE
   DATA_ACE_CSS_Team
   FG_sam
  Check@#$values
  checkme Data
  D&amp;amp;*fuse
  Data*now"
  |multikv forceheader=1
  |table input_field
  |rex field=input_field "(?P&amp;lt;extracted_field&amp;gt;.*)(?:\_.+\_)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also, could you please give expected input and output fields if this is not your requirement?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 13:49:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-of-rex/m-p/467233#M131494</guid>
      <dc:creator>dindu</dc:creator>
      <dc:date>2020-04-07T13:49:41Z</dc:date>
    </item>
  </channel>
</rss>

