<?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 Parsing libsvm events in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-libsvm-events/m-p/443048#M77190</link>
    <description>&lt;P&gt;I'm trying to parse a number of different libsvm files &lt;A href="https://www.csie.ntu.edu.tw/%7Ecjlin/libsvm/faq.html#/Q03:_Data_preparation" target="_blank"&gt;https://www.csie.ntu.edu.tw/~cjlin/libsvm/faq.html#/Q03:_Data_preparation&lt;/A&gt; within Splunk but unable to extract all the repeating key:value pairs. I can extract the first value called label correctly however I can only get the first value within the points (repeating key:value pairs). So a field call p_1 is created but p_2, p_3, p_4, p_5, p_6, p_7, and p_8 are missing. I've attached an example of the file to be processed and current props.conf and transforms.conf files. &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;libsvm file&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;3.0 1:69.0 2:91.0 3:57.0 4:0.08035548849583785 5:0.01453634825435611 6:25.0 7:19.0 8:-1.3157894736796152 9:0.0
5.0 1:56.0 2:97.0 3:56.0 4:0.8167951447877143 5:-0.06108637426162032 6:23.0 7:19.0 8:2.5 9:0.0
8.0 1:48.0 2:58.0 3:30.0 4:0.3969340706645018 5:0.032656706189642705 6:24.0 7:17.0 8:1.0476190476038028 9:0.0 
10.0 1:27.0 2:69.0 3:20.0 4:0.6876996766857346 5:-0.08096469266049523 6:25.0 7:18.0 8:-4.71999999997206 9:0.0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf file&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[libsvm]
DATETIME_CONFIG = CURRENT
NO_BINARY_CHECK = true
category = Custom
disabled = false
pulldown_type = true
SHOULD_LINEMERGE = false
REPORT-a = libsvmLabelledPoints, libsvmPoints
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[libsvmLabelledPoints]
REGEX = (?&amp;lt;label&amp;gt;[^\s]+) (?&amp;lt;points&amp;gt;.*)

[libsvmPoints]
SOURCE_KEY = points
REGEX = \s?([^\s\:]+):([^\s]+)\s?
FORMAT = p$1::$2
REPEAT_MATCH = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any pointers on the above would be great.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 19:52:55 GMT</pubDate>
    <dc:creator>msivill_splunk</dc:creator>
    <dc:date>2020-09-29T19:52:55Z</dc:date>
    <item>
      <title>Parsing libsvm events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-libsvm-events/m-p/443048#M77190</link>
      <description>&lt;P&gt;I'm trying to parse a number of different libsvm files &lt;A href="https://www.csie.ntu.edu.tw/%7Ecjlin/libsvm/faq.html#/Q03:_Data_preparation" target="_blank"&gt;https://www.csie.ntu.edu.tw/~cjlin/libsvm/faq.html#/Q03:_Data_preparation&lt;/A&gt; within Splunk but unable to extract all the repeating key:value pairs. I can extract the first value called label correctly however I can only get the first value within the points (repeating key:value pairs). So a field call p_1 is created but p_2, p_3, p_4, p_5, p_6, p_7, and p_8 are missing. I've attached an example of the file to be processed and current props.conf and transforms.conf files. &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;libsvm file&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;3.0 1:69.0 2:91.0 3:57.0 4:0.08035548849583785 5:0.01453634825435611 6:25.0 7:19.0 8:-1.3157894736796152 9:0.0
5.0 1:56.0 2:97.0 3:56.0 4:0.8167951447877143 5:-0.06108637426162032 6:23.0 7:19.0 8:2.5 9:0.0
8.0 1:48.0 2:58.0 3:30.0 4:0.3969340706645018 5:0.032656706189642705 6:24.0 7:17.0 8:1.0476190476038028 9:0.0 
10.0 1:27.0 2:69.0 3:20.0 4:0.6876996766857346 5:-0.08096469266049523 6:25.0 7:18.0 8:-4.71999999997206 9:0.0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf file&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[libsvm]
DATETIME_CONFIG = CURRENT
NO_BINARY_CHECK = true
category = Custom
disabled = false
pulldown_type = true
SHOULD_LINEMERGE = false
REPORT-a = libsvmLabelledPoints, libsvmPoints
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[libsvmLabelledPoints]
REGEX = (?&amp;lt;label&amp;gt;[^\s]+) (?&amp;lt;points&amp;gt;.*)

[libsvmPoints]
SOURCE_KEY = points
REGEX = \s?([^\s\:]+):([^\s]+)\s?
FORMAT = p$1::$2
REPEAT_MATCH = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any pointers on the above would be great.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:52:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-libsvm-events/m-p/443048#M77190</guid>
      <dc:creator>msivill_splunk</dc:creator>
      <dc:date>2020-09-29T19:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing libsvm events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-libsvm-events/m-p/443049#M77191</link>
      <description>&lt;P&gt;Preprocessing the libsvm file with the SEDCMD in props.conf to convert the numeric keys into alphanumeric keys solved this. So the key does not begin with a numeric character i.e. p1, p2, p3, p4, p5, etc.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[libsvm]
DATETIME_CONFIG = CURRENT
NO_BINARY_CHECK = true
category = Custom
disabled = false
pulldown_type = true
SHOULD_LINEMERGE = false
SEDCMD-p = s/(\d+:)/p\1/g
REPORT-a = libsvmLabelledPoints, libsvmPoints
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[libsvmLabelledPoints]
REGEX = (?&amp;lt;label&amp;gt;[^\s]+) (?&amp;lt;points&amp;gt;.*)

[libsvmPoints]
FORMAT = $1::$2
REGEX = \s?([^\s\:]+):([^\s]+)\s?
SOURCE_KEY = points
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Jun 2018 06:57:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-libsvm-events/m-p/443049#M77191</guid>
      <dc:creator>msivill_splunk</dc:creator>
      <dc:date>2018-06-14T06:57:55Z</dc:date>
    </item>
  </channel>
</rss>

