<?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 extract string from a position until the end of line? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-string-from-a-position-until-the-end-of-line/m-p/342965#M101567</link>
    <description>&lt;P&gt;Thanks. It works.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Mar 2017 11:06:26 GMT</pubDate>
    <dc:creator>mdzmuran</dc:creator>
    <dc:date>2017-03-09T11:06:26Z</dc:date>
    <item>
      <title>How to extract string from a position until the end of line?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-string-from-a-position-until-the-end-of-line/m-p/342963#M101565</link>
      <description>&lt;P&gt;I have lines like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[2011/02/11@10:33:13.978+0100] P-18679      T-0     I Usr     2: (49)    SYSTEM ERROR: Memory violation.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How can I extract the string beginning with "Memory viol" till the end of line? The string is one line only, but may be much longer with any characters.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 16:17:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-string-from-a-position-until-the-end-of-line/m-p/342963#M101565</guid>
      <dc:creator>mdzmuran</dc:creator>
      <dc:date>2017-03-08T16:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract string from a position until the end of line?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-string-from-a-position-until-the-end-of-line/m-p/342964#M101566</link>
      <description>&lt;P&gt;Your regex will look like this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=_raw "(?&amp;lt;myfield&amp;gt;Memory viol.*)$"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or you might prefer&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=_raw "SYSTEM ERROR:\s+(?&amp;lt;myfield&amp;gt;.*)$"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Both of these assume that there will never be any fields after the system error.  The $ at the end is a regex anchor for "the end of the field we are searching"&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 20:47:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-string-from-a-position-until-the-end-of-line/m-p/342964#M101566</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-03-08T20:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract string from a position until the end of line?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-string-from-a-position-until-the-end-of-line/m-p/342965#M101567</link>
      <description>&lt;P&gt;Thanks. It works.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 11:06:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-string-from-a-position-until-the-end-of-line/m-p/342965#M101567</guid>
      <dc:creator>mdzmuran</dc:creator>
      <dc:date>2017-03-09T11:06:26Z</dc:date>
    </item>
  </channel>
</rss>

