{"id":66319,"date":"2022-11-08T17:27:51","date_gmt":"2022-11-08T17:27:51","guid":{"rendered":"https:\/\/merikebi.warrenmyers.com\/?p=66319"},"modified":"2022-11-08T17:27:51","modified_gmt":"2022-11-08T17:27:51","slug":"answer-by-warren-for-comparing-two-splunk-events-to-see-which-one-is-larger","status":"publish","type":"post","link":"https:\/\/merikebi.warrenmyers.com\/?p=66319","title":{"rendered":"Answer by warren for Comparing Two Splunk Events To See Which One Is Larger"},"content":{"rendered":"<p><em>Sans<\/em> sample data, something like the following will <em>probably<\/em> work:<\/p>\n<pre><code>index=crowdstrike sourcetype=crowdstrike:device:json falcon_device.hostname=* falcon_device.reduced_functionality_mode=yes\n| stats max(_time) as yestime by falcon_device.hostname\n| append\n    [| search index=crowdstrike sourcetype=crowdstrike:device:json falcon_device.hostname=* falcon_device.reduced_functionality_mode=no\n    | stats max(_time) as notime by falcon_device.hostname ]\n| stats values(*) as * by falcon_device.hostname\n| eval elapsed_seconds=yestime-notime\n<\/code><\/pre>\n<p>from User warren &#8211; Stack Overflow https:\/\/stackoverflow.com\/questions\/74351588\/comparing-two-splunk-events-to-see-which-one-is-larger\/74364838#74364838<br \/>\nvia <a href=\"https:\/\/ifttt.com\/?ref=da&#038;site=wordpress\">IFTTT<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sans sample data, something like the following will probably work: index=crowdstrike sourcetype=crowdstrike:device:json falcon_device.hostname=* falcon_device.reduced_functionality_mode=yes | stats max(_time) as yestime by falcon_device.hostname | append [| search index=crowdstrike sourcetype=crowdstrike:device:json falcon_device.hostname=* falcon_device.reduced_functionality_mode=no | stats max(_time) as notime by falcon_device.hostname ] | stats values(*) as * by falcon_device.hostname | eval elapsed_seconds=yestime-notime from User warren &#8211; Stack Overflow https:\/\/stackoverflow.com\/questions\/74351588\/comparing-two-splunk-events-to-see-which-one-is-larger\/74364838#74364838 via &hellip;<br \/><a href=\"https:\/\/merikebi.warrenmyers.com\/?p=66319\" class=\"more-link pen_button pen_element_default pen_icon_arrow_double\">Continue reading <span class=\"screen-reader-text\">Answer by warren for Comparing Two Splunk Events To See Which One Is Larger<\/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-66319","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\/66319","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=66319"}],"version-history":[{"count":1,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/66319\/revisions"}],"predecessor-version":[{"id":66320,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/66319\/revisions\/66320"}],"wp:attachment":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=66319"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=66319"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=66319"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fkeyring_services&post=66319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}