<?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 How does anomalousvalue work in my search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-does-anomalousvalue-work-in-my-search/m-p/625039#M217278</link>
    <description>&lt;P&gt;I'm trying to implement a search query in splunk to get anomalous values around a particular field in the service events.&lt;/P&gt;
&lt;P&gt;Essentially the query looks something like this -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index="abc" source=*servicename*  response_time |    anomalousvalue action=summary pthresh=0.1|search isNum=YES fieldname=response_time&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And this gives me a table containing fields like&amp;nbsp;catAnoFreq% ,&amp;nbsp;&lt;SPAN&gt;numAnoFreq%,&amp;nbsp;stdev, etc&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I looked the documentation&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.3/SearchReference/Anomalousvalue" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.3/SearchReference/Anomalousvalue&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;but didn't understand how exactly it works.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;so for my query if the response_time field has a standard range of values across events, and if my p_thresh=0.1, does that mean that values which occur with a probability of just 10% will fall into the anomalous category? and if i wanted to set an alert on one of the fields in the table to detect anomaly, which would be recommended? i want to set the alert of any event where the response_time num field is not considered within the normal range.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Jan 2023 16:15:47 GMT</pubDate>
    <dc:creator>sharsmail</dc:creator>
    <dc:date>2023-01-09T16:15:47Z</dc:date>
    <item>
      <title>How does anomalousvalue work in my search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-does-anomalousvalue-work-in-my-search/m-p/625039#M217278</link>
      <description>&lt;P&gt;I'm trying to implement a search query in splunk to get anomalous values around a particular field in the service events.&lt;/P&gt;
&lt;P&gt;Essentially the query looks something like this -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index="abc" source=*servicename*  response_time |    anomalousvalue action=summary pthresh=0.1|search isNum=YES fieldname=response_time&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And this gives me a table containing fields like&amp;nbsp;catAnoFreq% ,&amp;nbsp;&lt;SPAN&gt;numAnoFreq%,&amp;nbsp;stdev, etc&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I looked the documentation&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.3/SearchReference/Anomalousvalue" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.3/SearchReference/Anomalousvalue&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;but didn't understand how exactly it works.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;so for my query if the response_time field has a standard range of values across events, and if my p_thresh=0.1, does that mean that values which occur with a probability of just 10% will fall into the anomalous category? and if i wanted to set an alert on one of the fields in the table to detect anomaly, which would be recommended? i want to set the alert of any event where the response_time num field is not considered within the normal range.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 16:15:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-does-anomalousvalue-work-in-my-search/m-p/625039#M217278</guid>
      <dc:creator>sharsmail</dc:creator>
      <dc:date>2023-01-09T16:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding anomalousvalue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-does-anomalousvalue-work-in-my-search/m-p/625052#M217284</link>
      <description>&lt;P&gt;If p_thresh=0.1, an anomalous event must have at least one field whose value falls below probability of 10% or, if numeric, whose standard deviation is greater than 0.9.&lt;/P&gt;&lt;P&gt;To set alert, it would be simpler to use default action of filter. &amp;nbsp;Something like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="abc" source=*servicename*  response_time
| fields response_time
| anomalousvalue action=filter pthresh=0.1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 07:59:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-does-anomalousvalue-work-in-my-search/m-p/625052#M217284</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-12-22T07:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding anomalousvalue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-does-anomalousvalue-work-in-my-search/m-p/626367#M217705</link>
      <description>&lt;P&gt;&lt;A href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33901" target="_blank"&gt;@yuanliu&lt;/A&gt;&amp;nbsp;Thanks.&lt;/P&gt;&lt;P&gt;but if i want to set the alert based on the std value, say if its greater than 30, then using action=summary would be more appropriate?&amp;nbsp;&lt;/P&gt;&lt;P&gt;And i'm assuming its using the gaussian (normal) distribution for the response_time field since useNum=YES?&lt;/P&gt;&lt;P&gt;so if pthresh=0.01 which is 1% , does that mean it will filter the response_time field value which occur below 1%?&lt;/P&gt;&lt;P&gt;I also see some instances of the search returning both useNum=YES and useCat=YES. not sure why that would happen if in that case its still uses the&amp;nbsp;gaussian distribution.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 07:22:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-does-anomalousvalue-work-in-my-search/m-p/626367#M217705</guid>
      <dc:creator>sharsmail</dc:creator>
      <dc:date>2023-01-09T07:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: How does anomalousvalue work in my search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-does-anomalousvalue-work-in-my-search/m-p/626670#M217816</link>
      <description>&lt;P&gt;Can anyone help with the follow up question&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 22:35:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-does-anomalousvalue-work-in-my-search/m-p/626670#M217816</guid>
      <dc:creator>sharsmail</dc:creator>
      <dc:date>2023-01-10T22:35:09Z</dc:date>
    </item>
  </channel>
</rss>

