{"id":75011,"date":"2023-06-29T20:18:34","date_gmt":"2023-06-29T20:18:34","guid":{"rendered":"https:\/\/merikebi.warrenmyers.com\/?p=75011"},"modified":"2023-06-29T20:18:34","modified_gmt":"2023-06-29T20:18:34","slug":"answer-by-warren-for-splunk-query-to-map-exceptions-to-endpoints","status":"publish","type":"post","link":"https:\/\/merikebi.warrenmyers.com\/?p=75011","title":{"rendered":"Answer by warren for Splunk query to map Exceptions to Endpoints"},"content":{"rendered":"<p>This answer <em>presumes<\/em> your fields are already properly extracted<\/p>\n<p>If they are not, you&#8217;ll need to do that first (and we can help you with it)<\/p>\n<p>Something like this should do the trick for you:<\/p>\n<pre><code>((index=ndxA sourcetype=srctpA) OR (index=ndxB sourcetype=srctpB)) thread=* spanid=* loglevel=*\n| stats values(errorCode) as errorCode values(httpUrl) as httpUrl values(httpMethod) as httpMethod max(_time) as _time by thread spanid loglevel\n| table _time httpMethod httpUrl errorCode\n<\/code><\/pre>\n<p>from User warren &#8211; Stack Overflow https:\/\/stackoverflow.com\/questions\/76583228\/splunk-query-to-map-exceptions-to-endpoints\/76584353#76584353<br \/>\nvia <a href=\"https:\/\/ifttt.com\/?ref=da&amp;site=wordpress\">IFTTT<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This answer presumes your fields are already properly extracted If they are not, you&#8217;ll need to do that first (and we can help you with it) Something like this should do the trick for you: ((index=ndxA sourcetype=srctpA) OR (index=ndxB sourcetype=srctpB)) thread=* spanid=* loglevel=* | stats values(errorCode) as errorCode values(httpUrl) as httpUrl values(httpMethod) as httpMethod max(_time) &hellip;<br \/><a href=\"https:\/\/merikebi.warrenmyers.com\/?p=75011\" class=\"more-link pen_button pen_element_default pen_icon_arrow_double\">Continue reading <span class=\"screen-reader-text\">Answer by warren for Splunk query to map Exceptions to Endpoints<\/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-75011","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\/75011","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=75011"}],"version-history":[{"count":1,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/75011\/revisions"}],"predecessor-version":[{"id":75012,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/75011\/revisions\/75012"}],"wp:attachment":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=75011"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=75011"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=75011"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fkeyring_services&post=75011"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}