<?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 How do I extract the following fields using the rex command? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-the-following-fields-using-the-rex-command/m-p/384681#M112339</link>
    <description>&lt;P&gt;I want to extract Balance (Entered)="10008.1311701944" and Balance (Functional)="11648.1319999944"  fields from below logs&lt;/P&gt;

&lt;P&gt;Log:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;GL Test="000000", GL Test2="0000", Balance Type="Debit", Balance (Entered)="10008.1311701944", Balance (Functional)="11648.1311701944"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=test sourcetype="test" | rex field=_raw ".*\w+\s+\w+\=\"\d+\.\d+\"\s+[?\w+\s+\w+\"\d+\"\,\s+\w+]\s+\w+.*"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 14 Nov 2018 12:02:33 GMT</pubDate>
    <dc:creator>maheshsat</dc:creator>
    <dc:date>2018-11-14T12:02:33Z</dc:date>
    <item>
      <title>How do I extract the following fields using the rex command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-the-following-fields-using-the-rex-command/m-p/384681#M112339</link>
      <description>&lt;P&gt;I want to extract Balance (Entered)="10008.1311701944" and Balance (Functional)="11648.1319999944"  fields from below logs&lt;/P&gt;

&lt;P&gt;Log:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;GL Test="000000", GL Test2="0000", Balance Type="Debit", Balance (Entered)="10008.1311701944", Balance (Functional)="11648.1311701944"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=test sourcetype="test" | rex field=_raw ".*\w+\s+\w+\=\"\d+\.\d+\"\s+[?\w+\s+\w+\"\d+\"\,\s+\w+]\s+\w+.*"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Nov 2018 12:02:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-the-following-fields-using-the-rex-command/m-p/384681#M112339</guid>
      <dc:creator>maheshsat</dc:creator>
      <dc:date>2018-11-14T12:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do I extract the following fields using the rex command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-the-following-fields-using-the-rex-command/m-p/384682#M112340</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;

&lt;P&gt;How about&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your search...&amp;gt; | rex "Balance \(Entered\)=\"(?&amp;lt;balance_entered&amp;gt;[^\"]+).+Balance \(Functional\)\=\"(?&amp;lt;balance_functional&amp;gt;[^\"]+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;By the way I used the website regex101.com to debug this&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 17:34:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-the-following-fields-using-the-rex-command/m-p/384682#M112340</guid>
      <dc:creator>burwell</dc:creator>
      <dc:date>2018-11-14T17:34:19Z</dc:date>
    </item>
  </channel>
</rss>

