<?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: extract number from a field and output to a table or new field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/extract-number-from-a-field-and-output-to-a-table-or-new-field/m-p/452590#M167608</link>
    <description>&lt;P&gt;If I understand your question correctly, this should get you started.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex field=field3 "Printed\s*:\s*(?&amp;lt;Printed&amp;gt;\d+)" | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 09 Sep 2018 18:03:34 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2018-09-09T18:03:34Z</dc:date>
    <item>
      <title>extract number from a field and output to a table or new field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-number-from-a-field-and-output-to-a-table-or-new-field/m-p/452589#M167607</link>
      <description>&lt;P&gt;i am trying to extract the Printed number value from the below string deriving from field3 and out put to a table or new field known as 'Printed'&lt;/P&gt;

&lt;H1&gt;Summary:&lt;/H1&gt;

&lt;P&gt;Selected:   : 001558&lt;BR /&gt;
Deceased    : 000003&lt;BR /&gt;
GoneAway    : 000007&lt;BR /&gt;
Suspended   : 000023&lt;BR /&gt;
Sent2Print  : 001527&lt;BR /&gt;
=====   : ===&lt;BR /&gt;
Printed     : 001527&lt;BR /&gt;
=====   : ===&lt;/P&gt;</description>
      <pubDate>Sun, 09 Sep 2018 14:11:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-number-from-a-field-and-output-to-a-table-or-new-field/m-p/452589#M167607</guid>
      <dc:creator>bablucho</dc:creator>
      <dc:date>2018-09-09T14:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: extract number from a field and output to a table or new field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-number-from-a-field-and-output-to-a-table-or-new-field/m-p/452590#M167608</link>
      <description>&lt;P&gt;If I understand your question correctly, this should get you started.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex field=field3 "Printed\s*:\s*(?&amp;lt;Printed&amp;gt;\d+)" | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 09 Sep 2018 18:03:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-number-from-a-field-and-output-to-a-table-or-new-field/m-p/452590#M167608</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2018-09-09T18:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: extract number from a field and output to a table or new field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-number-from-a-field-and-output-to-a-table-or-new-field/m-p/452591#M167609</link>
      <description>&lt;P&gt;This should auto-extract at searchtime. If not then try adding this to your search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=field3 Printed\s\:\s(?&amp;lt;Printed&amp;gt;\d+)
| table Printed
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 09 Sep 2018 18:20:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-number-from-a-field-and-output-to-a-table-or-new-field/m-p/452591#M167609</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2018-09-09T18:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: extract number from a field and output to a table or new field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-number-from-a-field-and-output-to-a-table-or-new-field/m-p/452592#M167610</link>
      <description>&lt;P&gt;actually its not in a field 3...&lt;BR /&gt;
the below is an extract from an event. when I try to manually extract it does not show the full event past line 18 so I thought maybe a regex will be able to pull the data 'Printed: &amp;lt;001527&amp;gt; &lt;BR /&gt;
Selected: : 001558&lt;BR /&gt;
Deceased : 000003&lt;BR /&gt;
GoneAway : 000007&lt;BR /&gt;
Suspended : 000023&lt;BR /&gt;
Sent2Print : 001527&lt;BR /&gt;
===== : ===&lt;BR /&gt;
Printed : 001527&lt;BR /&gt;
===== : ===&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 15:33:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-number-from-a-field-and-output-to-a-table-or-new-field/m-p/452592#M167610</guid>
      <dc:creator>bablucho</dc:creator>
      <dc:date>2018-09-20T15:33:09Z</dc:date>
    </item>
  </channel>
</rss>

