<?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 do I better understand the noise/static? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-better-understand-the-noise-static/m-p/171758#M186449</link>
    <description>&lt;P&gt;Any one???&lt;/P&gt;</description>
    <pubDate>Wed, 06 May 2015 15:59:19 GMT</pubDate>
    <dc:creator>talbot7</dc:creator>
    <dc:date>2015-05-06T15:59:19Z</dc:date>
    <item>
      <title>How do I better understand the noise/static?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-better-understand-the-noise-static/m-p/171757#M186448</link>
      <description>&lt;P&gt;Having fun with temperature sensors inside of bee hives.  In the attached picture, BaitHive2, yellow, has more noise/static then the rest of the hives.  I have replaced the sensor and confirmed that the problem is the bee's, not hardware. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I am not even sure how to ask this one.  How would I extract the noise/static as a value?  Something like signal to noise ratio, or standard deviation?&lt;/P&gt;

&lt;P&gt;Here is my current search code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=beemonitor Temp AND HWID=* HWID=FE:FE:C5:0E:84:DC:AD:48 
| regex _raw="HWID=\w\w:\w\w:\w\w:\w\w:\w\w:\w\w:\w\w:\w\w\sUUID=\w\w:\w\w:\w\w:\w\w:\w\w:\w\w:\w\w:\w\w\sTemp=\w*.\w*"  
| where Temp &amp;amp;gt; -55 | eval TempF = ((Temp*9)/5)+32 
| timechart span=30m limit=32 eval(round(avg(TempF),2)) by UUID 
| rename 28:E3:32:E8:03:00:00:D8 as BaitHive1 
| rename 28:4B:5B:E8:03:00:00:C7 as HexAHive 
| rename 28:30:4F:E8:03:00:00:C4 as BaitHive2 
| rename 28:4D:43:E8:03:00:00:37 as BaitHive3 
| rename 28:B4:4C:E8:03:00:00:BC as BaitHive4 
| rename 28:43:97:CD:02:00:00:3F as Outside 
| fields - NULL
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 May 2015 16:52:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-better-understand-the-noise-static/m-p/171757#M186448</guid>
      <dc:creator>talbot7</dc:creator>
      <dc:date>2015-05-04T16:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I better understand the noise/static?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-better-understand-the-noise-static/m-p/171758#M186449</link>
      <description>&lt;P&gt;Any one???&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2015 15:59:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-better-understand-the-noise-static/m-p/171758#M186449</guid>
      <dc:creator>talbot7</dc:creator>
      <dc:date>2015-05-06T15:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do I better understand the noise/static?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-better-understand-the-noise-static/m-p/171759#M186450</link>
      <description>&lt;P&gt;Found this while searching around for sensor data examples. &lt;/P&gt;

&lt;P&gt;Looks like you could calculate a signal to noise ratio over time and compare that for your various hives. I'm new to splunk and not sure how you'd implement it, but here's a quick mathematical primer on noise: &lt;/P&gt;

&lt;P&gt;&lt;A href="http://terpconnect.umd.edu/%7Etoh/spectrum/SignalsAndNoise.html#Measuring"&gt;http://terpconnect.umd.edu/~toh/spectrum/SignalsAndNoise.html#Measuring&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2015 15:23:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-better-understand-the-noise-static/m-p/171759#M186450</guid>
      <dc:creator>ErikaE</dc:creator>
      <dc:date>2015-07-06T15:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I better understand the noise/static?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-better-understand-the-noise-static/m-p/171760#M186451</link>
      <description>&lt;P&gt;Thanks for the link.  I understand the math, I just dont know how to make the Splunk statement. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2015 16:35:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-better-understand-the-noise-static/m-p/171760#M186451</guid>
      <dc:creator>talbot7</dc:creator>
      <dc:date>2015-07-06T16:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: How do I better understand the noise/static?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-better-understand-the-noise-static/m-p/171761#M186452</link>
      <description>&lt;P&gt;@talbot7 there are lots of ways to do this !&lt;/P&gt;

&lt;P&gt;Do you want a SNR ratio at a point in time ? Overall ? Just for the BaitHive2 ? &lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2015 17:15:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-better-understand-the-noise-static/m-p/171761#M186452</guid>
      <dc:creator>aljohnson_splun</dc:creator>
      <dc:date>2015-07-06T17:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do I better understand the noise/static?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-better-understand-the-noise-static/m-p/171762#M186453</link>
      <description>&lt;P&gt;Overall at a per hive (UUID) level&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2015 17:17:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-better-understand-the-noise-static/m-p/171762#M186453</guid>
      <dc:creator>talbot7</dc:creator>
      <dc:date>2015-07-06T17:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do I better understand the noise/static?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-better-understand-the-noise-static/m-p/171763#M186454</link>
      <description>&lt;P&gt;As per your response int he comments, you're looking for an overal signal-to-noise ratio across the time you searched.&lt;/P&gt;

&lt;P&gt;If you define the signal-to-noise ratio as &lt;A href="https://en.wikipedia.org/wiki/Signal-to-noise_ratio#Alternative_definition"&gt;mean / standard deviation&lt;/A&gt;, then you can just pack it all into that eval function in the timechart command.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| timechart eval(round(avg(TempF), 2)) as hive, eval(round(avg(TempF), 2)/stdev(TempF)) as snr by UUID
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, this will mess up the rename thing you got going on. I'd suggest using &lt;CODE&gt;eval case&lt;/CODE&gt; to deal with the renames earlier.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval UUID = case(
UUID=="28:E3:32:E8:03:00:00:D8", "BaitHive1", 
UUID=="28:4B:5B:E8:03:00:00:C7", "HexAHive" ,
UUID=="foo", "bar")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Where you'll need to still add the other values from your renames that you were using earlier.&lt;/P&gt;

&lt;P&gt;After that, you can then use the timechart I put up above.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=beemonitor Temp AND HWID=* HWID=FE:FE:C5:0E:84:DC:AD:48 
 | regex _raw="HWID=\w\w:\w\w:\w\w:\w\w:\w\w:\w\w:\w\w:\w\w\sUUID=\w\w:\w\w:\w\w:\w\w:\w\w:\w\w:\w\w:\w\w\sTemp=\w*.\w*"  
 | where Temp &amp;gt; -55 | eval TempF = ((Temp*9)/5)+32 
 | eval UUID = case(
 UUID=="28:E3:32:E8:03:00:00:D8", "BaitHive1", 
 UUID=="28:4B:5B:E8:03:00:00:C7", "HexAHive",
 UUID=="foo", "bar")
 | timechart eval(round(avg(TempF), 2)) as hive, eval(round(avg(TempF), 2)/stdev(TempF)) as snr by UUID
 | fields - NULL
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 Jul 2015 17:52:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-better-understand-the-noise-static/m-p/171763#M186454</guid>
      <dc:creator>aljohnson_splun</dc:creator>
      <dc:date>2015-07-06T17:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do I better understand the noise/static?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-better-understand-the-noise-static/m-p/171764#M186455</link>
      <description>&lt;P&gt;Alrighty. I submitted an answer but it has to get approved because I put a link to wikipedia in it haha &lt;span class="lia-unicode-emoji" title=":angry_face:"&gt;😠&lt;/span&gt; but the gist is&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;... timechart eval(avg(round(TempF, 2)) as hive, eval(avg(round(TempF,2)/stdev(TempF))) as snr by UUID&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;plus a little extra for the renames.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2015 17:52:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-better-understand-the-noise-static/m-p/171764#M186455</guid>
      <dc:creator>aljohnson_splun</dc:creator>
      <dc:date>2015-07-06T17:52:48Z</dc:date>
    </item>
  </channel>
</rss>

