<?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: Chaining from a timechart in Splunk Cloud Platform</title>
    <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/Chaining-from-a-timechart/m-p/756115#M4086</link>
    <description>&lt;P&gt;Glad to see the old posts still have value&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Just a minor addition to consider - timechart will create buckets of _time depending on the time period you are looking at, so if you are searching a week, it will give you 1 day buckets and if you search 24h it will give you 30 minute buckets.&lt;/P&gt;&lt;P&gt;When you do stats by _time if you have lots of data per second, then your stats will generate a lot of results, so if you do use the stats technique mentioned, it's worth considering a&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| bin _time span=X&lt;/LI-CODE&gt;&lt;P&gt;to define the bucket. If you don't know in advance what bucket size you want, but know what your minimum would be, e.g. 1h, then add in span=1h simply to reduce the volume. So if you had 1 million events per hour, if you don't do the bin, you would exceed the base search result set, whereas with span=1h you would get a single result per hour.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Dec 2025 23:06:05 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2025-12-02T23:06:05Z</dc:date>
    <item>
      <title>Chaining from a timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/Chaining-from-a-timechart/m-p/756107#M4083</link>
      <description>&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;I know from the docs that the base of a chained search should be a transforming command, such as stats or timechart.&amp;nbsp; However I cannot figure out how to make timechart work.&amp;nbsp; I want to have 2 visualizations on my dashboard: one that is a timechart (visualized as lines) and another that shows the totals for each line or bar over the entire range.&amp;nbsp; (It would also be ok to integrate the total into the timechart/linechart but I haven't been able to figure that out, either.)&lt;/P&gt;&lt;P&gt;Here is the timechart that I'm trying to use as my base:&lt;/P&gt;&lt;PRE&gt;...| timechart count by kubernetes.pod_name&lt;/PRE&gt;&lt;P&gt;This works as expected.&amp;nbsp; Now I want to show a table of the totals for each pod.&amp;nbsp; IOW, if the counts were 100, 120, and 200 for 3 time periods for a single pod, I want one row that shows 420 for that pod:&lt;/P&gt;&lt;PRE&gt;| stats sum(count) by kubernetes.pod_name&lt;/PRE&gt;&lt;P&gt;This does not produce any output.&amp;nbsp; I think the issue might be kubernetes.pod_name, but I don't know what the output fields of timechart are called.&lt;/P&gt;&lt;P&gt;I have also tried using just the initial search as the base and having 2 chained searches-- one for timechart and one for stats-- but I run in to the event limit.&lt;/P&gt;&lt;P&gt;How can I chain from timechart?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Dec 2025 18:41:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/Chaining-from-a-timechart/m-p/756107#M4083</guid>
      <dc:creator>JohnGregg</dc:creator>
      <dc:date>2025-12-02T18:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Chaining from a timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/Chaining-from-a-timechart/m-p/756109#M4084</link>
      <description>&lt;P&gt;Run the base search interactively and notice the fields produced.&amp;nbsp; You should see the &lt;FONT face="courier new,courier"&gt;timechart&lt;/FONT&gt; fields don't match those expected by &lt;FONT face="courier new,courier"&gt;stats&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;I suggest changing the base search to stop immediately before the &lt;FONT face="courier new,courier"&gt;timechart&lt;/FONT&gt; command.&amp;nbsp; Then have two chained searches - one for &lt;FONT face="courier new,courier"&gt;timechart&lt;/FONT&gt; and one for &lt;FONT face="courier new,courier"&gt;stats&lt;/FONT&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Dec 2025 18:56:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/Chaining-from-a-timechart/m-p/756109#M4084</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2025-12-02T18:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Chaining from a timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/Chaining-from-a-timechart/m-p/756111#M4085</link>
      <description>&lt;P&gt;I ended up using the stats "trick" mentioned by bowesmana here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Splunk-Search/help-on-base-search-event-limit/m-p/574058/highlight/true" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Search/help-on-base-search-event-limit/m-p/574058/highlight/true&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Specifically I added this to my base search:&lt;/P&gt;&lt;PRE&gt;stats count by _time,kubernetes.pod_name&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Dec 2025 21:05:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/Chaining-from-a-timechart/m-p/756111#M4085</guid>
      <dc:creator>JohnGregg</dc:creator>
      <dc:date>2025-12-02T21:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Chaining from a timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/Chaining-from-a-timechart/m-p/756115#M4086</link>
      <description>&lt;P&gt;Glad to see the old posts still have value&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Just a minor addition to consider - timechart will create buckets of _time depending on the time period you are looking at, so if you are searching a week, it will give you 1 day buckets and if you search 24h it will give you 30 minute buckets.&lt;/P&gt;&lt;P&gt;When you do stats by _time if you have lots of data per second, then your stats will generate a lot of results, so if you do use the stats technique mentioned, it's worth considering a&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| bin _time span=X&lt;/LI-CODE&gt;&lt;P&gt;to define the bucket. If you don't know in advance what bucket size you want, but know what your minimum would be, e.g. 1h, then add in span=1h simply to reduce the volume. So if you had 1 million events per hour, if you don't do the bin, you would exceed the base search result set, whereas with span=1h you would get a single result per hour.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Dec 2025 23:06:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/Chaining-from-a-timechart/m-p/756115#M4086</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2025-12-02T23:06:05Z</dc:date>
    </item>
  </channel>
</rss>

