<?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 to count the number of times each name is repeated? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-the-number-of-times-each-name-is-repeated/m-p/692481#M235699</link>
    <description>&lt;P&gt;Try the &lt;FONT face="courier new,courier"&gt;eventstats&lt;/FONT&gt; command.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eventstats count as result by name&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jul 2024 12:44:14 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2024-07-05T12:44:14Z</dc:date>
    <item>
      <title>How to count the number of times each name is repeated?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-the-number-of-times-each-name-is-repeated/m-p/692463#M235693</link>
      <description>&lt;P&gt;I have the following csv file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;id,name,age,male
1,lily,10,girl
2,bob,12,boy
3,lucy,12,girl
4,duby,10,boy
5,bob,11,boy
6,bob,10,boy
7,lucy,11,girl&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I want to use splunk to count the number of times each name is repeated, and the result after counting should be as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;id,name,age,male,result
1,lily,10,girl,1
2,bob,12,boy,3
3,lucy,12,girl,2
4,duby,10,boy,1
5,bob,11,boy,3
6,bob,10,boy,3
7,lucy,11,girl,2&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I use SPL to accomplish this task?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 07:16:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-the-number-of-times-each-name-is-repeated/m-p/692463#M235693</guid>
      <dc:creator>feelcool</dc:creator>
      <dc:date>2024-07-05T07:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to count the number of times each name is repeated?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-the-number-of-times-each-name-is-repeated/m-p/692481#M235699</link>
      <description>&lt;P&gt;Try the &lt;FONT face="courier new,courier"&gt;eventstats&lt;/FONT&gt; command.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eventstats count as result by name&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 12:44:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-the-number-of-times-each-name-is-repeated/m-p/692481#M235699</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-07-05T12:44:14Z</dc:date>
    </item>
  </channel>
</rss>

