<?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: Splunk Time chart Line Chart in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-plot-time-chart-line-chart/m-p/633691#M51946</link>
    <description>&lt;P&gt;I tried this did not work &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Mar 2023 09:51:12 GMT</pubDate>
    <dc:creator>CodingMaestro</dc:creator>
    <dc:date>2023-03-08T09:51:12Z</dc:date>
    <item>
      <title>How to plot time chart line chart?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-plot-time-chart-line-chart/m-p/633655#M51938</link>
      <description>&lt;P class="lia-align-left"&gt;Hello,&lt;/P&gt;
&lt;P class="lia-align-left"&gt;So currently I have a trendline like below...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CodingMaestro_0-1678229234051.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/24236i800F564827BF61A6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CodingMaestro_0-1678229234051.png" alt="CodingMaestro_0-1678229234051.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I need to have the visual in a way where it shows the stats sum(books) for another date which shows the trend of what it was 4 weeks ago for the stats sum (books) and what it is currently, i tried using span but what that does is it shows me how many books for that particular day and not the stats sum(books) in total. I need something like below.. any help would be greatly appreciated.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CodingMaestro_1-1678229665071.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/24237i8BA42CCA6C24CB46/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CodingMaestro_1-1678229665071.png" alt="CodingMaestro_1-1678229665071.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 19:33:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-plot-time-chart-line-chart/m-p/633655#M51938</guid>
      <dc:creator>CodingMaestro</dc:creator>
      <dc:date>2023-03-09T19:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Time chart Line Chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-plot-time-chart-line-chart/m-p/633658#M51939</link>
      <description>&lt;P&gt;What's your current query?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 23:26:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-plot-time-chart-line-chart/m-p/633658#M51939</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2023-03-07T23:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Time chart Line Chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-plot-time-chart-line-chart/m-p/633660#M51940</link>
      <description>&lt;P&gt;Basically you want to search for both time ranges you are making comparison for, then do something like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| timechart sum(Books) span=1mon
| timewrap 1y&lt;/LI-CODE&gt;&lt;P&gt;to wrap the time periods over a 1year period (I see your example shows a monthly figure for another period - so assume it's a 1y comparison)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 23:30:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-plot-time-chart-line-chart/m-p/633660#M51940</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2023-03-07T23:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Time chart Line Chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-plot-time-chart-line-chart/m-p/633680#M51941</link>
      <description>&lt;LI-CODE lang="markup"&gt;| timechart sum(books) span=4w&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 08 Mar 2023 07:27:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-plot-time-chart-line-chart/m-p/633680#M51941</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-03-08T07:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Time chart Line Chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-plot-time-chart-line-chart/m-p/633690#M51945</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;My current query is as below:&lt;BR /&gt;| timechart span=24h sum(Books) as Total_Books&lt;BR /&gt;| search Total_Books!="null"&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 09:50:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-plot-time-chart-line-chart/m-p/633690#M51945</guid>
      <dc:creator>CodingMaestro</dc:creator>
      <dc:date>2023-03-08T09:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Time chart Line Chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-plot-time-chart-line-chart/m-p/633691#M51946</link>
      <description>&lt;P&gt;I tried this did not work &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 09:51:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-plot-time-chart-line-chart/m-p/633691#M51946</guid>
      <dc:creator>CodingMaestro</dc:creator>
      <dc:date>2023-03-08T09:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Time chart Line Chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-plot-time-chart-line-chart/m-p/633692#M51947</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;Hello, i tried this but the issue with this is that it is not counting the sum(books) as the total it is only counting the sum(books) total for that particular day.,&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 09:53:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-plot-time-chart-line-chart/m-p/633692#M51947</guid>
      <dc:creator>CodingMaestro</dc:creator>
      <dc:date>2023-03-08T09:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Time chart Line Chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-plot-time-chart-line-chart/m-p/633693#M51948</link>
      <description>&lt;P&gt;Please share the complete SPL you are using when you say it is only counting for a particular day&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 09:56:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-plot-time-chart-line-chart/m-p/633693#M51948</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-03-08T09:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Time chart Line Chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-plot-time-chart-line-chart/m-p/633699#M51949</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;index=.....&lt;BR /&gt;| stats latest(bookName) by id bookNumber _time&lt;BR /&gt;| stats dc(bookNumber ) as Books by id _time&lt;BR /&gt;| table id Books _time&lt;BR /&gt;| timechart span=24h sum(Books) as Total_Books_Read&lt;BR /&gt;| search Total_Books_Read!="null"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the search is running for the last 24 hours..&lt;/P&gt;&lt;P&gt;So i am getting a visual(trendline) that has 524,900 for sum(books)for the last 24 hours but i need a visual that shows the sum(books) every 4 weeks, for the last year. but when i use span=4w for example and have the search run for last year it shows the sum(books) only for that particular day.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 10:30:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-plot-time-chart-line-chart/m-p/633699#M51949</guid>
      <dc:creator>CodingMaestro</dc:creator>
      <dc:date>2023-03-08T10:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Time chart Line Chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-plot-time-chart-line-chart/m-p/633707#M51950</link>
      <description>&lt;P&gt;Given&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats latest(bookName) by id bookNumber _time&lt;/LI-CODE&gt;&lt;P&gt;Then all the counts given by&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats dc(bookNumber ) as Books by id _time&lt;/LI-CODE&gt;&lt;P&gt;will be 1, therefore you just need to count the events from the first stats line by time.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=.....
| stats latest(bookName) by id bookNumber _time
| timechart span=4w count&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 11:24:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-plot-time-chart-line-chart/m-p/633707#M51950</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-03-08T11:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Time chart Line Chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-plot-time-chart-line-chart/m-p/633710#M51951</link>
      <description>&lt;P&gt;I cannot really do that as i need the stats sum(books) because for example the books field might have 8, its not always one henceforth that is why i am using stats sum&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 11:47:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-plot-time-chart-line-chart/m-p/633710#M51951</guid>
      <dc:creator>CodingMaestro</dc:creator>
      <dc:date>2023-03-08T11:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Time chart Line Chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-plot-time-chart-line-chart/m-p/633713#M51952</link>
      <description>&lt;P&gt;Yes, you are right - try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats latest(bookName) by id bookNumber _time
| stats dc(bookNumber ) as Books by id _time
| table id Books _time
| timechart span=4w sum(Books)&lt;/LI-CODE&gt;&lt;P&gt;Note that the date used will be the start of the 4 week period but still contains the sum of all the days in that period.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 12:20:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-plot-time-chart-line-chart/m-p/633713#M51952</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-03-08T12:20:39Z</dc:date>
    </item>
  </channel>
</rss>

