<?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 search for a &amp;quot;deleted/moved&amp;quot; in Regex? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-a-quot-deleted-moved-quot-in-Regex/m-p/142154#M39398</link>
    <description>&lt;P&gt;Your regex says "for OOID", your event says "out from OOID"&lt;/P&gt;</description>
    <pubDate>Mon, 13 Apr 2015 15:44:04 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2015-04-13T15:44:04Z</dc:date>
    <item>
      <title>How to search for a "deleted/moved" in Regex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-a-quot-deleted-moved-quot-in-Regex/m-p/142151#M39395</link>
      <description>&lt;P&gt;Hi guys!&lt;/P&gt;

&lt;P&gt;Sorry for the misleading question, but does is anyone really good with regex? I am trying to search for "deleted/moved" using regex and I know you can't do it in that exact format. Anyone know the proper syntax?&lt;/P&gt;

&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2015 15:07:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-a-quot-deleted-moved-quot-in-Regex/m-p/142151#M39395</guid>
      <dc:creator>splunkman341</dc:creator>
      <dc:date>2015-04-13T15:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for a "deleted/moved" in Regex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-a-quot-deleted-moved-quot-in-Regex/m-p/142152#M39396</link>
      <description>&lt;P&gt;All you have to do is escape the slash.  "deleted\/moved" worked for me on regex101.com.  If it doesn't work for you, please provide some sample data.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2015 15:19:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-a-quot-deleted-moved-quot-in-Regex/m-p/142152#M39396</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-04-13T15:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for a "deleted/moved" in Regex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-a-quot-deleted-moved-quot-in-Regex/m-p/142153#M39397</link>
      <description>&lt;P&gt;Hi and thanks for your reply.&lt;/P&gt;

&lt;P&gt;I am trying to run :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | rex "(?&amp;lt;action&amp;gt;created|updated|deleted) for OOID:(?&amp;lt;OOID&amp;gt;\S+?)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am trying to get "deleted/moved" from the below log:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;4/13/15 
11:26:13.215 AM 
 2015-04-13 11:26:13,215  DEBUG [actions.logging.DocumentLoggingAction] [http-apr-8080-exec-4] ADP Portal Document workspace://SpacesStore/0e13591d-ebcc-478b-a429-71d27af861ff is deleted/moved out from OOID:G356YP8WRCC3GTQK, AOID:G36H1Z9E4E0QZ562, with Category: 2200001275, subCategory: 2200001311
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I tried just entering in as you said with the "deleted/moved" and it does not pick up that up in Splunk&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2015 15:32:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-a-quot-deleted-moved-quot-in-Regex/m-p/142153#M39397</guid>
      <dc:creator>splunkman341</dc:creator>
      <dc:date>2015-04-13T15:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for a "deleted/moved" in Regex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-a-quot-deleted-moved-quot-in-Regex/m-p/142154#M39398</link>
      <description>&lt;P&gt;Your regex says "for OOID", your event says "out from OOID"&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2015 15:44:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-a-quot-deleted-moved-quot-in-Regex/m-p/142154#M39398</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-04-13T15:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for a "deleted/moved" in Regex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-a-quot-deleted-moved-quot-in-Regex/m-p/142155#M39399</link>
      <description>&lt;P&gt;Your list of possible actions does not include "deleted/moved".  Also, the anchor "for OOID" doesn't match the sample event.  Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex "(?&amp;lt;action&amp;gt;created|updated|deleted\/moved) out from OOID:(?&amp;lt;OOID&amp;gt;[^,]+)" | ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I suspect, however, the text "out from OOID" changes with the action.  In that case, you may want something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex "(?&amp;lt;action&amp;gt;created|updated|deleted\/moved) (?:.*) OOID:(?&amp;lt;OOID&amp;gt;[^,]+)" | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Apr 2015 15:49:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-a-quot-deleted-moved-quot-in-Regex/m-p/142155#M39399</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-04-13T15:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for a "deleted/moved" in Regex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-a-quot-deleted-moved-quot-in-Regex/m-p/142156#M39400</link>
      <description>&lt;P&gt;Thanks alot guys! Works like a dream!&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2015 15:58:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-a-quot-deleted-moved-quot-in-Regex/m-p/142156#M39400</guid>
      <dc:creator>splunkman341</dc:creator>
      <dc:date>2015-04-13T15:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for a "deleted/moved" in Regex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-a-quot-deleted-moved-quot-in-Regex/m-p/142157#M39401</link>
      <description>&lt;P&gt;Please accept the answer.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2015 16:49:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-a-quot-deleted-moved-quot-in-Regex/m-p/142157#M39401</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-04-13T16:49:38Z</dc:date>
    </item>
  </channel>
</rss>

