<?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 values greater than 90 days in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-values-greater-than-90-days/m-p/640548#M221940</link>
    <description>&lt;P&gt;Hey &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So thats what i originally had in my search however it only resulted in a single device with value of 96.&lt;BR /&gt;&lt;BR /&gt;where as there are 9 devices with a higher than 90 value.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Apr 2023 09:22:58 GMT</pubDate>
    <dc:creator>willsy</dc:creator>
    <dc:date>2023-04-19T09:22:58Z</dc:date>
    <item>
      <title>How to search for values greater than 90 days?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-values-greater-than-90-days/m-p/640533#M221938</link>
      <description>&lt;P&gt;index=test sourcetype=csv source=prtg.csv host=prtg device=all "Down for"=*&lt;BR /&gt;| rename "Down for" AS Downtime&lt;BR /&gt;| eval "Downtime"=replace('Downtime',"d","")&lt;BR /&gt;| dedup _raw&lt;BR /&gt;| table Device, Downtime&lt;BR /&gt;&lt;BR /&gt;Is there a way to only show any devices with a downtime greater than 90 in that table?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 21:21:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-values-greater-than-90-days/m-p/640533#M221938</guid>
      <dc:creator>willsy</dc:creator>
      <dc:date>2023-04-19T21:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for values greater than 90 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-values-greater-than-90-days/m-p/640536#M221939</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/152686"&gt;@willsy&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;which is the time format of Downtime?&lt;/P&gt;&lt;P&gt;define the threshold in the same time unit and then use the where command to make a filter,&amp;nbsp;&lt;/P&gt;&lt;P&gt;so e.g. Downtime is expressed in days, you can use&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where Downtime&amp;gt;90&lt;/LI-CODE&gt;&lt;P&gt;if it's expressed in seconds, you can use:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where Downtime&amp;gt;7776000&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 08:39:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-values-greater-than-90-days/m-p/640536#M221939</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-04-19T08:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for values greater than 90 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-values-greater-than-90-days/m-p/640548#M221940</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So thats what i originally had in my search however it only resulted in a single device with value of 96.&lt;BR /&gt;&lt;BR /&gt;where as there are 9 devices with a higher than 90 value.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 09:22:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-values-greater-than-90-days/m-p/640548#M221940</guid>
      <dc:creator>willsy</dc:creator>
      <dc:date>2023-04-19T09:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for values greater than 90 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-values-greater-than-90-days/m-p/640549#M221941</link>
      <description>&lt;P&gt;Also just to add,&lt;BR /&gt;&lt;BR /&gt;When i add&lt;BR /&gt;| where Downtime&amp;gt;90&lt;BR /&gt;&lt;BR /&gt;i get the error&lt;BR /&gt;&lt;BR /&gt;Error in "where" command: Type checking failed. the '&amp;gt;' operator received different types&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 09:25:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-values-greater-than-90-days/m-p/640549#M221941</guid>
      <dc:creator>willsy</dc:creator>
      <dc:date>2023-04-19T09:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for values greater than 90 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-values-greater-than-90-days/m-p/640552#M221942</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/152686"&gt;@willsy&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;see what you have in the Downtime field, maybe there are different formats values: e.g. sometime 10, and sometimes 10d.&lt;/P&gt;&lt;P&gt;identify the different choices and extract the numers using a regex.&lt;/P&gt;&lt;P&gt;If you share some samples containing all the choices, I could help you.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 09:53:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-values-greater-than-90-days/m-p/640552#M221942</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-04-19T09:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for values greater than 90 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-values-greater-than-90-days/m-p/640553#M221943</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;thank you for getting back to me so fast,&lt;BR /&gt;&lt;BR /&gt;i have various formats of,&lt;BR /&gt;&lt;BR /&gt;54 d&lt;BR /&gt;125 d&lt;BR /&gt;12 h 2 m&lt;BR /&gt;4 d 4 d 29 m&lt;BR /&gt;&lt;BR /&gt;I do have a raw value for the time though that i can use, that is under epoch times.&lt;BR /&gt;&lt;BR /&gt;"Down for_RAW"&lt;BR /&gt;0000000016415216&lt;BR /&gt;0000000000141890&lt;BR /&gt;0000000000067157&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 09:59:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-values-greater-than-90-days/m-p/640553#M221943</guid>
      <dc:creator>willsy</dc:creator>
      <dc:date>2023-04-19T09:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for values greater than 90 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-values-greater-than-90-days/m-p/640558#M221944</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/152686"&gt;@willsy&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;let me understand do you have values like "54 d" or value in epochtime, or both?&lt;/P&gt;&lt;P&gt;if of the first type, you can use a regex like the following to extract days:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "(?&amp;lt;downtime_days&amp;gt;\d*)\s+d"&lt;/LI-CODE&gt;&lt;P&gt;if of the second type, you can use eval and divide for the number of seconds in a day:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval downtime_days=your_field/86400&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 10:10:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-values-greater-than-90-days/m-p/640558#M221944</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-04-19T10:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for values greater than 90 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-values-greater-than-90-days/m-p/640560#M221945</link>
      <description>&lt;P&gt;Absolute scholar and a gent.&lt;BR /&gt;&lt;BR /&gt;thank you so very much.&lt;BR /&gt;&lt;BR /&gt;i used the&lt;BR /&gt;| eval downtime_days=Downtime/86400&lt;BR /&gt;&lt;BR /&gt;seems super simle now i can see it but i couldnt get my head round it, thanks you so very much.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 10:18:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-values-greater-than-90-days/m-p/640560#M221945</guid>
      <dc:creator>willsy</dc:creator>
      <dc:date>2023-04-19T10:18:23Z</dc:date>
    </item>
  </channel>
</rss>

