<?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 Backslash regex WinEventLog in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Backslash-regex-WinEventLog/m-p/309338#M92779</link>
    <description>&lt;P&gt;Hi guys,&lt;/P&gt;

&lt;P&gt;I have the log below and need get the third part of the this log using regex. Can you help me with this?&lt;/P&gt;

&lt;P&gt;String samples:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;D:\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\RSTempFiles\reportserver\e5f6c90d\cod0982712\assembly\cod1\380c6db9\00776c62_b2e8cc01\__AssemblyInfo__.ini D:\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\RSTempFiles\reportserver\e5f6c90d\cod0982712\assembly\cod1\380c6db9\00776c62_b2e8cc01\__AssemblyInfo__.ini D:\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\RSTempFiles\reportserver\e5f6c90d\cod0982712\assembly\cod1\380c6db9\00776c62_b2e8cc01\__AssemblyInfo__.ini&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;String that i want: &lt;CODE&gt;MSRS11.MSSQLSERVER\Reporting Services\RSTempFiles\reportserver\cod0982712\311c6586\assembly\cod1\380c6db9\00776c62_b2e8cc01\__AssemblyInfo__.ini&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Aug 2017 21:52:13 GMT</pubDate>
    <dc:creator>rafamss</dc:creator>
    <dc:date>2017-08-29T21:52:13Z</dc:date>
    <item>
      <title>Backslash regex WinEventLog</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Backslash-regex-WinEventLog/m-p/309338#M92779</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;

&lt;P&gt;I have the log below and need get the third part of the this log using regex. Can you help me with this?&lt;/P&gt;

&lt;P&gt;String samples:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;D:\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\RSTempFiles\reportserver\e5f6c90d\cod0982712\assembly\cod1\380c6db9\00776c62_b2e8cc01\__AssemblyInfo__.ini D:\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\RSTempFiles\reportserver\e5f6c90d\cod0982712\assembly\cod1\380c6db9\00776c62_b2e8cc01\__AssemblyInfo__.ini D:\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\RSTempFiles\reportserver\e5f6c90d\cod0982712\assembly\cod1\380c6db9\00776c62_b2e8cc01\__AssemblyInfo__.ini&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;String that i want: &lt;CODE&gt;MSRS11.MSSQLSERVER\Reporting Services\RSTempFiles\reportserver\cod0982712\311c6586\assembly\cod1\380c6db9\00776c62_b2e8cc01\__AssemblyInfo__.ini&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2017 21:52:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Backslash-regex-WinEventLog/m-p/309338#M92779</guid>
      <dc:creator>rafamss</dc:creator>
      <dc:date>2017-08-29T21:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Backslash regex WinEventLog</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Backslash-regex-WinEventLog/m-p/309339#M92780</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;.*D:\\Program Files\\Microsoft SQL Server\\(?&amp;lt;yourFieldName&amp;gt;.*)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is a bit more efficient here:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.*Server\\(?&amp;lt;yourFieldName&amp;gt;.*)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Aug 2017 23:52:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Backslash-regex-WinEventLog/m-p/309339#M92780</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2017-08-29T23:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Backslash regex WinEventLog</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Backslash-regex-WinEventLog/m-p/309340#M92781</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex "(?ms).*Microsoft SQL Server\\\(?&amp;lt;MyField&amp;gt;.+)$"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Aug 2017 01:12:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Backslash-regex-WinEventLog/m-p/309340#M92781</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-08-30T01:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Backslash regex WinEventLog</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Backslash-regex-WinEventLog/m-p/309341#M92782</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;

&lt;P&gt;My mistake. I forgot said that say which the path the log can change anytime. So, I always need get the thirdy path of the EventLog.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;D:\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\&lt;/CODE&gt; &lt;STRONG&gt;from here to end&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 14:34:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Backslash-regex-WinEventLog/m-p/309341#M92782</guid>
      <dc:creator>rafamss</dc:creator>
      <dc:date>2017-08-31T14:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Backslash regex WinEventLog</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Backslash-regex-WinEventLog/m-p/309342#M92783</link>
      <description>&lt;P&gt;Hi there @rafamss&lt;/P&gt;

&lt;P&gt;Try this one to grab everything after the 3rd segment.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?:[^\\]+\\){3}(?&amp;lt;new_field&amp;gt;.*?)$
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 31 Aug 2017 15:23:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Backslash-regex-WinEventLog/m-p/309342#M92783</guid>
      <dc:creator>alemarzu</dc:creator>
      <dc:date>2017-08-31T15:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Backslash regex WinEventLog</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Backslash-regex-WinEventLog/m-p/309343#M92784</link>
      <description>&lt;P&gt;Hi @alemarzu,&lt;/P&gt;

&lt;P&gt;I'm using the example below, but it's not working.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| rex field=Object_Name "(?:[^\\]+\\){3}(?&amp;lt;new_field&amp;gt;.*?)$" | table field&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Error in 'rex' command: Encountered the following error while compiling the regex '(?:[^]+){3}(?.*?)$': Regex: missing terminating ] for character class&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 17:16:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Backslash-regex-WinEventLog/m-p/309343#M92784</guid>
      <dc:creator>rafamss</dc:creator>
      <dc:date>2017-08-31T17:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Backslash regex WinEventLog</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Backslash-regex-WinEventLog/m-p/309344#M92785</link>
      <description>&lt;P&gt;The regex from the error message is not the same I gave you. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=Object_Name "(?:[^\\]+\\){3}(?&amp;lt;new_field&amp;gt;.*?)$" | table new_field
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 31 Aug 2017 20:13:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Backslash-regex-WinEventLog/m-p/309344#M92785</guid>
      <dc:creator>alemarzu</dc:creator>
      <dc:date>2017-08-31T20:13:17Z</dc:date>
    </item>
  </channel>
</rss>

