<?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 How can I search for same values within a field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-same-values-within-a-field/m-p/541347#M153269</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a field with multiple values, some of them share the same characters at the beginning of the values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to find those with the same values and make it possible to choose how many characters I want to compare from the beginning of the value.&lt;/P&gt;</description>
    <pubDate>Thu, 25 Feb 2021 14:14:52 GMT</pubDate>
    <dc:creator>ynag</dc:creator>
    <dc:date>2021-02-25T14:14:52Z</dc:date>
    <item>
      <title>How can I search for same values within a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-same-values-within-a-field/m-p/541347#M153269</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a field with multiple values, some of them share the same characters at the beginning of the values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to find those with the same values and make it possible to choose how many characters I want to compare from the beginning of the value.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 14:14:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-same-values-within-a-field/m-p/541347#M153269</guid>
      <dc:creator>ynag</dc:creator>
      <dc:date>2021-02-25T14:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: How can I search for same values within a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-same-values-within-a-field/m-p/541359#M153272</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231891"&gt;@ynag&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;You can use &lt;STRONG&gt;substr&lt;/STRONG&gt; function to get the first n characters. Below query get first 5 characters from myfield values.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=index
| eval substr=substr(myfield, 0, 5) 
| stats list(myfield), count by substr&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this reply helps you, an upvote/like would be appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 15:07:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-same-values-within-a-field/m-p/541359#M153272</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2021-02-25T15:07:38Z</dc:date>
    </item>
  </channel>
</rss>

