<?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 field values from a log record including blanks in the data part? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-field-values-from-a-log-record-including-blanks/m-p/169967#M34348</link>
    <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;H4&gt;props.conf:&lt;/H4&gt;

&lt;PRE&gt;&lt;CODE&gt;[mySourceType]
TRANSFORMS-mySourceType = mySourceTypeKVPs
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;H4&gt;transforms.conf:&lt;/H4&gt;

&lt;PRE&gt;&lt;CODE&gt;[mySourceTypeKVPs]
REGEX = ([^\s\=]+)=([^=]*)(?:\s+|$)
FORMAT = $1::$2
MV_ADD = 1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 13 Aug 2015 17:41:52 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2015-08-13T17:41:52Z</dc:date>
    <item>
      <title>How to extract field values from a log record including blanks in the data part?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-field-values-from-a-log-record-including-blanks/m-p/169966#M34347</link>
      <description>&lt;P&gt;hi all,&lt;/P&gt;

&lt;P&gt;we have data records like&lt;/P&gt;

&lt;P&gt;posLabel=monitoring field posData=51.02 55.56 msg=xxxx&lt;/P&gt;

&lt;P&gt;where variables' content include blanks.&lt;/P&gt;

&lt;P&gt;my questions:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;how can I advise splunk to include the entire string (incl. blanks)&lt;BR /&gt;
to a variable. in this example, to assign "monitoring field" to variable&lt;BR /&gt;
posLabel and "51.02 55.56" to posData?&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;is there any escape character defined to prevent that a "=" character&lt;BR /&gt;
in my data becomes interpreted as a new variable namen?&lt;BR /&gt;
for example, in case of "posData=x=5,y=9 " the value of posData&lt;BR /&gt;
should be "x=5,y=9", and no x and y variables should become created.&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;thanks for any link or sample code.&lt;/P&gt;

&lt;P&gt;best, and thanks to all&lt;BR /&gt;
Caspar&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2015 09:38:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-field-values-from-a-log-record-including-blanks/m-p/169966#M34347</guid>
      <dc:creator>DrFedtke</dc:creator>
      <dc:date>2015-08-13T09:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract field values from a log record including blanks in the data part?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-field-values-from-a-log-record-including-blanks/m-p/169967#M34348</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;H4&gt;props.conf:&lt;/H4&gt;

&lt;PRE&gt;&lt;CODE&gt;[mySourceType]
TRANSFORMS-mySourceType = mySourceTypeKVPs
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;H4&gt;transforms.conf:&lt;/H4&gt;

&lt;PRE&gt;&lt;CODE&gt;[mySourceTypeKVPs]
REGEX = ([^\s\=]+)=([^=]*)(?:\s+|$)
FORMAT = $1::$2
MV_ADD = 1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Aug 2015 17:41:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-field-values-from-a-log-record-including-blanks/m-p/169967#M34348</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-08-13T17:41:52Z</dc:date>
    </item>
  </channel>
</rss>

