<?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: Regular expression in Search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Regular-expression-in-Search/m-p/51137#M12308</link>
    <description>&lt;P&gt;The best solution would be to use a subsearch for this purpose:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;* [ | metadata type=hosts | regex host="chvj[34]04ld8[246]" | fields host ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Alternatively you could search for all events and filter based on the regex:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;* | regex host="chvj[34]04ld8[246]"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 15 Sep 2010 23:24:32 GMT</pubDate>
    <dc:creator>ziegfried</dc:creator>
    <dc:date>2010-09-15T23:24:32Z</dc:date>
    <item>
      <title>Regular expression in Search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regular-expression-in-Search/m-p/51136#M12307</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;i want all records from some hosts.&lt;/P&gt;

&lt;P&gt;How can i find records from hosts that match: host=chvj[34]04ld8[246] ?&lt;/P&gt;

&lt;P&gt;Cheers,&lt;/P&gt;

&lt;P&gt;Jens&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2010 23:19:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regular-expression-in-Search/m-p/51136#M12307</guid>
      <dc:creator>JensT</dc:creator>
      <dc:date>2010-09-15T23:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Regular expression in Search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regular-expression-in-Search/m-p/51137#M12308</link>
      <description>&lt;P&gt;The best solution would be to use a subsearch for this purpose:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;* [ | metadata type=hosts | regex host="chvj[34]04ld8[246]" | fields host ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Alternatively you could search for all events and filter based on the regex:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;* | regex host="chvj[34]04ld8[246]"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Sep 2010 23:24:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regular-expression-in-Search/m-p/51137#M12308</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2010-09-15T23:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: Regular expression in Search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regular-expression-in-Search/m-p/51138#M12309</link>
      <description>&lt;P&gt;The second search is not suitable in our environment as we produce to much events.&lt;/P&gt;

&lt;P&gt;But the first search seems to be okay. (not nice, tough)&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Jens&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2010 00:28:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regular-expression-in-Search/m-p/51138#M12309</guid>
      <dc:creator>JensT</dc:creator>
      <dc:date>2010-09-16T00:28:18Z</dc:date>
    </item>
  </channel>
</rss>

