<?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: JSON + KV Extraction in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/JSON-KV-Extraction/m-p/306019#M91861</link>
    <description>&lt;P&gt;Check out rubular.com and have fun yourself.&lt;/P&gt;</description>
    <pubDate>Thu, 16 Feb 2017 14:14:04 GMT</pubDate>
    <dc:creator>rbardonetorian</dc:creator>
    <dc:date>2017-02-16T14:14:04Z</dc:date>
    <item>
      <title>JSON + KV Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/JSON-KV-Extraction/m-p/306018#M91860</link>
      <description>&lt;P&gt;I have some JSON events, with fields extracted correctly.&lt;/P&gt;

&lt;P&gt;Inside the JSON event is a key value dictionary like so&lt;/P&gt;

&lt;P&gt;"integrations": ["product=splunk, product_version=6.5, name=splunk"]&lt;/P&gt;

&lt;P&gt;The resulting JSON extracted field / value -- intgrations=["product=splunk, product_version=6.5, name=splunk"]&lt;/P&gt;

&lt;P&gt;As a regex n00b having relied on IFX in the past, I'm now trying to split product, product_version, and name into fields too. &lt;/P&gt;

&lt;P&gt;How would I form a regular expression to use as a field extraction to specify these 3 fields (i.e field starts with "product=" and ends with either "," or """ (not all fields are always in dictionary)?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 13:46:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/JSON-KV-Extraction/m-p/306018#M91860</guid>
      <dc:creator>himynamesdave</dc:creator>
      <dc:date>2017-02-16T13:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: JSON + KV Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/JSON-KV-Extraction/m-p/306019#M91861</link>
      <description>&lt;P&gt;Check out rubular.com and have fun yourself.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 14:14:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/JSON-KV-Extraction/m-p/306019#M91861</guid>
      <dc:creator>rbardonetorian</dc:creator>
      <dc:date>2017-02-16T14:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: JSON + KV Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/JSON-KV-Extraction/m-p/306020#M91862</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;your basesearch |rename 'integrations.product' as product| rename 'integrations.product_version' as product_version|rename 'integrations.name' as name|table product product_version_name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If I understood should sort you out without having to extract fields.&lt;/P&gt;

&lt;P&gt;You could add each rename command to a calculated field if you wished which would perform this for you automaticly&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 14:32:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/JSON-KV-Extraction/m-p/306020#M91862</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2017-02-16T14:32:35Z</dc:date>
    </item>
  </channel>
</rss>

