<?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: Return string of numbers after equals sign in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Return-string-of-numbers-after-equals-sign/m-p/70594#M17678</link>
    <description>&lt;P&gt;Sorry, I forgot that part.  I was using (?=Free Memory KB=)[0-9]+\b&lt;/P&gt;

&lt;P&gt;I guess the lookahead method didn't work as the other reply did work for me.&lt;/P&gt;

&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
    <pubDate>Mon, 23 Sep 2013 20:41:43 GMT</pubDate>
    <dc:creator>AlexMcDuffMille</dc:creator>
    <dc:date>2013-09-23T20:41:43Z</dc:date>
    <item>
      <title>Return string of numbers after equals sign</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Return-string-of-numbers-after-equals-sign/m-p/70591#M17675</link>
      <description>&lt;P&gt;I'm trying to create a regex so that I can pull a string of numbers out of a log file.&lt;BR /&gt;&lt;BR /&gt;
I can limit my search so that only the specific log files appear, but when I do the interactive field extraction other files show up for some reason...&lt;/P&gt;

&lt;P&gt;I have a log file that says "DataX Entry GB= 5123521 Data Entry GB=1265649"&lt;/P&gt;

&lt;P&gt;I would like a field in Splunk that just has "1265649" in it for each log entry.  Sometimes the number will be more or less digits.  I tried making a regex that simply returned a string of numbers after "Data Entry GB=", but that didn't work.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2013 19:26:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Return-string-of-numbers-after-equals-sign/m-p/70591#M17675</guid>
      <dc:creator>AlexMcDuffMille</dc:creator>
      <dc:date>2013-09-23T19:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Return string of numbers after equals sign</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Return-string-of-numbers-after-equals-sign/m-p/70592#M17676</link>
      <description>&lt;P&gt;Can you post the regular expression you tried? Saying that it "didn't work" is rather open-ended. Note that the markup here will require you to double all of your \ (as in \d, etc).&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2013 19:42:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Return-string-of-numbers-after-equals-sign/m-p/70592#M17676</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2013-09-23T19:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Return string of numbers after equals sign</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Return-string-of-numbers-after-equals-sign/m-p/70593#M17677</link>
      <description>&lt;P&gt;Could you use the &lt;EM&gt;rex&lt;/EM&gt; command to extract these?  Here's an example that pulls out the two GB values in fields named &lt;EM&gt;DataXGB&lt;/EM&gt; and &lt;EM&gt;DataGB&lt;/EM&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;first part of your search&amp;gt; | rex "DataX Entry GB=(?&amp;lt;DataXGB&amp;gt;\d+) Data Entry GB=(?&amp;lt;DataGB&amp;gt;\d+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Note that the &lt;EM&gt;rex&lt;/EM&gt; command is working over the &lt;EM&gt;_raw&lt;/EM&gt; field by default...so you might need to adjust the regex a bit if your data doesn't appear exactly in &lt;EM&gt;_raw&lt;/EM&gt; like in your question.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2013 19:44:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Return-string-of-numbers-after-equals-sign/m-p/70593#M17677</guid>
      <dc:creator>jhupka</dc:creator>
      <dc:date>2013-09-23T19:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Return string of numbers after equals sign</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Return-string-of-numbers-after-equals-sign/m-p/70594#M17678</link>
      <description>&lt;P&gt;Sorry, I forgot that part.  I was using (?=Free Memory KB=)[0-9]+\b&lt;/P&gt;

&lt;P&gt;I guess the lookahead method didn't work as the other reply did work for me.&lt;/P&gt;

&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2013 20:41:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Return-string-of-numbers-after-equals-sign/m-p/70594#M17678</guid>
      <dc:creator>AlexMcDuffMille</dc:creator>
      <dc:date>2013-09-23T20:41:43Z</dc:date>
    </item>
  </channel>
</rss>

