<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Email Alert - Result tokens in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-I-use-a-field-as-a-token-without-it-showing-on-the-search/m-p/259804#M16347</link>
    <description>&lt;P&gt;Sorry, I was thinking through dashboards and not alerts. I think the field has to be available for you to use it in your alert.&lt;/P&gt;</description>
    <pubDate>Wed, 19 Oct 2016 18:29:09 GMT</pubDate>
    <dc:creator>cmerriman</dc:creator>
    <dc:date>2016-10-19T18:29:09Z</dc:date>
    <item>
      <title>Can I use a field as a token without it showing on the search?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-I-use-a-field-as-a-token-without-it-showing-on-the-search/m-p/259799#M16342</link>
      <description>&lt;P&gt;Can I use a field as a token without it showing on the search?&lt;/P&gt;
&lt;P&gt;For example:&lt;BR /&gt;index=idx_abc sourcetype=src_a TOTAL &amp;gt; 10 | table Col1 Col2 Col3&lt;/P&gt;
&lt;P&gt;I want to use $result.TOTAL$. In other words, I want refer to a column without show it on the search results.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 19:01:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-I-use-a-field-as-a-token-without-it-showing-on-the-search/m-p/259799#M16342</guid>
      <dc:creator>maffreitas</dc:creator>
      <dc:date>2022-02-23T19:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Email Alert - Result tokens</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-I-use-a-field-as-a-token-without-it-showing-on-the-search/m-p/259800#M16343</link>
      <description>&lt;P&gt;Try this (put TOTAL in the table but use  under options):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;title&amp;gt;TITLE&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=idx_abc sourcetype=src_a TOTAL &amp;gt; 10 | table Col1 Col2 Col3 TOTAL &amp;lt;/query&amp;gt;
        &amp;lt;set token="total"&amp;gt;$result.TOTAL$&amp;lt;/set&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;cell&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="count"&amp;gt;10&amp;lt;/option&amp;gt;
        &amp;lt;fields&amp;gt;["Col1","Col2","Col3"]&amp;lt;/fields&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Oct 2016 16:23:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-I-use-a-field-as-a-token-without-it-showing-on-the-search/m-p/259800#M16343</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2016-10-19T16:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Email Alert - Result tokens</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-I-use-a-field-as-a-token-without-it-showing-on-the-search/m-p/259801#M16344</link>
      <description>&lt;P&gt;Hi @cmerriman, thank you.&lt;/P&gt;

&lt;P&gt;It unfortunately does not work, because if try to use the the $result.TOTAL$ this value comes empty on the email.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 16:30:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-I-use-a-field-as-a-token-without-it-showing-on-the-search/m-p/259801#M16344</guid>
      <dc:creator>maffreitas</dc:creator>
      <dc:date>2016-10-19T16:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Email Alert - Result tokens</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-I-use-a-field-as-a-token-without-it-showing-on-the-search/m-p/259802#M16345</link>
      <description>&lt;P&gt;you  might need to do:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;done&amp;gt;
&amp;lt;set token="total"&amp;gt;$result.TOTAL$&amp;lt;/set&amp;gt;
&amp;lt;/done&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;preview&amp;gt;
&amp;lt;set token="total"&amp;gt;$result.TOTAL$&amp;lt;/set&amp;gt;
&amp;lt;/preview&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;something to help troubleshoot tokens is to use &lt;CODE&gt;showtokens.js&lt;/CODE&gt; to see if the token is being created/evaluated correctly.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 16:33:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-I-use-a-field-as-a-token-without-it-showing-on-the-search/m-p/259802#M16345</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2016-10-19T16:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Email Alert - Result tokens</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-I-use-a-field-as-a-token-without-it-showing-on-the-search/m-p/259803#M16346</link>
      <description>&lt;P&gt;@cmerriman, thank you again.&lt;/P&gt;

&lt;P&gt;I got your point, but by  default I can't use simpleXML on email alert notification, can I?&lt;BR /&gt;
(&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.0/Alert/EmailNotificationTokens"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.0/Alert/EmailNotificationTokens&lt;/A&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 16:44:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-I-use-a-field-as-a-token-without-it-showing-on-the-search/m-p/259803#M16346</guid>
      <dc:creator>maffreitas</dc:creator>
      <dc:date>2016-10-19T16:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Email Alert - Result tokens</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-I-use-a-field-as-a-token-without-it-showing-on-the-search/m-p/259804#M16347</link>
      <description>&lt;P&gt;Sorry, I was thinking through dashboards and not alerts. I think the field has to be available for you to use it in your alert.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 18:29:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-I-use-a-field-as-a-token-without-it-showing-on-the-search/m-p/259804#M16347</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2016-10-19T18:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Email Alert - Result tokens</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-I-use-a-field-as-a-token-without-it-showing-on-the-search/m-p/529359#M35930</link>
      <description>&lt;P&gt;If you prefix the token name with an underscore it will hide it from the table, but the information is still present for you to use.&amp;nbsp; You will still need to put it in the final table.&lt;/P&gt;&lt;P&gt;This command will contain the data for all 4 fields, but it will only visibly show you the 3 without leading underscores.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| table _TOTAL Col1 Col2 Col3&lt;/LI-CODE&gt;&lt;P&gt;This token will be available for you to use.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$result._TOTAL$&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 13 Nov 2020 20:07:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-I-use-a-field-as-a-token-without-it-showing-on-the-search/m-p/529359#M35930</guid>
      <dc:creator>weidertc</dc:creator>
      <dc:date>2020-11-13T20:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: Email Alert - Result tokens</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-I-use-a-field-as-a-token-without-it-showing-on-the-search/m-p/586294#M48069</link>
      <description>&lt;P&gt;This is the way.&amp;nbsp; Thank you weidertc!&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 18:55:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-I-use-a-field-as-a-token-without-it-showing-on-the-search/m-p/586294#M48069</guid>
      <dc:creator>grywiner51</dc:creator>
      <dc:date>2022-02-23T18:55:42Z</dc:date>
    </item>
  </channel>
</rss>

