<?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 do you search for events that match the exact text of a raw text? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-search-for-events-that-match-the-exact-text-of-a-raw/m-p/409154#M118043</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="cs_test" "Splunktest" "Refund succeeded" OR *"action"=&amp;gt;"refund"*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have a below raw text log, I want to return events that contain either "Refund succeeded" OR &lt;EM&gt;"action"=&amp;gt;"refund"&lt;/EM&gt;, the problem is logs that contain only " =&amp;gt; " or "refund" are also being returned. How do I just return results that contain exact string of "Refund succeeded" OR &lt;EM&gt;"action"=&amp;gt;"refund"&lt;/EM&gt;?&lt;/P&gt;

&lt;P&gt;Example raw text&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"status"=&amp;gt;"pending", "action"=&amp;gt;"refund", "convert_to_cash_url"=&amp;gt;nil}], "v2_return_service_enabled"=&amp;gt;true, "inventory_service_id"=&amp;gt;"voucher", "order_reversal_url"=&amp;gt;"/order_reversal/refund", "is_expiration_extendable"=&amp;gt;false, "can_partial_refund"=&amp;gt;false, "tradable"=&amp;gt;"ineligible", "merchant_payment_text"=&amp;gt;"Continuous", 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jun 2018 20:48:23 GMT</pubDate>
    <dc:creator>Danielle2018V</dc:creator>
    <dc:date>2018-06-25T20:48:23Z</dc:date>
    <item>
      <title>How do you search for events that match the exact text of a raw text?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-search-for-events-that-match-the-exact-text-of-a-raw/m-p/409154#M118043</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="cs_test" "Splunktest" "Refund succeeded" OR *"action"=&amp;gt;"refund"*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have a below raw text log, I want to return events that contain either "Refund succeeded" OR &lt;EM&gt;"action"=&amp;gt;"refund"&lt;/EM&gt;, the problem is logs that contain only " =&amp;gt; " or "refund" are also being returned. How do I just return results that contain exact string of "Refund succeeded" OR &lt;EM&gt;"action"=&amp;gt;"refund"&lt;/EM&gt;?&lt;/P&gt;

&lt;P&gt;Example raw text&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"status"=&amp;gt;"pending", "action"=&amp;gt;"refund", "convert_to_cash_url"=&amp;gt;nil}], "v2_return_service_enabled"=&amp;gt;true, "inventory_service_id"=&amp;gt;"voucher", "order_reversal_url"=&amp;gt;"/order_reversal/refund", "is_expiration_extendable"=&amp;gt;false, "can_partial_refund"=&amp;gt;false, "tradable"=&amp;gt;"ineligible", "merchant_payment_text"=&amp;gt;"Continuous", 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jun 2018 20:48:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-search-for-events-that-match-the-exact-text-of-a-raw/m-p/409154#M118043</guid>
      <dc:creator>Danielle2018V</dc:creator>
      <dc:date>2018-06-25T20:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do you search for events that match the exact text of a raw text?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-search-for-events-that-match-the-exact-text-of-a-raw/m-p/409155#M118044</link>
      <description>&lt;P&gt;Try below search,&lt;/P&gt;

&lt;P&gt;index="cs_test" "Refund succeeded" OR "\"action\"=&amp;gt;\"refund\""&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jun 2018 21:11:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-search-for-events-that-match-the-exact-text-of-a-raw/m-p/409155#M118044</guid>
      <dc:creator>rteja9</dc:creator>
      <dc:date>2018-06-25T21:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do you search for events that match the exact text of a raw text?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-search-for-events-that-match-the-exact-text-of-a-raw/m-p/409156#M118045</link>
      <description>&lt;P&gt;@Danielle2018V &lt;/P&gt;

&lt;P&gt;Seems like you are just working with the raw logs, are fields not being extracted ? If not,  you can do something like this :&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index="cs_test" "Splunktest"  | rex field=_raw "action"\S{3}(?&amp;lt;action&amp;gt;[^"]*) | search "Refund succeeded" OR action=refund&lt;/CODE&gt;&lt;BR /&gt;
I create the field action ,for future references, in case you want to see other actions .&lt;BR /&gt;
If you can show me a log sample where the value "Refund succeeded" is present  we can create another field , your search will be much more accurate &lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 17:32:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-search-for-events-that-match-the-exact-text-of-a-raw/m-p/409156#M118045</guid>
      <dc:creator>j_cabanillas</dc:creator>
      <dc:date>2018-07-20T17:32:16Z</dc:date>
    </item>
  </channel>
</rss>

