<?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 Splunk wildcard for specific position of character in a host list in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-wildcard-for-specific-position-of-character-in-a-host/m-p/556711#M158113</link>
    <description>&lt;P&gt;I have a table with more than 50000 hostnames. I want to run a wild card for 5th &amp;amp; 6th character in a hostname list.&lt;/P&gt;&lt;P&gt;My list sample:&lt;/P&gt;&lt;TABLE border="1" width="27.95698990360383%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%" height="25px"&gt;&lt;STRONG&gt;hostname&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%" height="25px"&gt;SERV&lt;STRONG&gt;IN&lt;/STRONG&gt;BBB01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%" height="25px"&gt;SERR&lt;STRONG&gt;CN&lt;/STRONG&gt;AAA01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%" height="25px"&gt;SERS&lt;STRONG&gt;SP&lt;/STRONG&gt;BBC55&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%" height="25px"&gt;SERR&lt;STRONG&gt;IN&lt;/STRONG&gt;AAC98&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%" height="25px"&gt;SERW&lt;STRONG&gt;IN&lt;/STRONG&gt;SSS11&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my search result, I want to get list of hosts with &lt;STRONG&gt;IN &lt;/STRONG&gt;in 5th &amp;amp; 6th location.&lt;/P&gt;&lt;P&gt;Results should be:&lt;/P&gt;&lt;TABLE border="1" width="28.10752622542843%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;&lt;STRONG&gt;hostname&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%"&gt;SERV&lt;STRONG&gt;IN&lt;/STRONG&gt;BBB01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%"&gt;SERR&lt;STRONG&gt;IN&lt;/STRONG&gt;AAC98&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%"&gt;SERW&lt;STRONG&gt;IN&lt;/STRONG&gt;SSS11&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With asterisk(*) (example: *IN*) I am not able to get these results, as characters before and after 5th, 6th position are not same always.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Jun 2021 15:02:26 GMT</pubDate>
    <dc:creator>utk123</dc:creator>
    <dc:date>2021-06-22T15:02:26Z</dc:date>
    <item>
      <title>Splunk wildcard for specific position of character in a host list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-wildcard-for-specific-position-of-character-in-a-host/m-p/556711#M158113</link>
      <description>&lt;P&gt;I have a table with more than 50000 hostnames. I want to run a wild card for 5th &amp;amp; 6th character in a hostname list.&lt;/P&gt;&lt;P&gt;My list sample:&lt;/P&gt;&lt;TABLE border="1" width="27.95698990360383%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%" height="25px"&gt;&lt;STRONG&gt;hostname&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%" height="25px"&gt;SERV&lt;STRONG&gt;IN&lt;/STRONG&gt;BBB01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%" height="25px"&gt;SERR&lt;STRONG&gt;CN&lt;/STRONG&gt;AAA01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%" height="25px"&gt;SERS&lt;STRONG&gt;SP&lt;/STRONG&gt;BBC55&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%" height="25px"&gt;SERR&lt;STRONG&gt;IN&lt;/STRONG&gt;AAC98&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%" height="25px"&gt;SERW&lt;STRONG&gt;IN&lt;/STRONG&gt;SSS11&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my search result, I want to get list of hosts with &lt;STRONG&gt;IN &lt;/STRONG&gt;in 5th &amp;amp; 6th location.&lt;/P&gt;&lt;P&gt;Results should be:&lt;/P&gt;&lt;TABLE border="1" width="28.10752622542843%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;&lt;STRONG&gt;hostname&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%"&gt;SERV&lt;STRONG&gt;IN&lt;/STRONG&gt;BBB01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%"&gt;SERR&lt;STRONG&gt;IN&lt;/STRONG&gt;AAC98&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%"&gt;SERW&lt;STRONG&gt;IN&lt;/STRONG&gt;SSS11&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With asterisk(*) (example: *IN*) I am not able to get these results, as characters before and after 5th, 6th position are not same always.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 15:02:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-wildcard-for-specific-position-of-character-in-a-host/m-p/556711#M158113</guid>
      <dc:creator>utk123</dc:creator>
      <dc:date>2021-06-22T15:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk wildcard for specific position of character in a host list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-wildcard-for-specific-position-of-character-in-a-host/m-p/556715#M158114</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/93258"&gt;@utk123&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please try this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;YOUR_SEARCH 
| regex hostname="(?&amp;lt;=^.{4})IN"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Sample Search :&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults | eval _raw="hostname
SERVINBBB01
SERRCNAAA01
SERSSPBBC55
SERRINAAC98
SERWINSSS11
"| multikv forceheader=1
| table hostname | regex hostname="(?&amp;lt;=^.{4})IN"&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;Thanks&lt;BR /&gt;KV&lt;BR /&gt;▄︻̷̿┻̿═━一&lt;BR /&gt;&lt;BR /&gt;If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 15:12:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-wildcard-for-specific-position-of-character-in-a-host/m-p/556715#M158114</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-06-22T15:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk wildcard for specific position of character in a host list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-wildcard-for-specific-position-of-character-in-a-host/m-p/556797#M158136</link>
      <description>&lt;P&gt;Thanks KV, that works perfect.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 02:37:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-wildcard-for-specific-position-of-character-in-a-host/m-p/556797#M158136</guid>
      <dc:creator>utk123</dc:creator>
      <dc:date>2021-06-23T02:37:35Z</dc:date>
    </item>
  </channel>
</rss>

