<?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: how to link search query from Dashboard to search tab which is having variables in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-link-search-query-from-Dashboard-to-search-tab-which-is/m-p/534028#M150922</link>
    <description>&lt;P&gt;Thanks Scelikok&lt;SPAN class=""&gt;&lt;BR /&gt;it is working but I changed little bit -&amp;nbsp; tonumber($Time$+1)*60&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Dec 2020 09:09:17 GMT</pubDate>
    <dc:creator>rkishoreqa</dc:creator>
    <dc:date>2020-12-24T09:09:17Z</dc:date>
    <item>
      <title>how to link search query from Dashboard to search tab which is having variables</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-link-search-query-from-Dashboard-to-search-tab-which-is/m-p/533977#M150903</link>
      <description>&lt;P&gt;I build a query to fetch the long running jobs in Dashboard like as below. Here the&amp;nbsp;$Time$ is a token which was selected from dropdown menu in that panel.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt; | rex field=_raw "ApplicationName:\s+\[(?P&amp;lt;Applname&amp;gt;.*)];" |rex field=_raw "jobId: (?&amp;lt;jId&amp;gt;\w+);" | stats earliest(_time) as start latest(_time) as end by jId,sourcetype | eval diff=end-start |eval LB=$Time$*60 | eval UB=$Time$+1*60 | stats count(eval((diff&amp;gt; LB) AND (diff&amp;lt;UP))) as count|stats count&lt;/P&gt;&lt;P&gt;In dashboard it is showing some numbers (3 long running jobs). But when I clicked on that number it is going to the search tab with below query and not fetching any results.&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;nbsp;| rex field=_raw "ApplicationName:\s+\[(?P&amp;lt;Applname&amp;gt;.*)];" | rex field=_raw "jobId: (?&amp;lt;jId&amp;gt;\w+);" | stats earliest(_time) as start latest(_time) as end by jId,sourcetype | eval diff=end-start | eval LB=5*60 | eval UB=5+1*60 | stats count(eval((diff&amp;gt; LB) AND (diff&amp;lt;UB))) as count&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I change the 'eval LB=5*60 | eval UB=5+1*60'&amp;nbsp; to&amp;nbsp; &amp;nbsp; &amp;nbsp;'eval LB=300 | eval UB=360' it is fetching the results.&amp;nbsp;&lt;BR /&gt;Here I am confused, is this right approach or not. Can anyone suggest me on this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 18:27:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-link-search-query-from-Dashboard-to-search-tab-which-is/m-p/533977#M150903</guid>
      <dc:creator>rkishoreqa</dc:creator>
      <dc:date>2020-12-23T18:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to link search query from Dashboard to search tab which is having variables</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-link-search-query-from-Dashboard-to-search-tab-which-is/m-p/533987#M150905</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225991"&gt;@rkishoreqa&lt;/a&gt;, $Time$ token is processed as string, that is UB and LB fields become string.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try as below;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=_raw "ApplicationName:\s+\[(?P&amp;lt;Applname&amp;gt;.*)];" |rex field=_raw "jobId: (?&amp;lt;jId&amp;gt;\w+);" | stats earliest(_time) as start latest(_time) as end by jId,sourcetype | eval diff=end-start |eval LB=tonumber($Time$)*60 | eval UB=tonumber($Time$)+1*60 | stats count(eval((diff&amp;gt; LB) AND (diff&amp;lt;UP))) as count&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this reply helps you an upvote is appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 19:31:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-link-search-query-from-Dashboard-to-search-tab-which-is/m-p/533987#M150905</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2020-12-23T19:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to link search query from Dashboard to search tab which is having variables</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-link-search-query-from-Dashboard-to-search-tab-which-is/m-p/534028#M150922</link>
      <description>&lt;P&gt;Thanks Scelikok&lt;SPAN class=""&gt;&lt;BR /&gt;it is working but I changed little bit -&amp;nbsp; tonumber($Time$+1)*60&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2020 09:09:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-link-search-query-from-Dashboard-to-search-tab-which-is/m-p/534028#M150922</guid>
      <dc:creator>rkishoreqa</dc:creator>
      <dc:date>2020-12-24T09:09:17Z</dc:date>
    </item>
  </channel>
</rss>

