{"id":14248,"date":"2020-06-25T21:56:20","date_gmt":"2020-06-25T21:56:20","guid":{"rendered":"https:\/\/merikebi.warrenmyers.com\/?p=14248"},"modified":"2020-06-25T21:56:20","modified_gmt":"2020-06-25T21:56:20","slug":"why-does-job-resultcount-not-display-on-a-dashboard-as-a-token-but-will-if-i-assign-it-to-another-token-via-r-splunk","status":"publish","type":"post","link":"https:\/\/merikebi.warrenmyers.com\/?p=14248","title":{"rendered":"Why does $job.resultCount$ not display on a dashboard as a token, but will if I assign it to another token? via \/r\/Splunk"},"content":{"rendered":"<p><img decoding=\"async\" src=\"http:\/\/ifttt.com\/images\/no_image_card.png\"><br \/>\n<b>Why does $job.resultCount$ not display on a dashboard as a token, but will if I assign it to another token?<\/b><\/p>\n<div class=\"md\">\n<p>When a search finishes, <code>$job.resultCount$<\/code> holds the total rows\/events returned.<\/p>\n<p>If I assign that in a <code>&lt;done&gt;...&lt;\/done&gt;<\/code> clause thusly, I can display it on the dashboard using the token name assigned in the <code>&lt;done&gt;...<\/code>:<\/p>\n<pre><code>&lt;done&gt; &lt;set token=&quot;counttoken&quot;&gt;$job.resultCount$&lt;\/set&gt; &lt;\/done&gt; <\/code><\/pre>\n<p>In a <code>&lt;title&gt;<\/code> tag, I can then reference the new <code>eval<\/code>&#39;d token, and it&#39;ll sub-in the value:<\/p>\n<pre><code>&lt;title&gt;Total Returned Results - $counttoken$&lt;\/title&gt; <\/code><\/pre>\n<p>But if I put the &quot;raw&quot; token on the dashboard, I don&#39;t see anything but the literal text of &quot;<code>$job.resultCount$<\/code>&quot;:<\/p>\n<pre><code>&lt;title&gt;Total Returned Results - $job.resultCount$&lt;\/title&gt; <\/code><\/pre>\n<p>What may be causing this behavior?<\/p>\n<p>Splunk 8.0.4.1, if the version matters<\/p>\n<\/p><\/div>\n<p>Submitted June 25, 2020 at 05:44PM<br \/>\nvia reddit https:\/\/www.reddit.com\/r\/Splunk\/comments\/hfuvh3\/why_does_jobresultcount_not_display_on_a\/?utm_source=ifttt<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Why does $job.resultCount$ not display on a dashboard as a token, but will if I assign it to another token? When a search finishes, $job.resultCount$ holds the total rows\/events returned. If I assign that in a &lt;done&gt;&#8230;&lt;\/done&gt; clause thusly, I can display it on the dashboard using the token name assigned in the &lt;done&gt;&#8230;: &lt;done&gt; &hellip;<br \/><a href=\"https:\/\/merikebi.warrenmyers.com\/?p=14248\" class=\"more-link pen_button pen_element_default pen_icon_arrow_double\">Continue reading <span class=\"screen-reader-text\">Why does $job.resultCount$ not display on a dashboard as a token, but will if I assign it to another token? via \/r\/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_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[4],"tags":[972],"keyring_services":[],"class_list":["post-14248","post","type-post","status-publish","format-standard","hentry","category-blih","tag-reddit"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/14248","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=14248"}],"version-history":[{"count":1,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/14248\/revisions"}],"predecessor-version":[{"id":14249,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/14248\/revisions\/14249"}],"wp:attachment":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14248"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14248"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14248"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fkeyring_services&post=14248"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}