<?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: rex command help... in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/rex-command-help/m-p/478933#M134252</link>
    <description>&lt;P&gt;Here's one way.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex "(?&amp;lt;field&amp;gt;[^\.]+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 25 Feb 2020 13:51:50 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2020-02-25T13:51:50Z</dc:date>
    <item>
      <title>rex command help...</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-command-help/m-p/478932#M134251</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;my data is like below&lt;/EM&gt;&lt;/STRONG&gt;-- I want to extract when it has string ignore numbers&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;853727-gcplusrspcndb01.usa.corp.ad
10.198.29.5
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Output:-&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;853727-gcplusrspcndb01
 10.198.29.5
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Feb 2020 13:33:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-command-help/m-p/478932#M134251</guid>
      <dc:creator>harishalipaka</dc:creator>
      <dc:date>2020-02-25T13:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: rex command help...</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-command-help/m-p/478933#M134252</link>
      <description>&lt;P&gt;Here's one way.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex "(?&amp;lt;field&amp;gt;[^\.]+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Feb 2020 13:51:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-command-help/m-p/478933#M134252</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-02-25T13:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: rex command help...</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-command-help/m-p/478934#M134253</link>
      <description>&lt;P&gt;Hi @harishalipaka,&lt;BR /&gt;
try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex "^\s+(?&amp;lt;url&amp;gt;[^\.]+).*\s+(?&amp;lt;ip&amp;gt;\d+\.\d+\.\d+\.\d+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;that you can test at &lt;A href="https://regex101.com/r/6axOMx/1"&gt;https://regex101.com/r/6axOMx/1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 14:08:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-command-help/m-p/478934#M134253</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-02-25T14:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: rex command help...</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-command-help/m-p/478935#M134254</link>
      <description>&lt;P&gt;Hi @richgalloway&lt;/P&gt;

&lt;P&gt;I already tried this logic but it will extract like below&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;853727-gcplusrspcndb01
10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But i want like this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;853727-gcplusrspcndb01
  10.198.29.5
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Feb 2020 10:12:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-command-help/m-p/478935#M134254</guid>
      <dc:creator>harishalipaka</dc:creator>
      <dc:date>2020-02-26T10:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: rex command help...</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-command-help/m-p/478936#M134255</link>
      <description>&lt;P&gt;Hi @gcusello &lt;/P&gt;

&lt;P&gt;It is not working for me .am getting empty fields.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=HostName "^\s+(?&amp;lt;url&amp;gt;[^\.]+).*\s+(?&amp;lt;ip&amp;gt;\d+\.\d+\.\d+\.\d+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Feb 2020 10:17:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-command-help/m-p/478936#M134255</guid>
      <dc:creator>harishalipaka</dc:creator>
      <dc:date>2020-02-26T10:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: rex command help...</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-command-help/m-p/478937#M134256</link>
      <description>&lt;P&gt;Hi @harishalipaka,&lt;BR /&gt;
probably your row data are different, this regex is related to the information you shared, could you share an example of your row data?&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 10:48:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-command-help/m-p/478937#M134256</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-02-26T10:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: rex command help...</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-command-help/m-p/478938#M134257</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| rex mode=sed "s/[.a-z]*$//"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Feb 2020 11:12:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-command-help/m-p/478938#M134257</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-02-26T11:12:47Z</dc:date>
    </item>
  </channel>
</rss>

