<?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: How to extract values from within a field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-values-from-within-a-field/m-p/339625#M100730</link>
    <description>&lt;P&gt;You should be able to use a regular expression to pull out the number of input records and number of records posted.  Then make a table from them. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval log="2018-04-16 11:33:09 INFO  Report:46 - Number of Records read from Input File [10000] , number of records Posted [10000] to topic " 
| rex field=log "Number of Records read from Input File \[(?&amp;lt;InputRecords&amp;gt;.*?)\] , number of records Posted \[(?&amp;lt;PostedRecords&amp;gt;.*?)\] to topic" 
| rename InputRecords as "Number of Input Records" PostedRecords as "Number of Records Posted" 
| table "Number of Input Records" "Number of Records Posted"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 17 Apr 2018 16:52:01 GMT</pubDate>
    <dc:creator>kmaron</dc:creator>
    <dc:date>2018-04-17T16:52:01Z</dc:date>
    <item>
      <title>How to extract values from within a field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-values-from-within-a-field/m-p/339624#M100729</link>
      <description>&lt;P&gt;I have events of the following format:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; {  [-]      
         log:    2018-04-16 11:33:09 INFO  Report:46 - Number of Records read from Input File [10000] , number of records Posted [10000] to topic [completed.processing]
     stream:     stdout 

 time:   2018-04-16T16:33:09.36532399Z  

} }
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Log is an extracted field and I want to extract the values "Number of records read from Input file and number of records posted" from within the field log and display it as a table of the following format:&lt;BR /&gt;
Number of Input Records .             Number of records posted&lt;BR /&gt;
10000                                                  10000&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 15:02:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-values-from-within-a-field/m-p/339624#M100729</guid>
      <dc:creator>nitz13</dc:creator>
      <dc:date>2018-04-17T15:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract values from within a field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-values-from-within-a-field/m-p/339625#M100730</link>
      <description>&lt;P&gt;You should be able to use a regular expression to pull out the number of input records and number of records posted.  Then make a table from them. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval log="2018-04-16 11:33:09 INFO  Report:46 - Number of Records read from Input File [10000] , number of records Posted [10000] to topic " 
| rex field=log "Number of Records read from Input File \[(?&amp;lt;InputRecords&amp;gt;.*?)\] , number of records Posted \[(?&amp;lt;PostedRecords&amp;gt;.*?)\] to topic" 
| rename InputRecords as "Number of Input Records" PostedRecords as "Number of Records Posted" 
| table "Number of Input Records" "Number of Records Posted"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Apr 2018 16:52:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-values-from-within-a-field/m-p/339625#M100730</guid>
      <dc:creator>kmaron</dc:creator>
      <dc:date>2018-04-17T16:52:01Z</dc:date>
    </item>
  </channel>
</rss>

