<?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 do I extract the entire value for a field in my sample data? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-the-entire-value-for-a-field-in-my-sample-data/m-p/212796#M62366</link>
    <description>&lt;P&gt;If the one @masonmorales gave isn't sufficient already Or perhaps to get the &lt;CODE&gt;comma&lt;/CODE&gt; as well in the capture try below &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your query to return events
| rex "StatusMsg=(?&amp;lt;statusMsg&amp;gt;.*?)CrlMsg="
| table statusMsg
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 04 Jan 2017 04:38:49 GMT</pubDate>
    <dc:creator>gokadroid</dc:creator>
    <dc:date>2017-01-04T04:38:49Z</dc:date>
    <item>
      <title>How do I extract the entire value for a field in my sample data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-the-entire-value-for-a-field-in-my-sample-data/m-p/212794#M62364</link>
      <description>&lt;P&gt;I'd like to get contents between fields. Here is a sample log.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;CheckPointCount=N/A,CheckPointRestart=no,CheckPointInterval=5,StatusMsg=Open file "d:\data\Inbound Files\ABCSystems\DIFF.PRN" failed.  ,CrlMsg=N/A,StatusDiagCode=08,StatusSeverity=01,
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When I use "StatusMsg" in query, only "Open" is selected. I'd like to retrieve all content before "CrlMsg".&lt;BR /&gt;
How can I retrieve entire StatusMsg?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2017 21:01:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-the-entire-value-for-a-field-in-my-sample-data/m-p/212794#M62364</guid>
      <dc:creator>ynegoro</dc:creator>
      <dc:date>2017-01-03T21:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do I extract the entire value for a field in my sample data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-the-entire-value-for-a-field-in-my-sample-data/m-p/212795#M62365</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| rex "StatusMsg=(?&amp;lt;StatusMsg&amp;gt;[^,]+),CrlMsg"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Jan 2017 21:08:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-the-entire-value-for-a-field-in-my-sample-data/m-p/212795#M62365</guid>
      <dc:creator>masonmorales</dc:creator>
      <dc:date>2017-01-03T21:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do I extract the entire value for a field in my sample data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-the-entire-value-for-a-field-in-my-sample-data/m-p/212796#M62366</link>
      <description>&lt;P&gt;If the one @masonmorales gave isn't sufficient already Or perhaps to get the &lt;CODE&gt;comma&lt;/CODE&gt; as well in the capture try below &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your query to return events
| rex "StatusMsg=(?&amp;lt;statusMsg&amp;gt;.*?)CrlMsg="
| table statusMsg
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Jan 2017 04:38:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-the-entire-value-for-a-field-in-my-sample-data/m-p/212796#M62366</guid>
      <dc:creator>gokadroid</dc:creator>
      <dc:date>2017-01-04T04:38:49Z</dc:date>
    </item>
  </channel>
</rss>

