<?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 search for fields that contains number in the form of a string in DevOps &amp; Observability</title>
    <link>https://community.splunk.com/t5/DevOps-Observability/How-to-search-for-fields-that-contains-number-in-the-form-of-a/m-p/523417#M22</link>
    <description>&lt;LI-CODE lang="markup"&gt;host="xyz-*" 
| regex _raw="retry\s\d+"&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 07 Oct 2020 12:35:49 GMT</pubDate>
    <dc:creator>thambisetty</dc:creator>
    <dc:date>2020-10-07T12:35:49Z</dc:date>
    <item>
      <title>How to search for fields that contains number in the form of a string</title>
      <link>https://community.splunk.com/t5/DevOps-Observability/How-to-search-for-fields-that-contains-number-in-the-form-of-a/m-p/523399#M19</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I'm trying to form a query for searching only specific fields, wherein there are numbers after a specific piece of text. To provide an example, I am currently using the following query:&lt;/P&gt;&lt;P&gt;host="xyz-*" apple "retry *"&lt;/P&gt;&lt;P&gt;I have to find specific entries that have this in their result: "retry 1" or "retry 2" or "retry 3" etc. up to I don't know how many retries.&lt;/P&gt;&lt;P&gt;But the problem that I'm facing is that the above query is also displaying results which have "retry banana", "retry mango" etc. too.&lt;/P&gt;&lt;P&gt;Can someone help me please?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2020 11:36:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/DevOps-Observability/How-to-search-for-fields-that-contains-number-in-the-form-of-a/m-p/523399#M19</guid>
      <dc:creator>namanbharti9</dc:creator>
      <dc:date>2020-10-07T11:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for fields that contains number in the form of a string</title>
      <link>https://community.splunk.com/t5/DevOps-Observability/How-to-search-for-fields-that-contains-number-in-the-form-of-a/m-p/523401#M20</link>
      <description>&lt;P&gt;is that retry assigned to some field?&lt;/P&gt;&lt;P&gt;for example, if value retry 1 or retry 2 are assigned to field "retry" then you can use regex&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;host="xyz-*" apple 
| regex retry="retry\s\d+"&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 07 Oct 2020 11:43:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/DevOps-Observability/How-to-search-for-fields-that-contains-number-in-the-form-of-a/m-p/523401#M20</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-10-07T11:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for fields that contains number in the form of a string</title>
      <link>https://community.splunk.com/t5/DevOps-Observability/How-to-search-for-fields-that-contains-number-in-the-form-of-a/m-p/523402#M21</link>
      <description>&lt;P&gt;Thanks for the reply, &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/129407"&gt;@thambisetty&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;Unfortunately, it is not assigned to a field but is just a value in the search. Anyway, I have been able to get past this issue by leveraging some "(" brackets that were included in the search.&lt;/P&gt;&lt;P&gt;However, I have one more question.&lt;/P&gt;&lt;P&gt;I am trying to see results that contain anything but "retry 1". So I thought something along the lines of this:&lt;/P&gt;&lt;P&gt;host="xyz-*" apple "(retry *)" !"(retry 1)"&lt;/P&gt;&lt;P&gt;But as you would have guessed, it doesn't work.&lt;/P&gt;&lt;P&gt;How can I see all results which include "retry 2", "retry 3" and so on except "retry 1"?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2020 11:49:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/DevOps-Observability/How-to-search-for-fields-that-contains-number-in-the-form-of-a/m-p/523402#M21</guid>
      <dc:creator>namanbharti9</dc:creator>
      <dc:date>2020-10-07T11:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for fields that contains number in the form of a string</title>
      <link>https://community.splunk.com/t5/DevOps-Observability/How-to-search-for-fields-that-contains-number-in-the-form-of-a/m-p/523417#M22</link>
      <description>&lt;LI-CODE lang="markup"&gt;host="xyz-*" 
| regex _raw="retry\s\d+"&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 07 Oct 2020 12:35:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/DevOps-Observability/How-to-search-for-fields-that-contains-number-in-the-form-of-a/m-p/523417#M22</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-10-07T12:35:49Z</dc:date>
    </item>
  </channel>
</rss>

