<?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: I would like to use timechart to show the trend for 7days using below in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/I-would-like-to-use-timechart-to-show-the-trend-for-7days-using/m-p/405686#M117281</link>
    <description>&lt;P&gt;This also works for timechart, but the value expected is not correct.&lt;BR /&gt;
The 7 day trend that I need is for "batch runs from 2pm to &amp;lt;2pm daily".&lt;BR /&gt;
When I changed the earliest to -7d or -8d, the numbers are not correct anymore, is there a way I can subquery the above and get the -7day trend?&lt;/P&gt;</description>
    <pubDate>Fri, 12 Apr 2019 12:00:17 GMT</pubDate>
    <dc:creator>phoebepascual</dc:creator>
    <dc:date>2019-04-12T12:00:17Z</dc:date>
    <item>
      <title>I would like to use timechart to show the trend for 7days using below</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-would-like-to-use-timechart-to-show-the-trend-for-7days-using/m-p/405682#M117277</link>
      <description>&lt;P&gt;source=IN1 STATUS=SUCCESS OR STATUS=FAILED earliest=-2d@d+14h latest=-1d@d+14h APP=DEV&lt;BR /&gt;
| stats count(APP) as "numberof_actuals" &lt;BR /&gt;
| appendcols&lt;BR /&gt;
    [| inputlookup Indus_bim_ocf_lookup.csv &lt;BR /&gt;
     | stats count(eval(APP=DEV)) as "numberof_lkup" &lt;BR /&gt;
    ]&lt;BR /&gt;
| eval difference=(numberof_lkup - numberof_actuals)&lt;BR /&gt;
| eval status=if(difference&amp;gt;=1, "MISSING", "")&lt;BR /&gt;
| chart sum(difference) -----&amp;gt; i would like to use timechart but its not working, can you help?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:04:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-would-like-to-use-timechart-to-show-the-trend-for-7days-using/m-p/405682#M117277</guid>
      <dc:creator>phoebepascual</dc:creator>
      <dc:date>2020-09-30T00:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: I would like to use timechart to show the trend for 7days using below</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-would-like-to-use-timechart-to-show-the-trend-for-7days-using/m-p/405683#M117278</link>
      <description>&lt;P&gt;@phoebepascual Firstly your earliest and latest values don't give 7 days of data, you may need to change it to -7d if you looking for 7 day. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source=IN1 STATUS=SUCCESS OR STATUS=FAILED earliest=-7d@d+14h latest=-1d@d+14h APP=DEV
|bin span=1d _time| stats count(APP) as "numberof_actuals"  by _time| appendcols [| inputlookup Indus_bim_ocf_lookup.csv 
| stats count(eval(APP=DEV)) as "numberof_lkup" 
]
| eval difference=(numberof_lkup - numberof_actuals)
| eval status=if(difference&amp;gt;=1, "MISSING", "")
| timechart sum(difference) 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You need to use timechart command and also in your first stats&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2019 15:34:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-would-like-to-use-timechart-to-show-the-trend-for-7days-using/m-p/405683#M117278</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2019-04-11T15:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: I would like to use timechart to show the trend for 7days using below</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-would-like-to-use-timechart-to-show-the-trend-for-7days-using/m-p/405684#M117279</link>
      <description>&lt;P&gt;Give this a try&lt;BR /&gt;
&lt;STRONG&gt;UPdated - both searches&lt;/STRONG&gt;*&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source=IN1 STATUS=SUCCESS OR STATUS=FAILED earliest=-8d@d+14h latest=-1d@d+14h APP=DEV
| timechart span=1d count as "numberof_actuals" 
| eval "numberof_lkup"=[| inputlookup Indus_bim_ocf_lookup.csv | stats count(eval(APP="DEV")) as search] 
| eval difference=(numberof_lkup - numberof_actuals)
| timechart span=1d sum(difference)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR (if you need to do a 14h adjustment in your data)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source=IN1 STATUS=SUCCESS OR STATUS=FAILED earliest=-8d@d+14h latest=-1d@d+14h APP=DEV
| eval _time=relative_time(_time,"-14h")
| timechart span=1d count as "numberof_actuals" 
| eval "numberof_lkup"=[| inputlookup Indus_bim_ocf_lookup.csv | stats count(eval(APP="DEV")) as search] 
| eval difference=(numberof_lkup - numberof_actuals)
| timechart span=1d sum(difference)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Apr 2019 19:29:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-would-like-to-use-timechart-to-show-the-trend-for-7days-using/m-p/405684#M117279</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2019-04-11T19:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: I would like to use timechart to show the trend for 7days using below</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-would-like-to-use-timechart-to-show-the-trend-for-7days-using/m-p/405685#M117280</link>
      <description>&lt;P&gt;Thank you Vijeta! Yes it works! but.. the 7 day trend that I need is for "batch runs from 2pm to &amp;lt;2pm daily".&lt;BR /&gt;
When I changed the earliest to -7d, the numbers are not correct anymore, is there a way I can subquery the above and get the -7day trend?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2019 08:38:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-would-like-to-use-timechart-to-show-the-trend-for-7days-using/m-p/405685#M117280</guid>
      <dc:creator>phoebepascual</dc:creator>
      <dc:date>2019-04-12T08:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: I would like to use timechart to show the trend for 7days using below</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-would-like-to-use-timechart-to-show-the-trend-for-7days-using/m-p/405686#M117281</link>
      <description>&lt;P&gt;This also works for timechart, but the value expected is not correct.&lt;BR /&gt;
The 7 day trend that I need is for "batch runs from 2pm to &amp;lt;2pm daily".&lt;BR /&gt;
When I changed the earliest to -7d or -8d, the numbers are not correct anymore, is there a way I can subquery the above and get the -7day trend?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2019 12:00:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-would-like-to-use-timechart-to-show-the-trend-for-7days-using/m-p/405686#M117281</guid>
      <dc:creator>phoebepascual</dc:creator>
      <dc:date>2019-04-12T12:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: I would like to use timechart to show the trend for 7days using below</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-would-like-to-use-timechart-to-show-the-trend-for-7days-using/m-p/405687#M117282</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
seems that below is not working, &lt;BR /&gt;
| eval "numberof_lkup"=[| inputlookup Indus_bim_ocf_lookup.csv | stats count(eval(APP=DEV)) as search] &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:09:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-would-like-to-use-timechart-to-show-the-trend-for-7days-using/m-p/405687#M117282</guid>
      <dc:creator>phoebepascual</dc:creator>
      <dc:date>2020-09-30T00:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: I would like to use timechart to show the trend for 7days using below</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-would-like-to-use-timechart-to-show-the-trend-for-7days-using/m-p/405688#M117283</link>
      <description>&lt;P&gt;@phoebepascual  Can you  please specify the output you are getting and the output you are looking for?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2019 14:59:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-would-like-to-use-timechart-to-show-the-trend-for-7days-using/m-p/405688#M117283</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2019-04-12T14:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: I would like to use timechart to show the trend for 7days using below</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-would-like-to-use-timechart-to-show-the-trend-for-7days-using/m-p/405689#M117284</link>
      <description>&lt;P&gt;I believe the updated version would work. (double quotes were missing, in your question too)&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2019 15:18:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-would-like-to-use-timechart-to-show-the-trend-for-7days-using/m-p/405689#M117284</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2019-04-12T15:18:28Z</dc:date>
    </item>
  </channel>
</rss>

