<?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: Timechart using Subsearch to set Span in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Timechart-using-Subsearch-to-set-Span/m-p/507496#M141885</link>
    <description>&lt;P&gt;Thanks for the suggestion but I'm not quite sure what you mean?&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jul 2020 08:28:24 GMT</pubDate>
    <dc:creator>moogmusic</dc:creator>
    <dc:date>2020-07-06T08:28:24Z</dc:date>
    <item>
      <title>Timechart using Subsearch to set Span</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-using-Subsearch-to-set-Span/m-p/507263#M141851</link>
      <description>&lt;P&gt;I'm trying to use a Subsearch to set the span parameter in timechart - other posts have suggested something like this:&lt;/P&gt;&lt;P&gt;| timechart [ stats count | addinfo | eval timerange=1593817200-1593730800&lt;BR /&gt;| eval span=case(timerange&amp;lt;=3600,"1m",timerange&amp;lt;=14400,"15m",timerange&amp;lt;=86400,"30m",timerange&amp;lt;=2592000,"1d",timerange&amp;gt;2592000,"1mon")&lt;BR /&gt;| return span ] sum(raw_len_gb) as GB by index cont=f&lt;/P&gt;&lt;P&gt;When. I run the search, I get no events matching. However if I expand the search (Ctrl+E) then it resolves to the expected value and the expanded search runs no problem.&lt;/P&gt;&lt;P&gt;Any ideas? Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 14:27:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-using-Subsearch-to-set-Span/m-p/507263#M141851</guid>
      <dc:creator>moogmusic</dc:creator>
      <dc:date>2020-07-03T14:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart using Subsearch to set Span</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-using-Subsearch-to-set-Span/m-p/507313#M141858</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=_internal 
| timechart [|makeresults | eval query="span=10m"| return $query] count&lt;/LI-CODE&gt;&lt;P&gt;That's interesting. I think it's better to send text.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 23:37:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-using-Subsearch-to-set-Span/m-p/507313#M141858</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-07-03T23:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart using Subsearch to set Span</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-using-Subsearch-to-set-Span/m-p/507496#M141885</link>
      <description>&lt;P&gt;Thanks for the suggestion but I'm not quite sure what you mean?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 08:28:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-using-Subsearch-to-set-Span/m-p/507496#M141885</guid>
      <dc:creator>moogmusic</dc:creator>
      <dc:date>2020-07-06T08:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart using Subsearch to set Span</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-using-Subsearch-to-set-Span/m-p/507497#M141886</link>
      <description>&lt;P&gt;I tried what you suggest. and get the same result - the query matches no events but then if I expand it and run the expansion, it works fine.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 08:31:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-using-Subsearch-to-set-Span/m-p/507497#M141886</guid>
      <dc:creator>moogmusic</dc:creator>
      <dc:date>2020-07-06T08:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart using Subsearch to set Span</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-using-Subsearch-to-set-Span/m-p/507499#M141887</link>
      <description>&lt;P&gt;I think your problem is macro settings, not your question.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 08:35:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-using-Subsearch-to-set-Span/m-p/507499#M141887</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-07-06T08:35:03Z</dc:date>
    </item>
  </channel>
</rss>

