{"id":73057,"date":"2023-05-01T11:32:50","date_gmt":"2023-05-01T11:32:50","guid":{"rendered":"https:\/\/merikebi.warrenmyers.com\/?p=73057"},"modified":"2023-05-01T11:32:50","modified_gmt":"2023-05-01T11:32:50","slug":"answer-by-warren-for-splunk-finding-results-of-a-field-that-have-the-same-peer-but-two-or-more-different-securityname-fields","status":"publish","type":"post","link":"https:\/\/merikebi.warrenmyers.com\/?p=73057","title":{"rendered":"Answer by warren for Splunk: Finding results of a field that have the same peer, but two or more different securityName fields"},"content":{"rendered":"<p>Just use <a href=\"https:\/\/docs.splunk.com\/Documentation\/Splunk\/latest\/SearchReference\/stats\" rel=\"nofollow noreferrer\"><code>stats<\/code><\/a> to do this &#8211; there shouldn&#8217;t be a need to <a href=\"https:\/\/docs.splunk.com\/Documentation\/Splunk\/latest\/SearchReference\/rex\" rel=\"nofollow noreferrer\"><code>rex<\/code><\/a>-out the end (or, at least, not the way you&#8217;re attacking it so far):<\/p>\n<pre><code>index=ndx sourcetype=srctp peer=* securityName=trap*\n| stats values(securityName) as securityName by peer\n| where mvcount(securityName)&gt;1\n<\/code><\/pre>\n<p>from User warren &#8211; Stack Overflow https:\/\/stackoverflow.com\/questions\/76133855\/splunk-finding-results-of-a-field-that-have-the-same-peer-but-two-or-more-diff\/76146566#76146566<br \/>\nvia <a href=\"https:\/\/ifttt.com\/?ref=da&#038;site=wordpress\">IFTTT<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just use stats to do this &#8211; there shouldn&#8217;t be a need to rex-out the end (or, at least, not the way you&#8217;re attacking it so far): index=ndx sourcetype=srctp peer=* securityName=trap* | stats values(securityName) as securityName by peer | where mvcount(securityName)&gt;1 from User warren &#8211; Stack Overflow https:\/\/stackoverflow.com\/questions\/76133855\/splunk-finding-results-of-a-field-that-have-the-same-peer-but-two-or-more-diff\/76146566#76146566 via IFTTT<\/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-73057","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\/73057","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=73057"}],"version-history":[{"count":1,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/73057\/revisions"}],"predecessor-version":[{"id":73058,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/73057\/revisions\/73058"}],"wp:attachment":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=73057"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=73057"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=73057"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fkeyring_services&post=73057"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}