{"id":46672,"date":"2021-10-28T20:42:34","date_gmt":"2021-10-28T20:42:34","guid":{"rendered":"https:\/\/merikebi.warrenmyers.com\/?p=46672"},"modified":"2021-10-28T20:42:34","modified_gmt":"2021-10-28T20:42:34","slug":"answer-by-warren-for-splunk-table-print-number-of-rows-per-selected-field","status":"publish","type":"post","link":"https:\/\/merikebi.warrenmyers.com\/?p=46672","title":{"rendered":"Answer by warren for Splunk &#8211; Table, print number of rows per selected field"},"content":{"rendered":"<p><a href=\"https:\/\/docs.splunk.com\/Documentation\/Splunk\/latest\/SearchReference\/stats\" rel=\"nofollow noreferrer\"><code>| stats count<\/code><\/a> is going to be your friend &#8211; and it&#8217;ll be faster than trying to use <a href=\"https:\/\/docs.splunk.com\/Documentation\/Splunk\/latest\/SearchReference\/dedup\" rel=\"nofollow noreferrer\"><code>dedup<\/code><\/a>, too:<\/p>\n<pre><code>myusername response_status=&quot;401&quot; \n| stats count by website website_url user_name transaction_name user\n| fields - count\n<\/code><\/pre>\n<p>And if you want to then merely have a count of websites <em>inside<\/em> that list, add this:<\/p>\n<pre><code>| stats count by website\n<\/code><\/pre>\n<p>from User warren &#8211; Stack Overflow https:\/\/stackoverflow.com\/questions\/69749324\/splunk-table-print-number-of-rows-per-selected-field\/69760659#69760659<br \/>\nvia <a href=\"https:\/\/ifttt.com\/?ref=da&#038;site=wordpress\">IFTTT<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>| stats count is going to be your friend &#8211; and it&#8217;ll be faster than trying to use dedup, too: myusername response_status=&quot;401&quot; | stats count by website website_url user_name transaction_name user | fields &#8211; count And if you want to then merely have a count of websites inside that list, add this: | stats count &hellip;<br \/><a href=\"https:\/\/merikebi.warrenmyers.com\/?p=46672\" class=\"more-link pen_button pen_element_default pen_icon_arrow_double\">Continue reading <span class=\"screen-reader-text\">Answer by warren for Splunk &#8211; Table, print number of rows per selected field<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[991],"keyring_services":[],"class_list":["post-46672","post","type-post","status-publish","format-standard","hentry","category-blih","tag-stackexchange"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/46672","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=46672"}],"version-history":[{"count":1,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/46672\/revisions"}],"predecessor-version":[{"id":46673,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/46672\/revisions\/46673"}],"wp:attachment":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=46672"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=46672"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=46672"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fkeyring_services&post=46672"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}