<?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: Can I count lines in table cell? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-I-count-lines-in-table-cell/m-p/501566#M139636</link>
    <description>&lt;P&gt;Working great, thank you!&lt;/P&gt;</description>
    <pubDate>Thu, 05 Dec 2019 12:35:36 GMT</pubDate>
    <dc:creator>yossefn</dc:creator>
    <dc:date>2019-12-05T12:35:36Z</dc:date>
    <item>
      <title>Can I count lines in table cell?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-count-lines-in-table-cell/m-p/501564#M139634</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I have a search to show the number of times an IP address was trying to reach some Customer IDs. &lt;BR /&gt;
How can I count the number of CustIds and present just if there are more than 2 in a cell?&lt;/P&gt;

&lt;P&gt;Attached the search and results:&lt;/P&gt;

&lt;P&gt;original search&lt;BR /&gt;
    | stats count by CustId, IpAddress&lt;BR /&gt;
    | search count&amp;gt;10&lt;BR /&gt;
    | sort -count&lt;BR /&gt;
    | stats list(CustId) as CustId, list(count) as Count, sum(count) as Total by IpAddress&lt;BR /&gt;
    | sort -Total&lt;BR /&gt;
    | head 10&lt;/P&gt;

&lt;HR /&gt;

&lt;PRE&gt;&lt;CODE&gt;IpAddress            CustId Count   Total
62.90.19.22           306352113 84  84

84.28.28.232          60555283   70 84
                      23070955   14

141.26.208.180      32370266     42 73
                      205539923 31
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Dec 2019 08:08:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-count-lines-in-table-cell/m-p/501564#M139634</guid>
      <dc:creator>yossefn</dc:creator>
      <dc:date>2019-12-05T08:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can I count lines in table cell?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-count-lines-in-table-cell/m-p/501565#M139635</link>
      <description>&lt;P&gt;Use &lt;CODE&gt;mvcount&lt;/CODE&gt;. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats count by CustId, IpAddress
| search count&amp;gt;10
| stats list(CustId) as CustId, list(count) as Count, sum(count) as Total by IpAddress
| where mvcount(CustId) &amp;gt; 1
| sort 10 - Total
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Dec 2019 12:01:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-count-lines-in-table-cell/m-p/501565#M139635</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-12-05T12:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Can I count lines in table cell?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-count-lines-in-table-cell/m-p/501566#M139636</link>
      <description>&lt;P&gt;Working great, thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 12:35:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-count-lines-in-table-cell/m-p/501566#M139636</guid>
      <dc:creator>yossefn</dc:creator>
      <dc:date>2019-12-05T12:35:36Z</dc:date>
    </item>
  </channel>
</rss>

