{"id":27301,"date":"2020-12-21T15:32:41","date_gmt":"2020-12-21T15:32:41","guid":{"rendered":"https:\/\/merikebi.warrenmyers.com\/?p=27301"},"modified":"2020-12-21T15:32:41","modified_gmt":"2020-12-21T15:32:41","slug":"answer-by-warren-for-splunk-relative-times-with-are-incorrect-in-dashboard-out-by-a-week","status":"publish","type":"post","link":"https:\/\/merikebi.warrenmyers.com\/?p=27301","title":{"rendered":"Answer by warren for Splunk relative times with + are incorrect in dashboard (out by a week)"},"content":{"rendered":"<p>Not sure exactly what you&#8217;re seeing, but the lone example on Docs.Splunk for <a href=\"https:\/\/docs.splunk.com\/Documentation\/Splunk\/8.1.1\/SearchReference\/DateandTimeFunctions#relative_time.28X.2CY.29\" rel=\"nofollow noreferrer\"><code>relative_time<\/code><\/a> uses a negative value.<\/p>\n<p>That said, if you want to &quot;look into the future&quot; with your searches, why not just add 1 to <code>argh1<\/code> &#8211; since you&#8217;ve already <code>eval<\/code>&#8216;d it, you &quot;know&quot; it&#8217;s <code>now()<\/code>.<\/p>\n<p>Something like this, perhaps:<\/p>\n<pre><code>| eval argh1=now()\n| eval argh2=argh1-1, argh3=argh1+1\n<\/code><\/pre>\n<p>from User warren &#8211; Stack Overflow https:\/\/stackoverflow.com\/questions\/65359627\/splunk-relative-times-with-are-incorrect-in-dashboard-out-by-a-week\/65395510#65395510<br \/>\nvia <a href=\"https:\/\/ifttt.com\/?ref=da&#038;site=wordpress\">IFTTT<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Not sure exactly what you&#8217;re seeing, but the lone example on Docs.Splunk for relative_time uses a negative value. That said, if you want to &quot;look into the future&quot; with your searches, why not just add 1 to argh1 &#8211; since you&#8217;ve already eval&#8216;d it, you &quot;know&quot; it&#8217;s now(). Something like this, perhaps: | eval argh1=now() &hellip;<br \/><a href=\"https:\/\/merikebi.warrenmyers.com\/?p=27301\" class=\"more-link pen_button pen_element_default pen_icon_arrow_double\">Continue reading <span class=\"screen-reader-text\">Answer by warren for Splunk relative times with + are incorrect in dashboard (out by a week)<\/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-27301","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\/27301","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=27301"}],"version-history":[{"count":1,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/27301\/revisions"}],"predecessor-version":[{"id":27302,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/27301\/revisions\/27302"}],"wp:attachment":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=27301"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=27301"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=27301"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fkeyring_services&post=27301"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}