<?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: Find incremental or constant rate points of last 24 hours? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-incremental-or-constant-rate-points-of-last-24-hours/m-p/620596#M215747</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33901"&gt;@yuanliu&lt;/a&gt;&amp;nbsp;actually currently don’t&amp;nbsp;want to predict or forecast something.&lt;/P&gt;&lt;P&gt;simply need to discover them on last 24 hours of data. Data exist and time scope is 24 hours.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Nov 2022 13:34:04 GMT</pubDate>
    <dc:creator>indeed_2000</dc:creator>
    <dc:date>2022-11-11T13:34:04Z</dc:date>
    <item>
      <title>How to find incremental or constant rate points of last 24 hours?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-incremental-or-constant-rate-points-of-last-24-hours/m-p/620331#M215639</link>
      <description>&lt;P class=""&gt;&lt;SPAN class=""&gt;Hi&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;I have challenge that need to know how with splunk, math, statistics, ... able to solve it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN&gt;Here is the log: sample:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;2022-10-21 13:19:23:120 &lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;10&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;2022-10-21 13:19:23:120 &lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;20&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;2022-10-21 13:19:23:120 &lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;9999&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;2022-10-21 13:19:23:120 &lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;10&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;2022-10-21 13:19:23:120 &lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;0&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;2022-10-21 13:19:23:120 &lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;40&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;FYI1:don't want to summerize or get avrage of values.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;FYI2:between each second contain over thousands of data points. Need to find abnormal in last 24 hours.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;FYI3:I need optimise solution because there is a lot of data.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;FYI4:don't want to set threshold e.g. 100 to filter only above that value, because abnormal situation might occur under that value. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;FYI5:there is no constant value to detect this abnormal e.g check 10 vlue if increase set as abnormal!&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;How can i find 1 incremental or 2 constant rate points of last 24 hours? (show on below chart)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;Does not need to show this on chart because of lots of data points. Just list them.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="indeed_2000_0-1668024042082.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/22406iFC3032E66F9C74E2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="indeed_2000_0-1668024042082.png" alt="indeed_2000_0-1668024042082.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;Any idea?&lt;BR /&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 14:17:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-incremental-or-constant-rate-points-of-last-24-hours/m-p/620331#M215639</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2022-11-11T14:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Find incremental or constant rate points of last 24 hours?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-incremental-or-constant-rate-points-of-last-24-hours/m-p/620580#M215737</link>
      <description>&lt;P&gt;Mathematically, this is a best-fit problem. &amp;nbsp;SPL itself doesn't provide a library for such. &amp;nbsp;It is probably easier to write a custom command using a language that you are familiar with. (Splunk has Python binding; there are other options including an R plugin. &amp;nbsp;Both Python and R have zillions of libraries for such tasks.)&lt;/P&gt;&lt;P&gt;Alternatively, take a look at Machine Learning Toolkit. &amp;nbsp;Many of its algorithms apply best-fit. &amp;nbsp;Their goal is to discern deviation from best-fit. &amp;nbsp;Maybe you can adapt them to perform best-fit. (Logically, low deviation means a fit.)&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 12:15:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-incremental-or-constant-rate-points-of-last-24-hours/m-p/620580#M215737</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-11-11T12:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Find incremental or constant rate points of last 24 hours?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-incremental-or-constant-rate-points-of-last-24-hours/m-p/620583#M215740</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33901"&gt;@yuanliu&lt;/a&gt;&amp;nbsp;thanks,&lt;/P&gt;&lt;P&gt;1-About below part do you have any suggestions?&lt;BR /&gt;&lt;SPAN&gt;“&lt;/SPAN&gt;&lt;SPAN&gt;Alternatively, take a look at Machine Learning Toolkit. &amp;nbsp;Many of its algorithms apply best-fit.”&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2-and this part, would please explain more, specially this part “low deviation means a fit”&amp;nbsp;&lt;BR /&gt;Their goal is to discern deviation from best-fit. &amp;nbsp;Maybe you can adapt them to perform best-fit. (Logically, low deviation means a fit.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;3-how about performance? which one work faster on this data?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any reference or more description appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 12:50:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-incremental-or-constant-rate-points-of-last-24-hours/m-p/620583#M215740</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2022-11-11T12:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Find incremental or constant rate points of last 24 hours?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-incremental-or-constant-rate-points-of-last-24-hours/m-p/620591#M215745</link>
      <description>&lt;P&gt;&lt;A href="https://splunkbase.splunk.com/app/2890" target="_blank" rel="noopener"&gt;MLTK&lt;/A&gt;&amp;nbsp;(2890) is a free "application" in Splunk Base. &amp;nbsp;It comes with various basic fitting algorithms. &amp;nbsp;You'll have to look at them individually to see if any fits your needs. &amp;nbsp;The basic idea of the fitting algorithms is to calculate best fit for some past period or periods, make a "prediction" into a "future" relative to sample period, typically now; if current data deviates from prediction, that's an anomaly. &amp;nbsp;"Predictions" are expressed by parameters of the fitting curve (yes, linear fitting is one of them).&lt;/P&gt;&lt;P&gt;Obviously I have not done the research myself. &amp;nbsp;But generally, if you eye on a given interval, you can set it to be the sampling period and apply, or "train" in ML lingo, linear fitting. &amp;nbsp;MLTK will give you stats such as deviation. &amp;nbsp;"Constant rate" means linear; if deviation is zero, that means your data is linear in the sampling period. &amp;nbsp;If slope is zero, that's a flat period. &amp;nbsp;MLTK also allows you to manually adjust parameters so you can do other experiments as well.&lt;/P&gt;&lt;P&gt;"Training" is not designed to be dynamic, so I don't know how easy it is to incorporate training process into your real world use case. &amp;nbsp;In addition to MLTK, Splunk Base also offers &lt;A href="https://splunkbase.splunk.com/app/4403" target="_blank" rel="noopener"&gt;MLTK Algorithms on Github&lt;/A&gt;&amp;nbsp;(4403).&lt;/P&gt;&lt;BLOCKQUOTE&gt;This app is based on Splunk GitHub for Machine learning Toolkit OpenSource repo initiative to encourage building a community around sharing and reusing Machine Learning algorithms .Custom algorithms using Machine learning Toolkit libraries can be added by adhering to ML-SPL API by using the libraries which comes with Python for scientific computing app.&lt;/BLOCKQUOTE&gt;&lt;P&gt;For linear fitting, it's not terribly difficult to write in SPL. &amp;nbsp;But using a MLTK, Python, or R library is just easier to maintain. (In the past, I asked about flat detection and a community legend helped with that. &amp;nbsp;But the SPL is not easily adaptable. &amp;nbsp;I don't have it now and it isn't very easy to find from history although you can always search.)&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 13:24:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-incremental-or-constant-rate-points-of-last-24-hours/m-p/620591#M215745</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-11-11T13:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Find incremental or constant rate points of last 24 hours?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-incremental-or-constant-rate-points-of-last-24-hours/m-p/620596#M215747</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33901"&gt;@yuanliu&lt;/a&gt;&amp;nbsp;actually currently don’t&amp;nbsp;want to predict or forecast something.&lt;/P&gt;&lt;P&gt;simply need to discover them on last 24 hours of data. Data exist and time scope is 24 hours.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 13:34:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-incremental-or-constant-rate-points-of-last-24-hours/m-p/620596#M215747</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2022-11-11T13:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Find incremental or constant rate points of last 24 hours?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-incremental-or-constant-rate-points-of-last-24-hours/m-p/620646#M215758</link>
      <description>&lt;P&gt;The idea, if feasible at all, is not to predict, but to use MLTK's training function as a detection tool. &amp;nbsp;It's like calculating a multiplication (16 x 25) by performing a division (16/4).&lt;/P&gt;</description>
      <pubDate>Sat, 12 Nov 2022 03:21:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-incremental-or-constant-rate-points-of-last-24-hours/m-p/620646#M215758</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-11-12T03:21:44Z</dc:date>
    </item>
  </channel>
</rss>

