<?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 to find a word in a string and validate numeric value (followed by a %) is above 80% in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/regex-to-find-a-word-in-a-string-and-validate-numeric-value/m-p/582634#M202923</link>
    <description>&lt;P&gt;Hi ITWhisperer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for getting back.&lt;/P&gt;&lt;P&gt;the one you posted, does not seem to work. it seems to be looking expecifically 89% only.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when i expanded your search to&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.* Disk.*[0-9][0-9]|\d{2,}\%&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it picks up the correct one, but it also ignores everything else. if it finds any records matching 0-9+0-9+% it will show up.&lt;/P&gt;&lt;P&gt;example events: all events with underline is captuerd on above search &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;40%&lt;/U&gt;&lt;BR /&gt;&lt;U&gt;18%&lt;/U&gt;&lt;BR /&gt;&lt;U&gt;66%&lt;/U&gt;&lt;BR /&gt;&lt;U&gt;CPU load 40%&lt;/U&gt;&lt;BR /&gt;&lt;U&gt;cPu 40%&lt;/U&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;U&gt;Logging Disk Usage 14%&lt;/U&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;U&gt;Logging Disk Usage 64%&lt;/U&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;U&gt;Logging Disk Usage 89%&lt;/U&gt;&lt;/STRONG&gt;&lt;BR /&gt;Logging Disk Usage 4%&lt;/P&gt;&lt;P&gt;i want to only show the one in bold.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jan 2022 23:31:31 GMT</pubDate>
    <dc:creator>thaghost99</dc:creator>
    <dc:date>2022-01-26T23:31:31Z</dc:date>
    <item>
      <title>regex to find a word in a string and validate numeric value (followed by a %) is above 80%</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-to-find-a-word-in-a-string-and-validate-numeric-value/m-p/582622#M202921</link>
      <description>&lt;P&gt;i would like to find a query where it is looking for the word 'DISK' &amp;amp;&amp;nbsp; ##% is above a certain percentage.&lt;/P&gt;&lt;P&gt;i have the following but does not seem to work.&lt;/P&gt;&lt;P&gt;(\N*Disk\D*)([0-9][0-9]|\d{2,})\%&lt;/P&gt;&lt;P&gt;so from the example below. i should only be left with "Logging Disk Usage 85%"&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;CPU 99%&lt;/P&gt;&lt;P&gt;Logging Disk Usage 85%&lt;/P&gt;&lt;P&gt;/VAR log&amp;nbsp; 87%&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 22:09:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-to-find-a-word-in-a-string-and-validate-numeric-value/m-p/582622#M202921</guid>
      <dc:creator>thaghost99</dc:creator>
      <dc:date>2022-01-26T22:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: regex to find a word in a string and validate numeric value (followed by a %) is above 80%</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-to-find-a-word-in-a-string-and-validate-numeric-value/m-p/582630#M202922</link>
      <description>&lt;P&gt;Does this work for you?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;.* Disk.*[8,9]\d\%&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 26 Jan 2022 23:13:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-to-find-a-word-in-a-string-and-validate-numeric-value/m-p/582630#M202922</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-01-26T23:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: regex to find a word in a string and validate numeric value (followed by a %) is above 80%</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-to-find-a-word-in-a-string-and-validate-numeric-value/m-p/582634#M202923</link>
      <description>&lt;P&gt;Hi ITWhisperer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for getting back.&lt;/P&gt;&lt;P&gt;the one you posted, does not seem to work. it seems to be looking expecifically 89% only.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when i expanded your search to&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.* Disk.*[0-9][0-9]|\d{2,}\%&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it picks up the correct one, but it also ignores everything else. if it finds any records matching 0-9+0-9+% it will show up.&lt;/P&gt;&lt;P&gt;example events: all events with underline is captuerd on above search &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;40%&lt;/U&gt;&lt;BR /&gt;&lt;U&gt;18%&lt;/U&gt;&lt;BR /&gt;&lt;U&gt;66%&lt;/U&gt;&lt;BR /&gt;&lt;U&gt;CPU load 40%&lt;/U&gt;&lt;BR /&gt;&lt;U&gt;cPu 40%&lt;/U&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;U&gt;Logging Disk Usage 14%&lt;/U&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;U&gt;Logging Disk Usage 64%&lt;/U&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;U&gt;Logging Disk Usage 89%&lt;/U&gt;&lt;/STRONG&gt;&lt;BR /&gt;Logging Disk Usage 4%&lt;/P&gt;&lt;P&gt;i want to only show the one in bold.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 23:31:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-to-find-a-word-in-a-string-and-validate-numeric-value/m-p/582634#M202923</guid>
      <dc:creator>thaghost99</dc:creator>
      <dc:date>2022-01-26T23:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: regex to find a word in a string and validate numeric value (followed by a %) is above 80%</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-to-find-a-word-in-a-string-and-validate-numeric-value/m-p/582637#M202926</link>
      <description>&lt;P&gt;Try this. Accounts for 80-100%.&lt;/P&gt;&lt;P&gt;.*Disk\sUsage\s(([8-9]\d+)|100)\%&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 01:04:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-to-find-a-word-in-a-string-and-validate-numeric-value/m-p/582637#M202926</guid>
      <dc:creator>johnhuang</dc:creator>
      <dc:date>2022-01-27T01:04:56Z</dc:date>
    </item>
  </channel>
</rss>

