<?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 can I convert a text string to a number? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-convert-a-text-string-to-a-number/m-p/418690#M120375</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;Can you try this please:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|makeresults | eval field="900 ms" | rex field=field "(?&amp;lt;field&amp;gt;\d+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Regards &lt;/P&gt;</description>
    <pubDate>Fri, 25 May 2018 13:29:10 GMT</pubDate>
    <dc:creator>TISKAR</dc:creator>
    <dc:date>2018-05-25T13:29:10Z</dc:date>
    <item>
      <title>How can I convert a text string to a number?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-convert-a-text-string-to-a-number/m-p/418688#M120373</link>
      <description>&lt;P&gt;I have a field that contains a text string representing time ("900 ms" for example - all values are in milliseconds) is there a way to extract a number, so i can find values "greater than" or "smaller than"?&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 13:06:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-convert-a-text-string-to-a-number/m-p/418688#M120373</guid>
      <dc:creator>ptur</dc:creator>
      <dc:date>2018-05-25T13:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: How can I convert a text string to a number?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-convert-a-text-string-to-a-number/m-p/418689#M120374</link>
      <description>&lt;P&gt;try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...|rex field=&amp;lt;fieldname&amp;gt; "(?&amp;lt;ms&amp;gt;\d+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;include your fieldname here&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 13:16:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-convert-a-text-string-to-a-number/m-p/418689#M120374</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-05-25T13:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: How can I convert a text string to a number?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-convert-a-text-string-to-a-number/m-p/418690#M120375</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;Can you try this please:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|makeresults | eval field="900 ms" | rex field=field "(?&amp;lt;field&amp;gt;\d+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Regards &lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 13:29:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-convert-a-text-string-to-a-number/m-p/418690#M120375</guid>
      <dc:creator>TISKAR</dc:creator>
      <dc:date>2018-05-25T13:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: How can I convert a text string to a number?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-convert-a-text-string-to-a-number/m-p/418691#M120376</link>
      <description>&lt;P&gt;thanks  !!!&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 13:33:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-convert-a-text-string-to-a-number/m-p/418691#M120376</guid>
      <dc:creator>ptur</dc:creator>
      <dc:date>2018-05-25T13:33:05Z</dc:date>
    </item>
  </channel>
</rss>

