<?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: Parsing comma separated values in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-comma-separated-values/m-p/44476#M8320</link>
    <description>&lt;P&gt;Hi MuS, I need help with writing the complete regex.  Could you please give me some pointers.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jan 2012 16:54:24 GMT</pubDate>
    <dc:creator>danurag</dc:creator>
    <dc:date>2012-01-05T16:54:24Z</dc:date>
    <item>
      <title>Parsing comma separated values</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-comma-separated-values/m-p/44474#M8318</link>
      <description>&lt;P&gt;I have a script that outputs data in the following format.  The problem is that the value of the Error field gets initialized to "No" and ignores the Error part.  Also, the Error field could have have a completed stack trace and flow into multiple lines.  How do I write the transforms stanza so that it assigns all the values to the "Error" field.  &lt;/P&gt;

&lt;P&gt;ElapsedTime=2.2812208, StatusCode=OK, ContentMatched=False, Error=No Error&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2012 22:52:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-comma-separated-values/m-p/44474#M8318</guid>
      <dc:creator>danurag</dc:creator>
      <dc:date>2012-01-04T22:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing comma separated values</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-comma-separated-values/m-p/44475#M8319</link>
      <description>&lt;P&gt;Hi danurag&lt;/P&gt;

&lt;P&gt;you can use a regex like this &lt;CODE&gt;([^=]*)$&lt;/CODE&gt; to match everything after the last = to be extracted&lt;/P&gt;

&lt;P&gt;cheers&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2012 10:13:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-comma-separated-values/m-p/44475#M8319</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2012-01-05T10:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing comma separated values</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-comma-separated-values/m-p/44476#M8320</link>
      <description>&lt;P&gt;Hi MuS, I need help with writing the complete regex.  Could you please give me some pointers.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2012 16:54:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-comma-separated-values/m-p/44476#M8320</guid>
      <dc:creator>danurag</dc:creator>
      <dc:date>2012-01-05T16:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing comma separated values</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-comma-separated-values/m-p/44477#M8321</link>
      <description>&lt;P&gt;try the inline regex,&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
mysearch | rex field=hop "Error=(?&amp;lt;Error&amp;gt;([^=]*)$)" | table Error&lt;BR /&gt;
&lt;/CODE&gt;&lt;BR /&gt;
then once confirmed working, you can define an automatic field extraction&lt;BR /&gt;
see &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.2.5/Knowledge/Managesearch-timefieldextractions"&gt;http://docs.splunk.com/Documentation/Splunk/4.2.5/Knowledge/Managesearch-timefieldextractions&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2012 18:33:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-comma-separated-values/m-p/44477#M8321</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2012-01-05T18:33:45Z</dc:date>
    </item>
  </channel>
</rss>

