<?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 Fields extraction from multi lines event in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Fields-extraction-from-multi-lines-event/m-p/453394#M128331</link>
    <description>&lt;P&gt;Hello folks,&lt;BR /&gt;
I've this event from custom data source:&lt;/P&gt;

&lt;P&gt;01/07/2019 16:27:08&lt;BR /&gt;
type=cpu_util&lt;BR /&gt;
SNMP table: HOST-RESOURCES-MIB::hrProcessorTable&lt;BR /&gt;
        hrProcessorFrwID hrProcessorLoad&lt;BR /&gt;
 SNMPv2-SMI::zeroDotZero              20&lt;BR /&gt;
 SNMPv2-SMI::zeroDotZero              17&lt;BR /&gt;
 SNMPv2-SMI::zeroDotZero              19&lt;BR /&gt;
 SNMPv2-SMI::zeroDotZero              23&lt;BR /&gt;
 SNMPv2-SMI::zeroDotZero              10&lt;BR /&gt;
 SNMPv2-SMI::zeroDotZero              22&lt;BR /&gt;
 SNMPv2-SMI::zeroDotZero               8&lt;BR /&gt;
 SNMPv2-SMI::zeroDotZero               4&lt;BR /&gt;
 SNMPv2-SMI::zeroDotZero               7&lt;BR /&gt;
 SNMPv2-SMI::zeroDotZero               3&lt;BR /&gt;
 SNMPv2-SMI::zeroDotZero               4&lt;BR /&gt;
 SNMPv2-SMI::zeroDotZero               6&lt;BR /&gt;
 SNMPv2-SMI::zeroDotZero              33&lt;BR /&gt;
 SNMPv2-SMI::zeroDotZero              14&lt;BR /&gt;
 SNMPv2-SMI::zeroDotZero              13&lt;BR /&gt;
 SNMPv2-SMI::zeroDotZero               8&lt;/P&gt;

&lt;P&gt;this is a one event that represents the utilization for the cpu cores. how to extract the numbers in each row ? I tried but it extract the first number only (20) . how to write regex to extract all numbers.&lt;/P&gt;</description>
    <pubDate>Mon, 01 Jul 2019 19:33:28 GMT</pubDate>
    <dc:creator>ali_alnajjar_ve</dc:creator>
    <dc:date>2019-07-01T19:33:28Z</dc:date>
    <item>
      <title>Fields extraction from multi lines event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fields-extraction-from-multi-lines-event/m-p/453394#M128331</link>
      <description>&lt;P&gt;Hello folks,&lt;BR /&gt;
I've this event from custom data source:&lt;/P&gt;

&lt;P&gt;01/07/2019 16:27:08&lt;BR /&gt;
type=cpu_util&lt;BR /&gt;
SNMP table: HOST-RESOURCES-MIB::hrProcessorTable&lt;BR /&gt;
        hrProcessorFrwID hrProcessorLoad&lt;BR /&gt;
 SNMPv2-SMI::zeroDotZero              20&lt;BR /&gt;
 SNMPv2-SMI::zeroDotZero              17&lt;BR /&gt;
 SNMPv2-SMI::zeroDotZero              19&lt;BR /&gt;
 SNMPv2-SMI::zeroDotZero              23&lt;BR /&gt;
 SNMPv2-SMI::zeroDotZero              10&lt;BR /&gt;
 SNMPv2-SMI::zeroDotZero              22&lt;BR /&gt;
 SNMPv2-SMI::zeroDotZero               8&lt;BR /&gt;
 SNMPv2-SMI::zeroDotZero               4&lt;BR /&gt;
 SNMPv2-SMI::zeroDotZero               7&lt;BR /&gt;
 SNMPv2-SMI::zeroDotZero               3&lt;BR /&gt;
 SNMPv2-SMI::zeroDotZero               4&lt;BR /&gt;
 SNMPv2-SMI::zeroDotZero               6&lt;BR /&gt;
 SNMPv2-SMI::zeroDotZero              33&lt;BR /&gt;
 SNMPv2-SMI::zeroDotZero              14&lt;BR /&gt;
 SNMPv2-SMI::zeroDotZero              13&lt;BR /&gt;
 SNMPv2-SMI::zeroDotZero               8&lt;/P&gt;

&lt;P&gt;this is a one event that represents the utilization for the cpu cores. how to extract the numbers in each row ? I tried but it extract the first number only (20) . how to write regex to extract all numbers.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 19:33:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fields-extraction-from-multi-lines-event/m-p/453394#M128331</guid>
      <dc:creator>ali_alnajjar_ve</dc:creator>
      <dc:date>2019-07-01T19:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Fields extraction from multi lines event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fields-extraction-from-multi-lines-event/m-p/453395#M128332</link>
      <description>&lt;P&gt;Use a REPORT extraction and add &lt;CODE&gt;MV_ADD = true&lt;/CODE&gt; in your transforms.conf. For example:&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mysourcetype]
REPORT-cpu_util = my_cpu_util
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[my_cpu_util]
REGEX = SNMPv2-SMI::zeroDotZero\s+(?&amp;lt;cpu_util&amp;gt;\d+)
MV_ADD = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This should result in a multi valued field called cpu_util.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 07:42:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fields-extraction-from-multi-lines-event/m-p/453395#M128332</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2019-07-02T07:42:52Z</dc:date>
    </item>
  </channel>
</rss>

