<?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 Given a Multiline Event, Can I Create a KV Fields from each row? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Given-a-Multiline-Event-Can-I-Create-a-KV-Fields-from-each-row/m-p/14690#M1607</link>
    <description>&lt;P&gt;I have some log like following:&lt;/P&gt;

&lt;P&gt;13:47:04 -2 receive request [type=0|desc=TimeStamp] &amp;lt;---event one&lt;BR /&gt;
| [8 ] [BCA3.5]&lt;BR /&gt;
| [9 ] [56]&lt;BR /&gt;
| [35 ] [0]&lt;BR /&gt;
| [49 ] [UBDHKH]&lt;BR /&gt;
| [56 ] [LEHUBAUS]&lt;BR /&gt;
| [34 ] [1709]&lt;BR /&gt;
| [52 ] [20100512-05:47:05]&lt;BR /&gt;
| [10 ] [182]&lt;BR /&gt;
13:47:03 -2 sending request [type=0|desc=Request Change] &amp;lt;---event two&lt;BR /&gt;
| [35 ] [0]&lt;BR /&gt;
| [57 ] [INADM]&lt;BR /&gt;
| [56 ] [UBDHKH]&lt;BR /&gt;
| [49 ] [LEHUBAUS]&lt;BR /&gt;
| [34 ] [2179]&lt;BR /&gt;
| [52 ] [20100512-05:47:03]&lt;BR /&gt;
| [8 ] [BCA3.5]&lt;BR /&gt;
| [9 ] [0065]&lt;BR /&gt;
| [10 ] [041]&lt;BR /&gt;
........   &lt;/P&gt;

&lt;P&gt;The number of the left hand side is some meaningful code internally, I want to use left hand side as fields and it is the value for right hand side.&lt;/P&gt;

&lt;P&gt;I've tried to extract the fields using REPORT-  in props.conf, but the  REPEAT_MATCH=true seems not working on Search-extracted fields and also a FORMAT value like : FORMAT=fields_$1::$2 is not correctly recognized. &lt;/P&gt;</description>
    <pubDate>Wed, 02 Jun 2010 18:09:51 GMT</pubDate>
    <dc:creator>mzorzi</dc:creator>
    <dc:date>2010-06-02T18:09:51Z</dc:date>
    <item>
      <title>Given a Multiline Event, Can I Create a KV Fields from each row?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Given-a-Multiline-Event-Can-I-Create-a-KV-Fields-from-each-row/m-p/14690#M1607</link>
      <description>&lt;P&gt;I have some log like following:&lt;/P&gt;

&lt;P&gt;13:47:04 -2 receive request [type=0|desc=TimeStamp] &amp;lt;---event one&lt;BR /&gt;
| [8 ] [BCA3.5]&lt;BR /&gt;
| [9 ] [56]&lt;BR /&gt;
| [35 ] [0]&lt;BR /&gt;
| [49 ] [UBDHKH]&lt;BR /&gt;
| [56 ] [LEHUBAUS]&lt;BR /&gt;
| [34 ] [1709]&lt;BR /&gt;
| [52 ] [20100512-05:47:05]&lt;BR /&gt;
| [10 ] [182]&lt;BR /&gt;
13:47:03 -2 sending request [type=0|desc=Request Change] &amp;lt;---event two&lt;BR /&gt;
| [35 ] [0]&lt;BR /&gt;
| [57 ] [INADM]&lt;BR /&gt;
| [56 ] [UBDHKH]&lt;BR /&gt;
| [49 ] [LEHUBAUS]&lt;BR /&gt;
| [34 ] [2179]&lt;BR /&gt;
| [52 ] [20100512-05:47:03]&lt;BR /&gt;
| [8 ] [BCA3.5]&lt;BR /&gt;
| [9 ] [0065]&lt;BR /&gt;
| [10 ] [041]&lt;BR /&gt;
........   &lt;/P&gt;

&lt;P&gt;The number of the left hand side is some meaningful code internally, I want to use left hand side as fields and it is the value for right hand side.&lt;/P&gt;

&lt;P&gt;I've tried to extract the fields using REPORT-  in props.conf, but the  REPEAT_MATCH=true seems not working on Search-extracted fields and also a FORMAT value like : FORMAT=fields_$1::$2 is not correctly recognized. &lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2010 18:09:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Given-a-Multiline-Event-Can-I-Create-a-KV-Fields-from-each-row/m-p/14690#M1607</guid>
      <dc:creator>mzorzi</dc:creator>
      <dc:date>2010-06-02T18:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Given a Multiline Event, Can I Create a KV Fields from each row?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Given-a-Multiline-Event-Can-I-Create-a-KV-Fields-from-each-row/m-p/14691#M1608</link>
      <description>&lt;P&gt;Correct, unfortunately search-time extractions won't let you do anything more exotic than &lt;CODE&gt;$1::$2&lt;/CODE&gt; to map keys and values. However, you &lt;EM&gt;can&lt;/EM&gt; actually use numbers as field names (it probably gets ambiguous syntactically for some commands, but you can deal with those ad hoc). Just add &lt;CODE&gt;CLEAN_KEYS = false&lt;/CODE&gt; to your &lt;CODE&gt;transforms.conf&lt;/CODE&gt; stanza, and use &lt;CODE&gt;$1::$2&lt;/CODE&gt; to create KV pairs, and you'll wind up with fields named &lt;CODE&gt;35&lt;/CODE&gt;, &lt;CODE&gt;10&lt;/CODE&gt;, etc.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2010 19:48:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Given-a-Multiline-Event-Can-I-Create-a-KV-Fields-from-each-row/m-p/14691#M1608</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-06-02T19:48:20Z</dc:date>
    </item>
  </channel>
</rss>

