<?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: Unable to subtract one days hours from previous days to create TimeChart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-subtract-one-days-hours-from-previous-days-to-create/m-p/575093#M200392</link>
    <description>&lt;LI-CODE lang="markup"&gt;| sort 0 PROJECT_NUMBER _time
| streamstats values(TotalHours) as previousTotalHours current=f window=1 by PROJECT_NUMBER
| eval diff=previousTotalHours-TotalHours&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 16 Nov 2021 16:56:58 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-11-16T16:56:58Z</dc:date>
    <item>
      <title>Unable to subtract one days hours from previous days to create TimeChart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-subtract-one-days-hours-from-previous-days-to-create/m-p/575091#M200391</link>
      <description>&lt;P&gt;I am trying to create a Timechart that will list out the TotalHours of that day and then subtract the previous days TotalHours to see the Hours difference in each day. This needs to span 14 days&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically I just need the Total Hours difference from One day to the next spanned across a timechart&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the data and Query I have so far (not much)&lt;/P&gt;&lt;P&gt;-------Search-----&lt;BR /&gt;| where TotalHours != "0" AND _time&amp;gt;relative_time(now(), "-14d@d")&lt;BR /&gt;| dedup PROJECT_NUMBER _time&lt;BR /&gt;| table PROJECT_NUMBER TotalHours _time&lt;BR /&gt;| sort by PROJECT_NUMBER&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="keezy713_0-1637080919559.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/16875i589E40FAA5044319/image-size/medium?v=v2&amp;amp;px=400" role="button" title="keezy713_0-1637080919559.png" alt="keezy713_0-1637080919559.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 16:43:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-subtract-one-days-hours-from-previous-days-to-create/m-p/575091#M200391</guid>
      <dc:creator>keezy713</dc:creator>
      <dc:date>2021-11-16T16:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to subtract one days hours from previous days to create TimeChart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-subtract-one-days-hours-from-previous-days-to-create/m-p/575093#M200392</link>
      <description>&lt;LI-CODE lang="markup"&gt;| sort 0 PROJECT_NUMBER _time
| streamstats values(TotalHours) as previousTotalHours current=f window=1 by PROJECT_NUMBER
| eval diff=previousTotalHours-TotalHours&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 16 Nov 2021 16:56:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-subtract-one-days-hours-from-previous-days-to-create/m-p/575093#M200392</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-11-16T16:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to subtract one days hours from previous days to create TimeChart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-subtract-one-days-hours-from-previous-days-to-create/m-p/575105#M200398</link>
      <description>&lt;P&gt;Below is the query that I have now&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Search&lt;BR /&gt;|table PROJECT_NUMBER _time TotalHours&lt;BR /&gt;| sort 0 PROJECT_NUMBER _time&lt;BR /&gt;| streamstats values(TotalHours) as previousTotalHours current=f window=1 by PROJECT_NUMBER&lt;BR /&gt;| eval diff=previousTotalHours-TotalHours&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="keezy713_0-1637084938230.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/16876i3405612EEFACC81E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="keezy713_0-1637084938230.png" alt="keezy713_0-1637084938230.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Im trying to see if I can get just the diff streamed out over a time period&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 18:11:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-subtract-one-days-hours-from-previous-days-to-create/m-p/575105#M200398</guid>
      <dc:creator>keezy713</dc:creator>
      <dc:date>2021-11-16T18:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to subtract one days hours from previous days to create TimeChart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-subtract-one-days-hours-from-previous-days-to-create/m-p/575106#M200399</link>
      <description>&lt;LI-CODE lang="markup"&gt;| xyseries _time PROJECT_NUMBER diff&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 16 Nov 2021 18:13:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-subtract-one-days-hours-from-previous-days-to-create/m-p/575106#M200399</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-11-16T18:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to subtract one days hours from previous days to create TimeChart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-subtract-one-days-hours-from-previous-days-to-create/m-p/575110#M200401</link>
      <description>&lt;P&gt;This is what I'm getting now.&lt;/P&gt;&lt;P&gt;I think its just populating from all the Projects.&lt;/P&gt;&lt;P&gt;Is there a way to get all the project (sum) TotalHours and then subtract that from the previous days total of TotalHours and then set x axis as _time and Y&amp;nbsp; axis as diff streamed across 2 weeks?&lt;/P&gt;&lt;P&gt;Again thanks for your help&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="keezy713_0-1637086654484.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/16877iE705A7885613EC02/image-size/medium?v=v2&amp;amp;px=400" role="button" title="keezy713_0-1637086654484.png" alt="keezy713_0-1637086654484.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 18:22:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-subtract-one-days-hours-from-previous-days-to-create/m-p/575110#M200401</guid>
      <dc:creator>keezy713</dc:creator>
      <dc:date>2021-11-16T18:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to subtract one days hours from previous days to create TimeChart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-subtract-one-days-hours-from-previous-days-to-create/m-p/575113#M200402</link>
      <description>&lt;LI-CODE lang="markup"&gt;| timechart sum(diff) as Total&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 16 Nov 2021 18:31:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-subtract-one-days-hours-from-previous-days-to-create/m-p/575113#M200402</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-11-16T18:31:24Z</dc:date>
    </item>
  </channel>
</rss>

