<?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: regex help text and numeric value in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/regex-help-text-and-numeric-value/m-p/145457#M185173</link>
    <description>&lt;P&gt;Please explain in more depth, as I'm not totally sure what the equal to 1 or greater than 1 means?  &lt;/P&gt;

&lt;P&gt;I think the solution could be a simple search with an IF statement? Just an idea, if you put some more depth in, with what you want, and an example, I'll be able to help.&lt;/P&gt;</description>
    <pubDate>Tue, 30 Sep 2014 12:09:41 GMT</pubDate>
    <dc:creator>markthompson</dc:creator>
    <dc:date>2014-09-30T12:09:41Z</dc:date>
    <item>
      <title>regex help text and numeric value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-help-text-and-numeric-value/m-p/145456#M185172</link>
      <description>&lt;P&gt;Hi, I have a following text coming in splunk&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;abcd, 2000-01-10 10:40:43, P:welcome, welcome_to_all, 0, 2000-01-10 16:09:04
abcd, 2000-01-10 10:40:45, P:welcome, welcome_to_all, 1, 2000-01-10 16:10:04
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to write a search which will get me only having text "welcome_to_all" and the next field should be greater than or equal to 1.&lt;/P&gt;

&lt;P&gt;I am able to write the regex but &lt;CODE&gt;regex _raw="(welcome_to_all,\d{0})"&lt;/CODE&gt; but not sure how to get the greater than 1. The regex which I wrote is pulling all 0 but I need which are greater than 0.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:44:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-help-text-and-numeric-value/m-p/145456#M185172</guid>
      <dc:creator>dbashyam</dc:creator>
      <dc:date>2020-09-28T17:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: regex help text and numeric value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-help-text-and-numeric-value/m-p/145457#M185173</link>
      <description>&lt;P&gt;Please explain in more depth, as I'm not totally sure what the equal to 1 or greater than 1 means?  &lt;/P&gt;

&lt;P&gt;I think the solution could be a simple search with an IF statement? Just an idea, if you put some more depth in, with what you want, and an example, I'll be able to help.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2014 12:09:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-help-text-and-numeric-value/m-p/145457#M185173</guid>
      <dc:creator>markthompson</dc:creator>
      <dc:date>2014-09-30T12:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: regex help text and numeric value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-help-text-and-numeric-value/m-p/145458#M185174</link>
      <description>&lt;P&gt;I think you were close.  Try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex "welcome_to_all,\s[^0]"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Sep 2014 12:28:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-help-text-and-numeric-value/m-p/145458#M185174</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2014-09-30T12:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: regex help text and numeric value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-help-text-and-numeric-value/m-p/145459#M185175</link>
      <description>&lt;P&gt;Hi, thanks for your responses.  Let me elaborate.  The values that comes after the string "welcome_to_all" is a string and what "richgalloway" said is correct it helps me resolve my issue, but I have another question, &lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;How do I find if its greater than 100, I want to get the strings which are having greater than 100 or more?&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;With the current rex "welcome_to_all,\s[100]" I will be getting only value 100 but if I want to get values like '0', and above 100 what should I do?&lt;/P&gt;

&lt;P&gt;abcd, 2000-01-10 10:40:43, P:welcome, welcome_to_all, 0, 2000-01-10 16:09:04&lt;BR /&gt;
 abcd, 2000-01-10 10:40:45, P:welcome, welcome_to_all, 1, 2000-01-10 16:10:04&lt;/P&gt;

&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:45:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-help-text-and-numeric-value/m-p/145459#M185175</guid>
      <dc:creator>dbashyam</dc:creator>
      <dc:date>2020-09-28T17:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: regex help text and numeric value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-help-text-and-numeric-value/m-p/145460#M185176</link>
      <description>&lt;P&gt;I think you can use &lt;CODE&gt;welcome_to_all,s[0,100+]&lt;/CODE&gt;  not totally sure if this is true, you might also be able to use &amp;gt;100 in your rex statement.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2014 07:53:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-help-text-and-numeric-value/m-p/145460#M185176</guid>
      <dc:creator>markthompson</dc:creator>
      <dc:date>2014-10-01T07:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: regex help text and numeric value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-help-text-and-numeric-value/m-p/145461#M185177</link>
      <description>&lt;P&gt;Hi dbashyam,&lt;/P&gt;

&lt;P&gt;try something like this: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex "all,\s[0],{1}|all,\s1\d{2},"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;this will match &lt;CODE&gt;0&lt;/CODE&gt; or &lt;CODE&gt;100-199&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2014 08:08:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-help-text-and-numeric-value/m-p/145461#M185177</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-10-01T08:08:02Z</dc:date>
    </item>
  </channel>
</rss>

