<?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: search help, token issue in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/search-help-token-issue/m-p/684608#M56045</link>
    <description>&lt;P&gt;Suggestion is "don't use map". Map is an expensive, resource intensive, and slow command. Other ways to achieve this might be&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=hello sourcetype=welcome
| eventstats max(DATETIME) as LatestTime
| where DATETIME=LatestTime
| stats sum(HOUSE_TRADE_COUNT) as HOUSE_Trade_Count&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 18 Apr 2024 07:09:56 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2024-04-18T07:09:56Z</dc:date>
    <item>
      <title>search help, token issue</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/search-help-token-issue/m-p/684537#M56036</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;if i run this query in simple search bar it works fine. However, when i create panel and add the below, i'm getting error as waiting for input.&lt;/P&gt;
&lt;P&gt;Please could you advise?&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=hello sourcetype=welcome
| stats max(DATETIME) as LatestTime
| map search="search index=hello sourcetype=welcome DATETIME=$LatestTime$"
| stats sum(HOUSE_TRADE_COUNT) as HOUSE_Trade_Count&lt;/LI-CODE&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;selvam.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 16:44:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/search-help-token-issue/m-p/684537#M56036</guid>
      <dc:creator>selvam_sekar</dc:creator>
      <dc:date>2024-04-17T16:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: search help, token issue</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/search-help-token-issue/m-p/684540#M56037</link>
      <description>&lt;P&gt;Try doubling up the $'s as single $ are for tokens in dashboards.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=hello sourcetype=welcome
| stats max(DATETIME) as LatestTime
| map search="search index=hello sourcetype=welcome DATETIME=$$LatestTime$$"
| stats sum(HOUSE_TRADE_COUNT) as HOUSE_Trade_Count&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 17 Apr 2024 16:39:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/search-help-token-issue/m-p/684540#M56037</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-04-17T16:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: search help, token issue</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/search-help-token-issue/m-p/684549#M56039</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;I also found an issue, if I run this query for yesterday I am getting the result as 44Million count but when I run the search for last 7 days I am getting only 23Million results.&lt;/P&gt;
&lt;P&gt;Any suggestion to fix?&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=hello sourcetype=welcome
| stats max(DATETIME) as LatestTime
| map search="search index=hello sourcetype=welcome DATETIME=$$LatestTime$$"
| stats sum(HOUSE_TRADE_COUNT) as HOUSE_Trade_Count&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 17 Apr 2024 18:10:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/search-help-token-issue/m-p/684549#M56039</guid>
      <dc:creator>selvam_sekar</dc:creator>
      <dc:date>2024-04-17T18:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: search help, token issue</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/search-help-token-issue/m-p/684608#M56045</link>
      <description>&lt;P&gt;Suggestion is "don't use map". Map is an expensive, resource intensive, and slow command. Other ways to achieve this might be&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=hello sourcetype=welcome
| eventstats max(DATETIME) as LatestTime
| where DATETIME=LatestTime
| stats sum(HOUSE_TRADE_COUNT) as HOUSE_Trade_Count&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 18 Apr 2024 07:09:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/search-help-token-issue/m-p/684608#M56045</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-04-18T07:09:56Z</dc:date>
    </item>
  </channel>
</rss>

