<?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 to list of search results with a value &amp;gt; X in a specific search field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-list-of-search-results-with-a-value-gt-X-in-a-specific/m-p/441436#M125401</link>
    <description>&lt;P&gt;hi @alysea &lt;BR /&gt;
This json field will perhaps have the amount in the payload field. Please check your interesting fields , I think your json values are mapped to the field called 'payload' and not message. The regex by @richgalloway  is correct.&lt;BR /&gt;
Try this if the json values are coming in a field called 'payload'&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|  rex field=payload "amount\"+\:+\"(?&amp;lt;amount&amp;gt;.*?)\"" 
|  where amount &amp;lt; -50
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 11 Aug 2019 16:06:41 GMT</pubDate>
    <dc:creator>Sukisen1981</dc:creator>
    <dc:date>2019-08-11T16:06:41Z</dc:date>
    <item>
      <title>How to list of search results with a value &gt; X in a specific search field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-list-of-search-results-with-a-value-gt-X-in-a-specific/m-p/441433#M125398</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have the following field:= message.msg:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;msg: before send to xxx, payload = {"id":"abc123","userId":1,"currency":1,"amount":"-54"}   
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would like to find all search results where amount is &amp;lt;= -50.&lt;BR /&gt;
How is it possible to do so?&lt;/P&gt;

&lt;P&gt;Please let me know if any further information is required.&lt;/P&gt;

&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 12:22:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-list-of-search-results-with-a-value-gt-X-in-a-specific/m-p/441433#M125398</guid>
      <dc:creator>alysea</dc:creator>
      <dc:date>2019-08-09T12:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to list of search results with a value &gt; X in a specific search field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-list-of-search-results-with-a-value-gt-X-in-a-specific/m-p/441434#M125399</link>
      <description>&lt;P&gt;Here's one way.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex field=message "amount":"(?&amp;lt;amount&amp;gt;-?\d+)" | where amount &amp;lt; -50
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Aug 2019 14:33:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-list-of-search-results-with-a-value-gt-X-in-a-specific/m-p/441434#M125399</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-08-09T14:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to list of search results with a value &gt; X in a specific search field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-list-of-search-results-with-a-value-gt-X-in-a-specific/m-p/441435#M125400</link>
      <description>&lt;P&gt;Thank you, I will try and let you know if it works out &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 15:36:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-list-of-search-results-with-a-value-gt-X-in-a-specific/m-p/441435#M125400</guid>
      <dc:creator>alysea</dc:creator>
      <dc:date>2019-08-09T15:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to list of search results with a value &gt; X in a specific search field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-list-of-search-results-with-a-value-gt-X-in-a-specific/m-p/441436#M125401</link>
      <description>&lt;P&gt;hi @alysea &lt;BR /&gt;
This json field will perhaps have the amount in the payload field. Please check your interesting fields , I think your json values are mapped to the field called 'payload' and not message. The regex by @richgalloway  is correct.&lt;BR /&gt;
Try this if the json values are coming in a field called 'payload'&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|  rex field=payload "amount\"+\:+\"(?&amp;lt;amount&amp;gt;.*?)\"" 
|  where amount &amp;lt; -50
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 11 Aug 2019 16:06:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-list-of-search-results-with-a-value-gt-X-in-a-specific/m-p/441436#M125401</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-08-11T16:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to list of search results with a value &gt; X in a specific search field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-list-of-search-results-with-a-value-gt-X-in-a-specific/m-p/441437#M125402</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults | eval "message.msg" = "msg: before send to xxx, payload = {\"id\":\"abc123\",\"userId\":1,\"currency\":1,\"amount\":\"-54\"}"

| rename COMMENT AS "Everything above generates sample events; everything below is your solution"

| rename message.msg AS _raw
| rex mode=sed "s/^[^\{]+//"
| spath
| where amount&amp;lt;=-50
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 11 Aug 2019 20:24:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-list-of-search-results-with-a-value-gt-X-in-a-specific/m-p/441437#M125402</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-08-11T20:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to list of search results with a value &gt; X in a specific search field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-list-of-search-results-with-a-value-gt-X-in-a-specific/m-p/441438#M125403</link>
      <description>&lt;P&gt;Thank you for the help!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2019 07:33:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-list-of-search-results-with-a-value-gt-X-in-a-specific/m-p/441438#M125403</guid>
      <dc:creator>alysea</dc:creator>
      <dc:date>2019-08-12T07:33:28Z</dc:date>
    </item>
  </channel>
</rss>

