<?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 to make substring using rex in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-substring-using-rex/m-p/519375#M146275</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, Thanks for your answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I tried like below&lt;/P&gt;&lt;P&gt;MYSEARCH | rex field=pod "pod(?&amp;lt;number&amp;gt;\d+)" | sort podnumber | table pod podnumber&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Erased the part "\-" because that makes no results, although i don't know why.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And * part could be different by row, so it doesn't really helpful I guess.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Sep 2020 08:47:57 GMT</pubDate>
    <dc:creator>splunkkid</dc:creator>
    <dc:date>2020-09-14T08:47:57Z</dc:date>
    <item>
      <title>How to make substring using rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-substring-using-rex/m-p/519365#M146269</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently confront some problem here.&lt;/P&gt;&lt;P&gt;I want to substring data in specific column using rex.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The column's data looks like below(All same or similar style).&lt;/P&gt;&lt;P&gt;"****-****-**POD4-***"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In above case, all&amp;nbsp; I need is the number after the word POD. ( * means some alphabets)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 08:17:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-substring-using-rex/m-p/519365#M146269</guid>
      <dc:creator>splunkkid</dc:creator>
      <dc:date>2020-09-14T08:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to make substring using rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-substring-using-rex/m-p/519372#M146272</link>
      <description>&lt;LI-CODE lang="markup"&gt;| rex field=column "POD(?&amp;lt;number&amp;gt;\d+)\-"&lt;/LI-CODE&gt;&lt;P&gt;where column is the field name your data is in.&lt;/P&gt;&lt;P&gt;Is it always POD? If not, is it always&amp;nbsp;&lt;SPAN&gt;****-****-**POD4-***&amp;nbsp; 4 letters "-" 4 letters "-" 2 letters 3 characters number (at least 1 digit) "-" 3 letters?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 08:32:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-substring-using-rex/m-p/519372#M146272</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-09-14T08:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to make substring using rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-substring-using-rex/m-p/519373#M146273</link>
      <description>&lt;P&gt;replace &amp;lt;choosefield&amp;gt; with field name from which you want to extract number after word POD. number will be extracted to new field called "podnumber"&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=&amp;lt;choosefield&amp;gt; "POD(?&amp;lt;podnumber&amp;gt;\d+)"&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 14 Sep 2020 08:33:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-substring-using-rex/m-p/519373#M146273</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-09-14T08:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to make substring using rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-substring-using-rex/m-p/519375#M146275</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, Thanks for your answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I tried like below&lt;/P&gt;&lt;P&gt;MYSEARCH | rex field=pod "pod(?&amp;lt;number&amp;gt;\d+)" | sort podnumber | table pod podnumber&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Erased the part "\-" because that makes no results, although i don't know why.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And * part could be different by row, so it doesn't really helpful I guess.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 08:47:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-substring-using-rex/m-p/519375#M146275</guid>
      <dc:creator>splunkkid</dc:creator>
      <dc:date>2020-09-14T08:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to make substring using rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-substring-using-rex/m-p/519376#M146276</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/129407"&gt;@thambisetty&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks! This worked exactly how I want.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 08:48:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-substring-using-rex/m-p/519376#M146276</guid>
      <dc:creator>splunkkid</dc:creator>
      <dc:date>2020-09-14T08:48:42Z</dc:date>
    </item>
  </channel>
</rss>

