<?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 How to extract a key and value from the Raw data? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-a-key-and-value-from-the-Raw-data/m-p/269697#M51765</link>
    <description>&lt;P&gt;While I understand the regex command and click based extraction of data fields. How do I extract both of them via the raw data?&lt;/P&gt;

&lt;P&gt;For example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$ABCD,,Speed,Nmea,63*33
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;From these, I will like to have a key Speed = 64 for example. I am guessing I need to perform some regex at the transforms.conf. But I am not exactly sure how to start.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Mar 2016 04:00:37 GMT</pubDate>
    <dc:creator>Stevelim</dc:creator>
    <dc:date>2016-03-30T04:00:37Z</dc:date>
    <item>
      <title>How to extract a key and value from the Raw data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-a-key-and-value-from-the-Raw-data/m-p/269697#M51765</link>
      <description>&lt;P&gt;While I understand the regex command and click based extraction of data fields. How do I extract both of them via the raw data?&lt;/P&gt;

&lt;P&gt;For example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$ABCD,,Speed,Nmea,63*33
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;From these, I will like to have a key Speed = 64 for example. I am guessing I need to perform some regex at the transforms.conf. But I am not exactly sure how to start.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 04:00:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-a-key-and-value-from-the-Raw-data/m-p/269697#M51765</guid>
      <dc:creator>Stevelim</dc:creator>
      <dc:date>2016-03-30T04:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a key and value from the Raw data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-a-key-and-value-from-the-Raw-data/m-p/269698#M51766</link>
      <description>&lt;P&gt;In &lt;CODE&gt;transforms.conf&lt;/CODE&gt;:&lt;/P&gt;

&lt;P&gt;Using FORMAT:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX = (?:[^,]*,){2}([^,]+),[^,]*,([^,]+)
FORMAT = $1::$2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Not using FORMAT:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX = (?:[^,]*,){2}(?&amp;lt;_KEY_1&amp;gt;[^,]+),[^,]*,(?&amp;lt;_VAL_1&amp;gt;[^,]+)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Mar 2016 04:14:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-a-key-and-value-from-the-Raw-data/m-p/269698#M51766</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-03-30T04:14:56Z</dc:date>
    </item>
  </channel>
</rss>

