{"id":53424,"date":"2022-03-25T14:37:23","date_gmt":"2022-03-25T14:37:23","guid":{"rendered":"https:\/\/merikebi.warrenmyers.com\/?p=53424"},"modified":"2022-03-25T14:37:23","modified_gmt":"2022-03-25T14:37:23","slug":"answer-by-warren-for-how-to-group-out-different-ip-address-and-count-their-total-numbers-in-splunk","status":"publish","type":"post","link":"https:\/\/merikebi.warrenmyers.com\/?p=53424","title":{"rendered":"Answer by warren for how to group out different ip address and count their total numbers in Splunk"},"content":{"rendered":"<p>This is going to come down to you how you group your <a href=\"https:\/\/docs.splunk.com\/Documentation\/Splunk\/latest\/SearchReference\/stats\" rel=\"nofollow noreferrer\"><code>stats<\/code><\/a> calls:<\/p>\n<pre><code>| stats count(src_ip) by dst_ip\n<\/code><\/pre>\n<p>will be different from<\/p>\n<pre><code>| stats count(dst_ip) by src_ip\n<\/code><\/pre>\n<p>will be different from<\/p>\n<pre><code>| stats count by dst_ip src_ip\n<\/code><\/pre>\n<p>will be different from<\/p>\n<pre><code>| stats count by src_ip dst_ip\n<\/code><\/pre>\n<p>What are you actually trying to accomplish?<\/p>\n<p>from User warren &#8211; Stack Overflow https:\/\/stackoverflow.com\/questions\/71610969\/how-to-group-out-different-ip-address-and-count-their-total-numbers-in-splunk\/71618691#71618691<br \/>\nvia <a href=\"https:\/\/ifttt.com\/?ref=da&#038;site=wordpress\">IFTTT<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is going to come down to you how you group your stats calls: | stats count(src_ip) by dst_ip will be different from | stats count(dst_ip) by src_ip will be different from | stats count by dst_ip src_ip will be different from | stats count by src_ip dst_ip What are you actually trying to accomplish? &hellip;<br \/><a href=\"https:\/\/merikebi.warrenmyers.com\/?p=53424\" class=\"more-link pen_button pen_element_default pen_icon_arrow_double\">Continue reading <span class=\"screen-reader-text\">Answer by warren for how to group out different ip address and count their total numbers in Splunk<\/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-53424","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\/53424","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=53424"}],"version-history":[{"count":1,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/53424\/revisions"}],"predecessor-version":[{"id":53425,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/53424\/revisions\/53425"}],"wp:attachment":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=53424"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=53424"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=53424"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fkeyring_services&post=53424"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}