<?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 extract with quoted values in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/extract-with-quoted-values/m-p/96229#M24870</link>
    <description>&lt;P&gt;In our logs we have keyvalue pairs that looks like this&lt;/P&gt;

&lt;P&gt;key1='valuex'&lt;BR /&gt;
key2='value value val'&lt;BR /&gt;
keyx=''&lt;BR /&gt;
keyxx='lksajdf lajsdf'&lt;/P&gt;

&lt;P&gt;just the default |extract does a good job but all the values still have the single quotes around them. One thing to remember is that we dont know how many keys and what keys there will be, so i cant hard code them, they are volatile.&lt;/P&gt;

&lt;P&gt;i would like to apply this regexp to all the values of my extractions ^'(.*)'$&lt;/P&gt;

&lt;P&gt;can i configure this somewhere in my transforms.conf ? &lt;/P&gt;</description>
    <pubDate>Fri, 06 May 2011 09:01:03 GMT</pubDate>
    <dc:creator>bowa</dc:creator>
    <dc:date>2011-05-06T09:01:03Z</dc:date>
    <item>
      <title>extract with quoted values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-with-quoted-values/m-p/96229#M24870</link>
      <description>&lt;P&gt;In our logs we have keyvalue pairs that looks like this&lt;/P&gt;

&lt;P&gt;key1='valuex'&lt;BR /&gt;
key2='value value val'&lt;BR /&gt;
keyx=''&lt;BR /&gt;
keyxx='lksajdf lajsdf'&lt;/P&gt;

&lt;P&gt;just the default |extract does a good job but all the values still have the single quotes around them. One thing to remember is that we dont know how many keys and what keys there will be, so i cant hard code them, they are volatile.&lt;/P&gt;

&lt;P&gt;i would like to apply this regexp to all the values of my extractions ^'(.*)'$&lt;/P&gt;

&lt;P&gt;can i configure this somewhere in my transforms.conf ? &lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2011 09:01:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-with-quoted-values/m-p/96229#M24870</guid>
      <dc:creator>bowa</dc:creator>
      <dc:date>2011-05-06T09:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: extract with quoted values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-with-quoted-values/m-p/96230#M24871</link>
      <description>&lt;P&gt;Something like this should work:&lt;/P&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mysourcetype]
REPORT-ex = myreport
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[myreport]
REGEX = ([^=]+)='([^']+)'\s
FORMAT = $1::$2
REPEAT_MATCH = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This should automatically extract all values and populate keyX fields with them, no matter how many there are.&lt;/P&gt;</description>
      <pubDate>Sun, 08 May 2011 19:51:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-with-quoted-values/m-p/96230#M24871</guid>
      <dc:creator>bojanz</dc:creator>
      <dc:date>2011-05-08T19:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: extract with quoted values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-with-quoted-values/m-p/96231#M24872</link>
      <description>&lt;P&gt;doesn't work for me ... just using |extract works but all values are still with the single quotes around them .&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2011 13:37:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-with-quoted-values/m-p/96231#M24872</guid>
      <dc:creator>bowa</dc:creator>
      <dc:date>2011-05-16T13:37:33Z</dc:date>
    </item>
  </channel>
</rss>

