<?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 can i search for a host wich must have 3 letters at the begin of the dns name ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-search-for-a-host-wich-must-have-3-letters-at-the/m-p/312365#M164798</link>
    <description>&lt;P&gt;The &lt;CODE&gt;regex&lt;/CODE&gt;  command expects full regular expression representation of the values of the field, so you would want to add a &lt;CODE&gt;.+&lt;/CODE&gt; at the end after &lt;CODE&gt;server&lt;/CODE&gt; to incorporate those numbers at the end of host names.&lt;/P&gt;</description>
    <pubDate>Mon, 27 Nov 2017 16:34:19 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2017-11-27T16:34:19Z</dc:date>
    <item>
      <title>How can i search for a host wich must have 3 letters at the begin of the dns name ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-search-for-a-host-wich-must-have-3-letters-at-the/m-p/312362#M164795</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;i want to search for hosts which always have 3 letters at the begin of the dns name.&lt;/P&gt;

&lt;P&gt;search:&lt;/P&gt;

&lt;P&gt;index="myindex" host="(letter)(letter)(letter)server*"&lt;/P&gt;

&lt;P&gt;Result should be:&lt;/P&gt;

&lt;P&gt;xxxserver01&lt;BR /&gt;
aaaserver01&lt;BR /&gt;
bbbserver01&lt;BR /&gt;
cccserver01&lt;BR /&gt;
....&lt;/P&gt;

&lt;P&gt;Thanks!&lt;BR /&gt;
Christoph&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2017 13:54:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-search-for-a-host-wich-must-have-3-letters-at-the/m-p/312362#M164795</guid>
      <dc:creator>criedman</dc:creator>
      <dc:date>2017-11-27T13:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: How can i search for a host wich must have 3 letters at the begin of the dns name ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-search-for-a-host-wich-must-have-3-letters-at-the/m-p/312363#M164796</link>
      <description>&lt;P&gt;You could use regex:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="myindex" | regex host="^[a-zA-Z]{3}server"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Depending upon what's in "myindex" this is a pretty expensive search, if you can narrow down the results processed by "| regex ..." in any way you should.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2017 15:15:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-search-for-a-host-wich-must-have-3-letters-at-the/m-p/312363#M164796</guid>
      <dc:creator>wenthold</dc:creator>
      <dc:date>2017-11-27T15:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: How can i search for a host wich must have 3 letters at the begin of the dns name ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-search-for-a-host-wich-must-have-3-letters-at-the/m-p/312364#M164797</link>
      <description>&lt;P&gt;index="myindex" host="&lt;EM&gt;server&lt;/EM&gt;"|where match(source, "^[a-zA-Z]{3}server.*")&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2017 15:39:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-search-for-a-host-wich-must-have-3-letters-at-the/m-p/312364#M164797</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2017-11-27T15:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can i search for a host wich must have 3 letters at the begin of the dns name ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-search-for-a-host-wich-must-have-3-letters-at-the/m-p/312365#M164798</link>
      <description>&lt;P&gt;The &lt;CODE&gt;regex&lt;/CODE&gt;  command expects full regular expression representation of the values of the field, so you would want to add a &lt;CODE&gt;.+&lt;/CODE&gt; at the end after &lt;CODE&gt;server&lt;/CODE&gt; to incorporate those numbers at the end of host names.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2017 16:34:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-search-for-a-host-wich-must-have-3-letters-at-the/m-p/312365#M164798</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-11-27T16:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: How can i search for a host wich must have 3 letters at the begin of the dns name ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-search-for-a-host-wich-must-have-3-letters-at-the/m-p/312366#M164799</link>
      <description>&lt;P&gt;I ran a test search on 6.5.5 without doing the full field match and it worked, and I don't see that requirement in the search manual:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.5/SearchReference/Regex"&gt;search reference - regex&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Am I missing something? &lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2017 16:52:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-search-for-a-host-wich-must-have-3-letters-at-the/m-p/312366#M164799</guid>
      <dc:creator>wenthold</dc:creator>
      <dc:date>2017-11-27T16:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: How can i search for a host wich must have 3 letters at the begin of the dns name ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-search-for-a-host-wich-must-have-3-letters-at-the/m-p/312367#M164800</link>
      <description>&lt;P&gt;Actually I take that back. I can swear it didn't work for me in some version. May be my memory needs updates.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2017 16:59:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-search-for-a-host-wich-must-have-3-letters-at-the/m-p/312367#M164800</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-11-27T16:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: How can i search for a host wich must have 3 letters at the begin of the dns name ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-search-for-a-host-wich-must-have-3-letters-at-the/m-p/312368#M164801</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;thank you thats the perfect solution for me =).&lt;/P&gt;

&lt;P&gt;| where match(source, "^[a-zA-Z]{3}server.*")&lt;/P&gt;

&lt;P&gt;Result:&lt;BR /&gt;
The result must contain 3 letters before "server".&lt;/P&gt;

&lt;P&gt;xxxserveryyy&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Christoph&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 07:46:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-search-for-a-host-wich-must-have-3-letters-at-the/m-p/312368#M164801</guid>
      <dc:creator>criedman</dc:creator>
      <dc:date>2017-11-28T07:46:31Z</dc:date>
    </item>
  </channel>
</rss>

