<?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: Make Key=Value fields from _raw data during indextime in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Make-Key-Value-fields-from-raw-data-during-indextime/m-p/147308#M30002</link>
    <description>&lt;P&gt;I tried it and it still doesn't work. Kinda strange. I am applying them on the indexer and doing a oneshot on it for now.&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jul 2015 18:36:21 GMT</pubDate>
    <dc:creator>theouhuios</dc:creator>
    <dc:date>2015-07-29T18:36:21Z</dc:date>
    <item>
      <title>Make Key=Value fields from _raw data during indextime</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Make-Key-Value-fields-from-raw-data-during-indextime/m-p/147306#M30000</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;I am trying to make key=value pair for the below data and I am lost on where I am going wrong..&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;6/26/15 10:26 AM,abcdefg.com:CRDMS,Oracle Database Server,DB Role (Oracle) Assignment report,Query Rule,Query=DB Role assignment query,"&amp;lt;?xml version=""1.0"" encoding=""UTF-8"" ?&amp;gt;
&amp;lt;ResultSetData&amp;gt;
  &amp;lt;Row&amp;gt;
    &amp;lt;Column name=""Server Name""&amp;gt;abc.abc&amp;lt;/Column&amp;gt;
    &amp;lt;Column name=""Database Name""&amp;gt;CRDMS&amp;lt;/Column&amp;gt;
    &amp;lt;Column name=""Role Name""&amp;gt;PCI_READ_IARD&amp;lt;/Column&amp;gt;
    &amp;lt;Column name=""Role Grantee""&amp;gt;SYS&amp;lt;/Column&amp;gt;
    &amp;lt;Column name=""Server NetBIOS Name""&amp;gt;abc.abc&amp;lt;/Column&amp;gt;
  &amp;lt;/Row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What I plan to do is to make KEY=VALUE pairs for all the name’s with their corresponding values. Example.. “Server Name” = abc.abc , Database Name=CRDMS etc.&lt;/P&gt;

&lt;P&gt;Props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[test]
TRANSFORMS-ext = ext_column_values
TRUNCATE=100000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ext_column_values]
REGEX = ^\s+\&amp;lt;Column\s+name\=\"\"([^\"]+)\"\"\&amp;gt;([^\&amp;lt;]+)\&amp;lt;
FORMAT = $1::$2
#MV_ADD = true
#WRITE_META = true
SOURCE_KEY = _raw
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But it doesn’t seem to work. Not sure where I am doing wrong. Any ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2015 18:12:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Make-Key-Value-fields-from-raw-data-during-indextime/m-p/147306#M30000</guid>
      <dc:creator>theouhuios</dc:creator>
      <dc:date>2015-07-29T18:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Make Key=Value fields from _raw data during indextime</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Make-Key-Value-fields-from-raw-data-during-indextime/m-p/147307#M30001</link>
      <description>&lt;P&gt;It all looks good to me except that you definitely need &lt;CODE&gt;MV_ADD=true&lt;/CODE&gt; so remove the comment character on that line, the RegEx might be better as explicitly multiline:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX = (?m)^\s+\&amp;lt;Column\s+name\=\"\"([^\"]+)\"\"\&amp;gt;([^\&amp;lt;]+)\&amp;lt;
MV_ADD = true
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Jul 2015 18:17:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Make-Key-Value-fields-from-raw-data-during-indextime/m-p/147307#M30001</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-29T18:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Make Key=Value fields from _raw data during indextime</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Make-Key-Value-fields-from-raw-data-during-indextime/m-p/147308#M30002</link>
      <description>&lt;P&gt;I tried it and it still doesn't work. Kinda strange. I am applying them on the indexer and doing a oneshot on it for now.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2015 18:36:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Make-Key-Value-fields-from-raw-data-during-indextime/m-p/147308#M30002</guid>
      <dc:creator>theouhuios</dc:creator>
      <dc:date>2015-07-29T18:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Make Key=Value fields from _raw data during indextime</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Make-Key-Value-fields-from-raw-data-during-indextime/m-p/147309#M30003</link>
      <description>&lt;P&gt;Is the &lt;CODE&gt;sourcetype&lt;/CODE&gt; for the events that you would like to exploit called &lt;CODE&gt;test&lt;/CODE&gt;?  If not, you need to change your stanza header in &lt;CODE&gt;props.conf&lt;/CODE&gt; from &lt;CODE&gt;[test]&lt;/CODE&gt; to &lt;CODE&gt;[yourSourceType]&lt;/CODE&gt; before it will all be connected together.  Also, you may have a permission problem depending on where you have placed the &lt;CODE&gt;props.conf&lt;/CODE&gt; and &lt;CODE&gt;transforms.conf&lt;/CODE&gt; files.  You might try setting the permissions to &lt;CODE&gt;Global&lt;/CODE&gt; to test if this is the problem.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2015 20:11:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Make-Key-Value-fields-from-raw-data-during-indextime/m-p/147309#M30003</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-29T20:11:28Z</dc:date>
    </item>
  </channel>
</rss>

