<?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: How to trend data over backlog data with input lookup in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-trend-data-over-backlog-data-with-input-lookup/m-p/430709#M123119</link>
    <description>&lt;P&gt;Not sure if my comment posted as i cant see it so will post again below&lt;/P&gt;

&lt;P&gt;If i use that it just counts the amounts that fall on that date &lt;/P&gt;

&lt;P&gt;_time   count&lt;BR /&gt;
2019-05-29  6&lt;BR /&gt;
2019-06-01  1&lt;BR /&gt;
2019-07-02  3&lt;BR /&gt;
2019-07-30  4&lt;BR /&gt;
2019-07-31  1&lt;BR /&gt;
2019-08-02  2&lt;BR /&gt;
2019-08-03  2&lt;BR /&gt;
2019-08-04  1&lt;BR /&gt;
2019-08-05  1&lt;BR /&gt;
2019-08-06  1&lt;BR /&gt;
2019-08-07  255&lt;/P&gt;</description>
    <pubDate>Wed, 07 Aug 2019 15:11:12 GMT</pubDate>
    <dc:creator>Sfry1981</dc:creator>
    <dc:date>2019-08-07T15:11:12Z</dc:date>
    <item>
      <title>How to trend data over backlog data with input lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-trend-data-over-backlog-data-with-input-lookup/m-p/430707#M123117</link>
      <description>&lt;P&gt;I have the below query which updates from an input lookup but what I want is trend data that shows what the total amount was each day.&lt;BR /&gt;
i.e it was 275 on the 07/08 and it was 260 14/08&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup int_case | search latest_status__c!=Closed latest_status__c!=Approved latest_status__c!="Cancelled" (issue_url__c!="null" OR jira_issue_id__c!="null") labels__c!="*test1*" labels__c!=*test2*  issue_key__c=ip-* latest_status__c!=null system_area_1__c!=test1 system_area_1__c!=test2* owner_role__c=*test3* if_parent_case__c&amp;lt;=0000001 | stats count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have tried using a timechart but the only way I can think to do with this is to somehow store the previous results so it can show the previous data .&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 15:00:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-trend-data-over-backlog-data-with-input-lookup/m-p/430707#M123117</guid>
      <dc:creator>Sfry1981</dc:creator>
      <dc:date>2019-08-07T15:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to trend data over backlog data with input lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-trend-data-over-backlog-data-with-input-lookup/m-p/430708#M123118</link>
      <description>&lt;P&gt;what happens if you use |timechart span=1d count&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 15:05:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-trend-data-over-backlog-data-with-input-lookup/m-p/430708#M123118</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-08-07T15:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to trend data over backlog data with input lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-trend-data-over-backlog-data-with-input-lookup/m-p/430709#M123119</link>
      <description>&lt;P&gt;Not sure if my comment posted as i cant see it so will post again below&lt;/P&gt;

&lt;P&gt;If i use that it just counts the amounts that fall on that date &lt;/P&gt;

&lt;P&gt;_time   count&lt;BR /&gt;
2019-05-29  6&lt;BR /&gt;
2019-06-01  1&lt;BR /&gt;
2019-07-02  3&lt;BR /&gt;
2019-07-30  4&lt;BR /&gt;
2019-07-31  1&lt;BR /&gt;
2019-08-02  2&lt;BR /&gt;
2019-08-03  2&lt;BR /&gt;
2019-08-04  1&lt;BR /&gt;
2019-08-05  1&lt;BR /&gt;
2019-08-06  1&lt;BR /&gt;
2019-08-07  255&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 15:11:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-trend-data-over-backlog-data-with-input-lookup/m-p/430709#M123119</guid>
      <dc:creator>Sfry1981</dc:creator>
      <dc:date>2019-08-07T15:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to trend data over backlog data with input lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-trend-data-over-backlog-data-with-input-lookup/m-p/430710#M123120</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;|timechart span=1d count 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Above code will give you number of events per day. Isn't this you are after?&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;"total amount for each day"&lt;/EM&gt; --&amp;gt; What does this meant? You want to get sum of any field for a particular day?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 06:17:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-trend-data-over-backlog-data-with-input-lookup/m-p/430710#M123120</guid>
      <dc:creator>jawaharas</dc:creator>
      <dc:date>2019-08-08T06:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to trend data over backlog data with input lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-trend-data-over-backlog-data-with-input-lookup/m-p/430711#M123121</link>
      <description>&lt;P&gt;its the total count f what it was for that day so if on the 06th august it was 251 and then on the 07th august its 265 then i want it to retain those values. &lt;/P&gt;

&lt;P&gt;I think what i have not made clear is that its a live feed where a status can change for example:&lt;/P&gt;

&lt;P&gt;on the 06th august there were 265 opn tickets and then in the 07th august 14 extra tickets were created but then on the 08th august 20 tickets were closed that was related to this total figure which brings its to 245 tickets left open so the 265 tickets no longer exist and only 245 do so i think what im looking for is for splunk to somehow store the previous days numbers so i can use them for a trend&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 07:03:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-trend-data-over-backlog-data-with-input-lookup/m-p/430711#M123121</guid>
      <dc:creator>Sfry1981</dc:creator>
      <dc:date>2019-08-08T07:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to trend data over backlog data with input lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-trend-data-over-backlog-data-with-input-lookup/m-p/430712#M123122</link>
      <description>&lt;P&gt;@Sfry1981 -  I think i understood what you are looking for, for example say on a  Monday you had 10 open tickets , and on tuesday 3 got closed and 2 new were reported, so for tuesday you  would want 10-3+2=9. That  part is ok but you also want Monday's 10 open to be showed.&lt;BR /&gt;
No, that is not possible with the data structure you have, namely if you overwrite the status of a ticket based on its latest status. You need more base data - either have some audit logs with the status along with the live feed (in which case each ticket will have  more than 1 row) or you manually write each day's info into an outputfile and then combine that with the live data for the current day.&lt;BR /&gt;
But since you say it is a live feed , suppose a ticket got reported on Monday, ticket XXX  and this got closed on Friday does your live feed have more than one row for ticket xxx?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 07:14:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-trend-data-over-backlog-data-with-input-lookup/m-p/430712#M123122</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-08-08T07:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to trend data over backlog data with input lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-trend-data-over-backlog-data-with-input-lookup/m-p/430713#M123123</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| [BASE SEARCH]
| timechart span=1d count as TodayCount
| streamstats current=f window=1 last(TodayCount) as YesterdayCount
| eval Total=YesterdayCount+TodayCount
| fields - YesterdayCount
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Aug 2019 07:24:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-trend-data-over-backlog-data-with-input-lookup/m-p/430713#M123123</guid>
      <dc:creator>jawaharas</dc:creator>
      <dc:date>2019-08-08T07:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to trend data over backlog data with input lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-trend-data-over-backlog-data-with-input-lookup/m-p/430714#M123124</link>
      <description>&lt;P&gt;@jawaharas &lt;/P&gt;

&lt;P&gt;This looks very close to what i need but have a couple of questions&lt;/P&gt;

&lt;P&gt;when i add the commands you provided it shows the total split by the _time which is expected but can it be that it just shows the 1 total from today and yesterday so essentially i need it to add all dates together?&lt;/P&gt;

&lt;P&gt;Also is there a way for it to show as an ongoing trend rather than just today and yesterday? &lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 09:36:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-trend-data-over-backlog-data-with-input-lookup/m-p/430714#M123124</guid>
      <dc:creator>Sfry1981</dc:creator>
      <dc:date>2019-08-08T09:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to trend data over backlog data with input lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-trend-data-over-backlog-data-with-input-lookup/m-p/430715#M123125</link>
      <description>&lt;P&gt;Puzzled with the term '&lt;EM&gt;ongoing trend&lt;/EM&gt;'. Can you provide sample input and expected output in tabular format?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 09:58:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-trend-data-over-backlog-data-with-input-lookup/m-p/430715#M123125</guid>
      <dc:creator>jawaharas</dc:creator>
      <dc:date>2019-08-08T09:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to trend data over backlog data with input lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-trend-data-over-backlog-data-with-input-lookup/m-p/430716#M123126</link>
      <description>&lt;P&gt;@jawaharas &lt;/P&gt;

&lt;P&gt;When i mean ongoing trend i mean like timechart count span=1d over a 7 day period so rather than just recording a trend between yesterday and today i want it to record everyday so over a period of a month i can show what the count was a month ago compared to today&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 15:32:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-trend-data-over-backlog-data-with-input-lookup/m-p/430716#M123126</guid>
      <dc:creator>Sfry1981</dc:creator>
      <dc:date>2019-08-09T15:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to trend data over backlog data with input lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-trend-data-over-backlog-data-with-input-lookup/m-p/430717#M123127</link>
      <description>&lt;P&gt;You can try below, if you want to compare months data.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.. | timechart count span=30d 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Can you accept the answer it it helped?. Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Aug 2019 15:56:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-trend-data-over-backlog-data-with-input-lookup/m-p/430717#M123127</guid>
      <dc:creator>jawaharas</dc:creator>
      <dc:date>2019-08-10T15:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to trend data over backlog data with input lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-trend-data-over-backlog-data-with-input-lookup/m-p/430718#M123128</link>
      <description>&lt;P&gt;Thanks for your help everyone but i couldnt get it to work any of the ways suggested. I was able to create exactly what i needed by creating a summary index and storing the daily values in there and then appending that to my other data so gives me an overlay of the totals per day moving forward. &lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.1/Knowledge/Usesummaryindexing"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.1/Knowledge/Usesummaryindexing&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2019 13:24:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-trend-data-over-backlog-data-with-input-lookup/m-p/430718#M123128</guid>
      <dc:creator>Sfry1981</dc:creator>
      <dc:date>2019-08-12T13:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to trend data over backlog data with input lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-trend-data-over-backlog-data-with-input-lookup/m-p/430719#M123129</link>
      <description>&lt;P&gt;I am having a similar problem, could you explain your solution in more detail?&lt;/P&gt;

&lt;P&gt;What search did you use for the summary index? &lt;BR /&gt;
How did you append it to your other data?&lt;BR /&gt;
Were you able to create a backlog of data or were you limited by when you started running the summary index?&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 20:25:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-trend-data-over-backlog-data-with-input-lookup/m-p/430719#M123129</guid>
      <dc:creator>legogizmo</dc:creator>
      <dc:date>2019-08-22T20:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to trend data over backlog data with input lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-trend-data-over-backlog-data-with-input-lookup/m-p/430720#M123130</link>
      <description>&lt;P&gt;Hi @legogizmo &lt;/P&gt;

&lt;P&gt;I know you dont need all the below info but i have put it all down incase someone else wants to use it but it will answer your questions.&lt;/P&gt;

&lt;P&gt;All i wanted was the backlog count every day so with my search i just made sure i had '| stats count' at the end and then once done i saved as a report. I dont the same with the other querys and all had '| stats count' at the end.  I then went to settings&amp;gt;Searches, Reports, and Alerts and on each report i went to edit&amp;gt;edit schedule and set the below settings&lt;/P&gt;

&lt;P&gt;Schedule&amp;gt; Run on cron schedule&lt;BR /&gt;
Cron expression&amp;gt; 10 08-18 * * * (so it runs every 10 minutes past the hour between 08am and 06pm)&lt;BR /&gt;
Time range &amp;gt; i selected 60 minutes as its pulling from an input lookup so no timeframe is really needed&lt;BR /&gt;
Leave the other 2 dropdowns as they are&lt;BR /&gt;
I added the action 'Log Event' just so i have a log for if there is an issue &lt;/P&gt;

&lt;P&gt;Once thats done i went to edit&amp;gt;Edit summary index and saved it to my newly created index&lt;/P&gt;

&lt;P&gt;This started to run every hour into my new index and i used the below query to append all the data and create a backlog trend&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=summary_product_data search_name="totals"
| timechart span=1d  values(count)
| rename values(count) as backlog 
| appendcols [search index=summary_product_data  search_name="total 1 count"
| rename "count" as total1count
| timechart span=1d values(total1count)]
| appendcols [search index=summary_product_data  search_name="total 2 count"
| rename "count" as total2count
| timechart span=1d values(total2count)]
| appendcols [search index=summary_product_data  search_name="total 3 count"
| rename "count" as total3count
| timechart span=1d values(total3count)]
| appendcols [search index=summary_product_data  search_name="total 4 count"
| rename "count" as total4count
| timechart span=1d values(total4count)]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This then allowed me to have a backlog chart of all the totals together but this only started from the day i created the index as we didnt store the previous values in our database as it was always overridden&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2019 07:38:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-trend-data-over-backlog-data-with-input-lookup/m-p/430720#M123130</guid>
      <dc:creator>Sfry1981</dc:creator>
      <dc:date>2019-08-23T07:38:10Z</dc:date>
    </item>
  </channel>
</rss>

