<?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 Help in field extraction in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-in-field-extraction/m-p/176031#M186683</link>
    <description>&lt;P&gt;I need  help in extracting the following fields from a log file:&lt;/P&gt;

&lt;P&gt;log file has the following fixed format:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2013-08-11 04:00:01:  EPS2_DATA=  2600  EPS2_INDEX=  3100  EPS2_LOB_DATA=  1000  DB= 30100
2014-04-13 04:00:00:  EPS2_DATA=33267.984375  EPS2_INDEX= 11000  EPS2_LOB_DATA= 11200  DB=67078.984375
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In the log,&lt;/P&gt;

&lt;P&gt;EPS2_DATA is field name and its field value is 2600 and 33267.984375 &lt;BR /&gt;
EPS2_INDEX is field name and its value is 3100 and 11000&lt;BR /&gt;
EPS2_LOB_DATA is field name and its value is 1000 and 11200&lt;BR /&gt;
DB is field name and its value is 30100 and 67078.984375&lt;/P&gt;

&lt;P&gt;I tried the following regular expression to extract the fields:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;EXTRACT-EPS2_DATA = [^=\n]*=(?P[^ ]+)
EXTRACT-EPS2_INDEX = (?:[^=\n]*=){2}\s+(?P[^ ]+)
EXTRACT-EPS2_LOB_DATA = (?:[^=\n]*=){3}\s+(?P[^ ]+)
EXTRACT-DB = (?:[^=\n]*=){4}(?P.+)
EXTRACT-Start_Time = ^(?P\d+\-\d+\-\d+\s+\d+:\d+:\d+:),
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But, I am unable to extract the EPS2_DATA properly because it contains an integer value and decimal value.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 17:58:07 GMT</pubDate>
    <dc:creator>pr_blr</dc:creator>
    <dc:date>2020-09-28T17:58:07Z</dc:date>
    <item>
      <title>Help in field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-in-field-extraction/m-p/176031#M186683</link>
      <description>&lt;P&gt;I need  help in extracting the following fields from a log file:&lt;/P&gt;

&lt;P&gt;log file has the following fixed format:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2013-08-11 04:00:01:  EPS2_DATA=  2600  EPS2_INDEX=  3100  EPS2_LOB_DATA=  1000  DB= 30100
2014-04-13 04:00:00:  EPS2_DATA=33267.984375  EPS2_INDEX= 11000  EPS2_LOB_DATA= 11200  DB=67078.984375
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In the log,&lt;/P&gt;

&lt;P&gt;EPS2_DATA is field name and its field value is 2600 and 33267.984375 &lt;BR /&gt;
EPS2_INDEX is field name and its value is 3100 and 11000&lt;BR /&gt;
EPS2_LOB_DATA is field name and its value is 1000 and 11200&lt;BR /&gt;
DB is field name and its value is 30100 and 67078.984375&lt;/P&gt;

&lt;P&gt;I tried the following regular expression to extract the fields:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;EXTRACT-EPS2_DATA = [^=\n]*=(?P[^ ]+)
EXTRACT-EPS2_INDEX = (?:[^=\n]*=){2}\s+(?P[^ ]+)
EXTRACT-EPS2_LOB_DATA = (?:[^=\n]*=){3}\s+(?P[^ ]+)
EXTRACT-DB = (?:[^=\n]*=){4}(?P.+)
EXTRACT-Start_Time = ^(?P\d+\-\d+\-\d+\s+\d+:\d+:\d+:),
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But, I am unable to extract the EPS2_DATA properly because it contains an integer value and decimal value.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:58:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-in-field-extraction/m-p/176031#M186683</guid>
      <dc:creator>pr_blr</dc:creator>
      <dc:date>2020-09-28T17:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help in field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-in-field-extraction/m-p/176032#M186684</link>
      <description>&lt;P&gt;use this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;EXTRACT-EPS2_DATA = [^=\n]*=\s*(?P&amp;lt;EPS2_DATA&amp;gt;[^ ]+)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Oct 2014 13:31:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-in-field-extraction/m-p/176032#M186684</guid>
      <dc:creator>kml_uvce</dc:creator>
      <dc:date>2014-10-29T13:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help in field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-in-field-extraction/m-p/176033#M186685</link>
      <description>&lt;P&gt;These seems like classic kv pair log file, isn't splunk automatically extracting these fields for you?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Oct 2014 14:11:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-in-field-extraction/m-p/176033#M186685</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-10-29T14:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help in field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-in-field-extraction/m-p/176034#M186686</link>
      <description>&lt;P&gt;Try this in your props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;EXTRACT-allfields = (?&amp;lt;Timestamp&amp;gt;(\d{4}-\d{2}-\d{2}\s\d{2}\:\d{2}\:\d{2})+)\:\s*EPS2_DATA=\s*(?&amp;lt;EPS2_DATA&amp;gt;[^ ]+)\s*EPS2_INDEX=\s*(?&amp;lt;EPS2_INDEX&amp;gt;[^ ]+)\s*EPS2_LOB_DATA= \s*(?&amp;lt;EPS2_LOB_DATA&amp;gt;[^ ]+)\s*DB=\s*(?&amp;lt;DB&amp;gt;[^ ]+)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Oct 2014 14:21:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-in-field-extraction/m-p/176034#M186686</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-10-29T14:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help in field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-in-field-extraction/m-p/176035#M186687</link>
      <description>&lt;P&gt;thanks , this is working..&lt;/P&gt;</description>
      <pubDate>Wed, 29 Oct 2014 15:02:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-in-field-extraction/m-p/176035#M186687</guid>
      <dc:creator>pr_blr</dc:creator>
      <dc:date>2014-10-29T15:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help in field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-in-field-extraction/m-p/176036#M186688</link>
      <description>&lt;P&gt;I am facing a similar issue, when using the "Interactive field extractor"&lt;/P&gt;

&lt;H2&gt;The data I want to capture is this:&lt;/H2&gt;

&lt;PRE&gt;&lt;CODE&gt;DBWaitTime.avg: 1.273037542662116   msecs
DBWaitTime.completed:   293 ops
DBWaitTime.maxActive:   1   threads
DBWaitTime.maxTime: 23  msecs
DBWaitTime.minTime: 0   msecs
DBWaitTime.time:    373 msecs
JDBC_Connection_Url.value:  jdbc:   
JDBC_Connection_Username.value: PORTLET 
LogicalConnection.value:    null    
/JDBC/Driver/CONNECTION_5/Statement [type=JDBC_Statement]
 Execute.active:    0   threads
 Execute.avg:   1.3652482269503545  msecs
 Execute.completed: 282 ops
 Execute.maxActive: 1   threads
 Execute.maxTime:   10  msecs
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;P&gt;I have tried as example values one at a time (msec or threads, or : 10, or 1.3265, but can never get the generated pattern (regex) to identify all the fields.  As an end result I want to report on the named values and their measurements.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Feb 2015 18:08:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-in-field-extraction/m-p/176036#M186688</guid>
      <dc:creator>bcarnot</dc:creator>
      <dc:date>2015-02-28T18:08:41Z</dc:date>
    </item>
  </channel>
</rss>

