<?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: Create a time series graph after a stats command in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Create-a-time-series-graph-after-a-stats-command/m-p/534927#M151180</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/230225"&gt;@jamesboustead&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Since your search has no _time field on group by. "timechart" command use _time field for group by.&lt;/P&gt;&lt;P&gt;Please try below as a sample;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| timechart span=1d count by xxx
| eval xxx = xxx * count
| timechart span=1d sum(xxx) as yyy&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, 06 Jan 2021 08:20:41 GMT</pubDate>
    <dc:creator>scelikok</dc:creator>
    <dc:date>2021-01-06T08:20:41Z</dc:date>
    <item>
      <title>Create a time series graph after a stats command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-a-time-series-graph-after-a-stats-command/m-p/534922#M151178</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm not able to create a timechart graph for the below search, it is coming up with no result.&lt;/P&gt;&lt;P&gt;My current search is as below:&lt;/P&gt;&lt;P&gt;"My search&amp;nbsp;&lt;/P&gt;&lt;P&gt;| stats count by xxx&lt;/P&gt;&lt;P&gt;| xxx = xxx * count&lt;/P&gt;&lt;P&gt;| stats sum(xxx) as "yyy"&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This search gives the the correct total but only relating to the time range picker, how would I manipulate the query to get a time series graph by the sum of each day?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 08:11:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-a-time-series-graph-after-a-stats-command/m-p/534922#M151178</guid>
      <dc:creator>jamesboustead</dc:creator>
      <dc:date>2021-01-06T08:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Create a time series graph after a stats command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-a-time-series-graph-after-a-stats-command/m-p/534925#M151179</link>
      <description>&lt;P&gt;We can use timechart command.&amp;nbsp;&lt;/P&gt;&lt;P&gt;index=_internal&lt;BR /&gt;| timechart span=1d count&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 08:19:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-a-time-series-graph-after-a-stats-command/m-p/534925#M151179</guid>
      <dc:creator>saravanan90</dc:creator>
      <dc:date>2021-01-06T08:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Create a time series graph after a stats command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-a-time-series-graph-after-a-stats-command/m-p/534927#M151180</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/230225"&gt;@jamesboustead&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Since your search has no _time field on group by. "timechart" command use _time field for group by.&lt;/P&gt;&lt;P&gt;Please try below as a sample;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| timechart span=1d count by xxx
| eval xxx = xxx * count
| timechart span=1d sum(xxx) as yyy&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, 06 Jan 2021 08:20:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-a-time-series-graph-after-a-stats-command/m-p/534927#M151180</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-01-06T08:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Create a time series graph after a stats command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-a-time-series-graph-after-a-stats-command/m-p/534929#M151181</link>
      <description>&lt;P&gt;This is now giving me two columns:&lt;/P&gt;&lt;P&gt;- one for "_time" which is split up daily which is good.&lt;/P&gt;&lt;P&gt;- one for 'yyy' but unfortunately this has no values underneath the column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please can you advise on how to get the value underneath 'yyy' corresponding to each day in the '_time' column?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 08:27:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-a-time-series-graph-after-a-stats-command/m-p/534929#M151181</guid>
      <dc:creator>jamesboustead</dc:creator>
      <dc:date>2021-01-06T08:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Create a time series graph after a stats command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-a-time-series-graph-after-a-stats-command/m-p/534930#M151182</link>
      <description>&lt;P&gt;Since I don't know your data I tried to convert your search &amp;nbsp;to timechart. I think xxx field is not a numeric field, so eval calculation is returning null value. I don't know your use case but below sample should work.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| timechart span=1d count by xxx
| eval xxx = 5 * count
| timechart span=1d sum(xxx) as yyy&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 06 Jan 2021 08:52:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-a-time-series-graph-after-a-stats-command/m-p/534930#M151182</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-01-06T08:52:02Z</dc:date>
    </item>
  </channel>
</rss>

