<?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: Extracting number of fields from a multi line event in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extracting-number-of-fields-from-a-multi-line-event/m-p/15965#M2058</link>
    <description>&lt;P&gt;I ended up writing a script to pre-process the file to make the data Splunk-friendly.&lt;/P&gt;</description>
    <pubDate>Sat, 26 Jun 2010 01:57:23 GMT</pubDate>
    <dc:creator>hiwell</dc:creator>
    <dc:date>2010-06-26T01:57:23Z</dc:date>
    <item>
      <title>Extracting number of fields from a multi line event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-number-of-fields-from-a-multi-line-event/m-p/15963#M2056</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am trying to extract fields from an event which looks like this (I have multiple events)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;total time (ms): 5 
web server processing time (ms/%): 2 40 
transmission time (ms/%): 3 60 
bytes sent/received: 100 200 
start time (ms): 1234 
end time(ms): 2345
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;some lines have one field, and other have two fields making it impossible for me to extract these numbers. I would like splunk to create two separate fields for the lines which have two parameters but I have not been successful in doing so. Anyone have any idea(s) to get this to work? Or is this not possible. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2010 06:06:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-number-of-fields-from-a-multi-line-event/m-p/15963#M2056</guid>
      <dc:creator>hiwell</dc:creator>
      <dc:date>2010-06-23T06:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting number of fields from a multi line event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-number-of-fields-from-a-multi-line-event/m-p/15964#M2057</link>
      <description>&lt;P&gt;You may need to break every line as an event and define two regex like:&lt;/P&gt;

&lt;P&gt;REGEX...:(\d+)\s+(\d+)
FORMAT=field1::$1 field2::$2&lt;/P&gt;

&lt;P&gt;REGEX=...:(\d+)
FORMAT=field3::$1&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2010 09:45:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-number-of-fields-from-a-multi-line-event/m-p/15964#M2057</guid>
      <dc:creator>katalinali</dc:creator>
      <dc:date>2010-06-23T09:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting number of fields from a multi line event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-number-of-fields-from-a-multi-line-event/m-p/15965#M2058</link>
      <description>&lt;P&gt;I ended up writing a script to pre-process the file to make the data Splunk-friendly.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Jun 2010 01:57:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-number-of-fields-from-a-multi-line-event/m-p/15965#M2058</guid>
      <dc:creator>hiwell</dc:creator>
      <dc:date>2010-06-26T01:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting number of fields from a multi line event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-number-of-fields-from-a-multi-line-event/m-p/15966#M2059</link>
      <description>&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; it definitely pulls out a few of the fields but its very redundant and the regexes triggers for all the events giving a lot of garbage fields. Thanks though! This could be useful for other cases&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2010 01:23:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-number-of-fields-from-a-multi-line-event/m-p/15966#M2059</guid>
      <dc:creator>hiwell</dc:creator>
      <dc:date>2010-06-30T01:23:25Z</dc:date>
    </item>
  </channel>
</rss>

