<?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 Timechart trend in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Timechart-trend/m-p/122439#M32973</link>
    <description>&lt;P&gt;I have to show trends in one search: I'd like to have the results of last 24 hours and to compare it with the result of the previous 24 hours.&lt;BR /&gt;
To do this I used timechart span 24 hours and timerange 48 hours:  ...| timechart span=1d count | reverse .&lt;BR /&gt;
But results are showed by day:&lt;BR /&gt;
   2015-04-03    547&lt;BR /&gt;
   2015-04-02 1032&lt;BR /&gt;
   2015-04-01   621&lt;BR /&gt;
instead I'd like to have a result like the following:&lt;BR /&gt;
   1384&lt;BR /&gt;
   1259&lt;BR /&gt;
to show the real trend over 24 hours of the results.&lt;/P&gt;

&lt;P&gt;How can I di this?&lt;BR /&gt;
Thank you.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Fri, 03 Apr 2015 07:33:12 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2015-04-03T07:33:12Z</dc:date>
    <item>
      <title>Timechart trend</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-trend/m-p/122439#M32973</link>
      <description>&lt;P&gt;I have to show trends in one search: I'd like to have the results of last 24 hours and to compare it with the result of the previous 24 hours.&lt;BR /&gt;
To do this I used timechart span 24 hours and timerange 48 hours:  ...| timechart span=1d count | reverse .&lt;BR /&gt;
But results are showed by day:&lt;BR /&gt;
   2015-04-03    547&lt;BR /&gt;
   2015-04-02 1032&lt;BR /&gt;
   2015-04-01   621&lt;BR /&gt;
instead I'd like to have a result like the following:&lt;BR /&gt;
   1384&lt;BR /&gt;
   1259&lt;BR /&gt;
to show the real trend over 24 hours of the results.&lt;/P&gt;

&lt;P&gt;How can I di this?&lt;BR /&gt;
Thank you.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2015 07:33:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-trend/m-p/122439#M32973</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2015-04-03T07:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart trend</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-trend/m-p/122440#M32974</link>
      <description>&lt;P&gt;Hi @cusello&lt;/P&gt;

&lt;P&gt;Have you tried changing the span to span=24h instead?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2015 18:24:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-trend/m-p/122440#M32974</guid>
      <dc:creator>ppablo</dc:creator>
      <dc:date>2015-04-03T18:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart trend</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-trend/m-p/122441#M32975</link>
      <description>&lt;P&gt;yes I tried both with span=1d and span=24h (I know that it's the same thing!)&lt;BR /&gt;
The problem is that timechart divides always results by day, instead I'd like to have a division by span period, but probably it isn't possible.&lt;BR /&gt;
Thank you.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 04 Apr 2015 07:56:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-trend/m-p/122441#M32975</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2015-04-04T07:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart trend</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-trend/m-p/122442#M32976</link>
      <description>&lt;P&gt;Take a look at this : &lt;CODE&gt;index=_internal sourcetype=*| bucket span=24h _time| eval day_month=strftime(_time, "%d/%b")|chart count by day_month&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Apr 2015 09:14:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-trend/m-p/122442#M32976</guid>
      <dc:creator>stephanefotso</dc:creator>
      <dc:date>2015-04-04T09:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart trend</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-trend/m-p/122443#M32977</link>
      <description>&lt;P&gt;I have to show the trend over a 24 hours period comparing the occurrences in the last 24 hours with the ones in the 24 hours before, starting from the actual time: so if I start my search at 11 A.M. of the 5th of april, I need to have the result in two periods:&lt;BR /&gt;
   from 2015-04-04 11.00.00 to  2015-04-05 10.59.59&lt;BR /&gt;
   from 2015-04-03 11.00.00 to  2015-04-04 10.59.59&lt;/P&gt;

&lt;P&gt;instead timechart divides results only by days&lt;BR /&gt;
   2015-04-05 547&lt;BR /&gt;
   2015-04-04 1032&lt;BR /&gt;
   2015-04-03 621&lt;BR /&gt;
but probably it isn't possible.&lt;/P&gt;

&lt;P&gt;Thank you.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Sun, 05 Apr 2015 07:06:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-trend/m-p/122443#M32977</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2015-04-05T07:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart trend</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-trend/m-p/122444#M32978</link>
      <description>&lt;P&gt;hi @gcusello,&lt;/P&gt;

&lt;P&gt;I have the same query where i have to show the trend for last 24hrs which is working fine but the count of alerts is coming as of now or today not for last 24hrs . can you please help if you have got any solution . &lt;/P&gt;

&lt;P&gt;Here is my query which i am using currently. &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;myquery&lt;/CODE&gt; | lookup abc.csv Device output Type | where isnotnull(Type) | timechart span=1d count(Status) as Total | trendline sma2(Total) as Trend&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2020 01:00:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-trend/m-p/122444#M32978</guid>
      <dc:creator>surekhasplunk</dc:creator>
      <dc:date>2020-02-07T01:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart trend</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-trend/m-p/122445#M32979</link>
      <description>&lt;P&gt;after almost five years I found my answer:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=wineventlog earliest=-48h
| eval _time=if(_time&amp;gt;relative_time(now(), "-24h"),now(),relative_time(now(), "-24h"))
| timechart span=24h count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2020 10:44:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-trend/m-p/122445#M32979</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-02-07T10:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart trend</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-trend/m-p/122446#M32980</link>
      <description>&lt;P&gt;Interesting, but it goes back only 48 hours. How to make it 7 days or with a time picker?&lt;BR /&gt;
My search is:&lt;BR /&gt;
 index=wineventlog earliest=-48h&lt;BR /&gt;
 | eval _time=if(_time&amp;gt;relative_time(now(), "-24h"),now(),relative_time(now(), "-24h"))&lt;BR /&gt;
 | timechart span=24h count by login_status&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:58:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-trend/m-p/122446#M32980</guid>
      <dc:creator>vnguyen46</dc:creator>
      <dc:date>2020-09-30T04:58:20Z</dc:date>
    </item>
  </channel>
</rss>

