<?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 How to convert time  secs into HH:MM format? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-time-secs-into-HH-MM-format/m-p/625823#M217526</link>
    <description>&lt;P&gt;Hai All,&lt;/P&gt;
&lt;P&gt;from the below search&amp;nbsp; how to convert secs to HH:MM format&amp;nbsp;&lt;/P&gt;
&lt;P&gt;age fields is getting time in secs&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;index=_internal source=*metrics.log group=tcpin_connections earliest=-2d@d&lt;BR /&gt;| eval Host=coalesce(hostname, sourceHost)&lt;BR /&gt;| eval age = (now() - _time )&lt;BR /&gt;| stats min(age) as age, max(_time) as LastTime by Host&lt;BR /&gt;| convert ctime(LastTime) as "Last Active On"&lt;BR /&gt;| eval Status= case(age &amp;lt; 1800,"Running",age &amp;gt; 1800,"DOWN") | rename age as Age&lt;BR /&gt;| sort Status | table Host, Status, Age,"Last Active On"&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jan 2023 16:19:30 GMT</pubDate>
    <dc:creator>sekhar463</dc:creator>
    <dc:date>2023-01-04T16:19:30Z</dc:date>
    <item>
      <title>How to convert time  secs into HH:MM format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-time-secs-into-HH-MM-format/m-p/625823#M217526</link>
      <description>&lt;P&gt;Hai All,&lt;/P&gt;
&lt;P&gt;from the below search&amp;nbsp; how to convert secs to HH:MM format&amp;nbsp;&lt;/P&gt;
&lt;P&gt;age fields is getting time in secs&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;index=_internal source=*metrics.log group=tcpin_connections earliest=-2d@d&lt;BR /&gt;| eval Host=coalesce(hostname, sourceHost)&lt;BR /&gt;| eval age = (now() - _time )&lt;BR /&gt;| stats min(age) as age, max(_time) as LastTime by Host&lt;BR /&gt;| convert ctime(LastTime) as "Last Active On"&lt;BR /&gt;| eval Status= case(age &amp;lt; 1800,"Running",age &amp;gt; 1800,"DOWN") | rename age as Age&lt;BR /&gt;| sort Status | table Host, Status, Age,"Last Active On"&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 16:19:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-time-secs-into-HH-MM-format/m-p/625823#M217526</guid>
      <dc:creator>sekhar463</dc:creator>
      <dc:date>2023-01-04T16:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert time  secs into HH:MM format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-time-secs-into-HH-MM-format/m-p/625827#M217529</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244375"&gt;@sekhar463&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you can use eval tostring:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_internal source=*metrics.log group=tcpin_connections earliest=-2d@d
| eval Host=coalesce(hostname, sourceHost)
| eval age=(now()-_time)
| stats 
   min(age) AS age 
   max(_time) AS LastTime 
   BY Host
| convert ctime(LastTime) AS "Last Active On"
| eval Status=if(age&amp;lt; 1800,"Running","DOWN") 
| rename age AS Age
| eval Age=tostring(Age,"duration")
| sort Status 
| table Host Status Age "Last Active On"&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 14:53:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-time-secs-into-HH-MM-format/m-p/625827#M217529</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-01-04T14:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert time  secs into HH:MM format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-time-secs-into-HH-MM-format/m-p/626169#M217640</link>
      <description>&lt;P&gt;Hi Thanks,&lt;/P&gt;&lt;P&gt;this query i am using for to get UF status&amp;nbsp;&lt;/P&gt;&lt;P&gt;but query taking long time if i am trying to filter status =DOWN&amp;nbsp;&lt;/P&gt;&lt;P&gt;how we can modify this search fasten this query or how we can take time frame to get results&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 13:11:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-time-secs-into-HH-MM-format/m-p/626169#M217640</guid>
      <dc:creator>sekhar463</dc:creator>
      <dc:date>2023-01-06T13:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert time  secs into HH:MM format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-time-secs-into-HH-MM-format/m-p/626292#M217680</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244375"&gt;@sekhar463&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if your search is slow there could be two issues:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;very many data,&lt;/LI&gt;&lt;LI&gt;you're using a slow storage.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;for the first issue, you can accelerate your search in many ways, e.g. using a summary index.&lt;/P&gt;&lt;P&gt;For the second issue, remember that storage is the bottleneck of each Splunk system, and Splunk requires at least 800 (better 1200) IOPS for Hot and Warm Buckets, so the only solution is to use a faster storage.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 07 Jan 2023 10:13:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-time-secs-into-HH-MM-format/m-p/626292#M217680</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-01-07T10:13:36Z</dc:date>
    </item>
  </channel>
</rss>

