<?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: Time conversion from milliseconds to break down to days hours minutes seconds in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Time-conversion-from-milliseconds-to-break-down-to-days-hours/m-p/499950#M139250</link>
    <description>&lt;P&gt;See updated answer.  Don't forget to &lt;CODE&gt;UpVote&lt;/CODE&gt; and click &lt;CODE&gt;Accept&lt;/CODE&gt; to close the question.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Oct 2019 20:11:37 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-10-16T20:11:37Z</dc:date>
    <item>
      <title>Time conversion from milliseconds to break down to days hours minutes seconds</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-conversion-from-milliseconds-to-break-down-to-days-hours/m-p/499933#M139233</link>
      <description>&lt;P&gt;I have been working on a search that gives a duration breakdown. &lt;/P&gt;

&lt;P&gt;I am trying to achieve:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;thehost  theip          c_time                     clean_date            tap                    whocares                     diff
vex          127.0.0.1  10/9/2019 10:02    7/2/2018 4:59    1.0.0.127   recluse                          2s  
hive             127.0.0.2  10/10/2019 10:02       7/3/2018 4:59    1.0.0.128   lunas howl                   13s  
fallen   127.0.0.3  10/11/2019 10:02       7/4/2018 4:59    1.0.0.129   not forgotten            2m 24s  
cabal    127.0.0.4  10/12/2019 10:02       7/5/2018 4:59    1.0.0.130   wendigo                          28m 48s  
scorn    127.0.0.5  10/13/2019 10:02       7/6/2018 4:59    1.0.0.131   redricks broadsword  5h 45m 36s  
taken    127.0.0.6  10/14/2019 10:02       7/7/2018 4:59    1.0.0.132   randys throwing knife    2d 21h 7m 12s  
guardian 127.0.0.7  10/15/2019 10:02       7/8/2018 4:59    1.0.0.133   thousand voices          34d 13h 26m 24s  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What I am getting:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;thehost theip            c_time                   clean_date             tap                    whocares                     diff
vex          127.0.0.1  10/9/2019 10:02  7/2/2018 4:59  1.0.0.127   recluse                          11140.66139
hive             127.0.0.2  10/10/2019 10:02     7/3/2018 4:59  1.0.0.128   lunas howl                   9926.056944
fallen   127.0.0.3  10/11/2019 10:02     7/4/2018 4:59  1.0.0.129   not forgotten            101.1680556
cabal    127.0.0.4  10/12/2019 10:02     7/5/2018 4:59  1.0.0.130   wendigo                          3995.172778
scorn    127.0.0.5  10/13/2019 10:02     7/6/2018 4:59  1.0.0.131   redricks broadsword  767.7697222
taken    127.0.0.6  10/14/2019 10:02     7/7/2018 4:59  1.0.0.132   randys throwing knife    2113.435278
guardian 127.0.0.7  10/15/2019 10:02     7/8/2018 4:59  1.0.0.133   thousand voices          4890.476667
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am getting a final tally of total hour down.  Below is the search I am using. Any help would be appreciated.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;1. index=net*  Inactive NIC
2. | rex field=_raw "^[^ \n]* (?P[^ ]+)"
3. | rex field=_raw "^(?:[^ \n]* ){2}(?P[^ ]+)"
4. | rex field=_raw "(?\s)"
5. | rex field=_raw "[#]\d{3}(?\d\s+\w{8}\s\d+\S\d+\S\d+\s\d+\S\d+\S\d+(\S\d)?\s+(\d+\S\d+\S\d+\S\d+)?)" max_match=0
6. | rex field=_raw "[#]\d{3}(?\w+\S\w{13}\S\w{3}\s+\w{8}\s\d+\S\d+\S\d+\s\d+\S\d+\S\d+(\S\d)?\s+(\d+\S\d+\S\d+\S\d+)?)" max_match=0
7. | rex field=_raw "[#]\d{3}(?\d+\S\d+\S\d+\S\d+\S*\w*\s+\w*\s*\w{8}\s\d+\S\d+\S\d+\s\d+\S\d+\S\d+(\S\d)?\s+(\d+\S\d+\S\d+\S\d+)?)" max_match=0
8. | mvexpand Alert
9. | rex field=Alert "(?P\d)\s+(?\w{8}\s(?\d+)\S(?\d+)\S(?\d+)\s(?\d+)\S(?\d+)\S(?\d+)(\S\d)?)\s+(?\d+\S\d+\S\d+\S\d+)?"
10. | rex field=Alert "(?P\w+\S\w{13}\S\w{3})\s+(?\w{8}\s(?\d+)\S(?\d+)\S(?\d+)\s(?\d+)\S(?\d+)\S(?\d+)(\S\d)?)\s+(?\d+\S\d+\S\d+\S\d+)?"
11. | rex field=Alert "(?P\d+\S\d+\S\d+\S\d+)\S*\w*\s+\w*\s*(?\w{8}\s(?\d+)\S(?\d+)\S(?\d+)\s(?\d+)\S(?\d+)\S(?\d+)(\S\d)?)\s+(?\d+\S\d+\S\d+\S\d+)?"
12. | lookup dnslookup clientip as theip OUTPUT clienthost as whocares
13. | eval whocares=case(isnull(whocares),"UNKNOWN",1=1,whocares)
14. | eval clean_date=trim(date_down,"Inactive ")
15. | convert timeformat="%Y-%m-%d %H:%M:%S" ctime(_time) AS c_time
16. | eval event=strptime(c_time, "%Y-%m-%d %H:%M:%S")
17. | eval tap = strptime(clean_date, "%Y-%m-%d %H:%M:%S")
18. | eval diff=(event - tap), diff=(diff / 60 / 60)
19. | convert rmunit(diff) as numSecs
20. | eval stringSecs=tostring(numSecs, "duration")
21. | eval stringSecs=replace(stringSecs, "(?:(\d+)\+)?0?(\d+):0?(\d+):0?(\d+)","\1d \2h \3m \4s")
22. | eval stringSecs=replace(diff, "^d (0h (0m )?)?","") 
23. | eval duration=strftime(diff,"%Y-%m-%d %H:%M:%S")
24. | table thehost, theip, c_time, clean_date, stap, whocares, diff
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Oct 2019 17:14:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-conversion-from-milliseconds-to-break-down-to-days-hours/m-p/499933#M139233</guid>
      <dc:creator>reneedeleon</dc:creator>
      <dc:date>2019-10-09T17:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Time conversion from milliseconds to break down to days hours minutes seconds</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-conversion-from-milliseconds-to-break-down-to-days-hours/m-p/499934#M139234</link>
      <description>&lt;P&gt;So what's your question?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 17:55:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-conversion-from-milliseconds-to-break-down-to-days-hours/m-p/499934#M139234</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2019-10-09T17:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: Time conversion from milliseconds to break down to days hours minutes seconds</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-conversion-from-milliseconds-to-break-down-to-days-hours/m-p/499935#M139235</link>
      <description>&lt;P&gt;Hi reneedeleon,&lt;BR /&gt;
let me understand: do you want a sum of all diffs?&lt;BR /&gt;
if this is your need you can use the addcoltotals command (see at &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.2/SearchReference/Addcoltotals"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.2/SearchReference/Addcoltotals&lt;/A&gt; ) :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...
| addcoltotals labelfield=diff label="Total diffs"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 07:23:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-conversion-from-milliseconds-to-break-down-to-days-hours/m-p/499935#M139235</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-10-10T07:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Time conversion from milliseconds to break down to days hours minutes seconds</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-conversion-from-milliseconds-to-break-down-to-days-hours/m-p/499936#M139236</link>
      <description>&lt;P&gt;Yes Sir, I am trying to get a total breakdown in the diff field: 34d 13h 26m 24s  &lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 12:22:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-conversion-from-milliseconds-to-break-down-to-days-hours/m-p/499936#M139236</guid>
      <dc:creator>reneedeleon</dc:creator>
      <dc:date>2019-10-10T12:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Time conversion from milliseconds to break down to days hours minutes seconds</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-conversion-from-milliseconds-to-break-down-to-days-hours/m-p/499937#M139237</link>
      <description>&lt;P&gt;Hi reneedeleon,&lt;BR /&gt;
the hint to use addcoltotals is sufficient for you or you need also an help for conversion?&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 12:27:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-conversion-from-milliseconds-to-break-down-to-days-hours/m-p/499937#M139237</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-10-10T12:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Time conversion from milliseconds to break down to days hours minutes seconds</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-conversion-from-milliseconds-to-break-down-to-days-hours/m-p/499938#M139238</link>
      <description>&lt;P&gt;I need help with the conversion since it's a line by line total. Believe it or not most to the query was built utilizing your and dal's responses to many questions.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 12:48:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-conversion-from-milliseconds-to-break-down-to-days-hours/m-p/499938#M139238</guid>
      <dc:creator>reneedeleon</dc:creator>
      <dc:date>2019-10-10T12:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Time conversion from milliseconds to break down to days hours minutes seconds</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-conversion-from-milliseconds-to-break-down-to-days-hours/m-p/499939#M139239</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;
before the table command put these lines&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=diff "(?&amp;lt;hour&amp;gt;\d+)h"
| rex field=diff "(?&amp;lt;min&amp;gt;\d+)m"
| rex field=diff "(?&amp;lt;sec&amp;gt;\d+)s"
| eval seconds=if(isnull(hour),0,hour)*3600+if(isnull(min),0,min)*60+if(isnull(sec),0,sec) 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;so you have the seconds to sum&lt;BR /&gt;
then after addcoltotals, you have remove fields that you don't need using &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| addcoltotals label=seconds labelfield=Total
| eval diff=if(Total="seconds",seconds,ppp)
| fields - hour - min - sec - Total
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;in othe words&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=net*  Inactive NIC
| rex field=_raw "^[^ \n]* (?P[^ ]+)"
| rex field=_raw "^(?:[^ \n]* ){2}(?P[^ ]+)"
| rex field=_raw "(?\s)"
| rex field=_raw "[#]\d{3}(?\d\s+\w{8}\s\d+\S\d+\S\d+\s\d+\S\d+\S\d+(\S\d)?\s+(\d+\S\d+\S\d+\S\d+)?)" max_match=0
| rex field=_raw "[#]\d{3}(?\w+\S\w{13}\S\w{3}\s+\w{8}\s\d+\S\d+\S\d+\s\d+\S\d+\S\d+(\S\d)?\s+(\d+\S\d+\S\d+\S\d+)?)" max_match=0
| rex field=_raw "[#]\d{3}(?\d+\S\d+\S\d+\S\d+\S*\w*\s+\w*\s*\w{8}\s\d+\S\d+\S\d+\s\d+\S\d+\S\d+(\S\d)?\s+(\d+\S\d+\S\d+\S\d+)?)" max_match=0
| mvexpand Alert
| rex field=Alert "(?P\d)\s+(?\w{8}\s(?\d+)\S(?\d+)\S(?\d+)\s(?\d+)\S(?\d+)\S(?\d+)(\S\d)?)\s+(?\d+\S\d+\S\d+\S\d+)?"
| rex field=Alert "(?P\w+\S\w{13}\S\w{3})\s+(?\w{8}\s(?\d+)\S(?\d+)\S(?\d+)\s(?\d+)\S(?\d+)\S(?\d+)(\S\d)?)\s+(?\d+\S\d+\S\d+\S\d+)?"
| rex field=Alert "(?P\d+\S\d+\S\d+\S\d+)\S*\w*\s+\w*\s*(?\w{8}\s(?\d+)\S(?\d+)\S(?\d+)\s(?\d+)\S(?\d+)\S(?\d+)(\S\d)?)\s+(?\d+\S\d+\S\d+\S\d+)?"
| lookup dnslookup clientip as theip OUTPUT clienthost as whocares
| eval whocares=case(isnull(whocares),"UNKNOWN",1=1,whocares)
| eval clean_date=trim(date_down,"Inactive ")
| convert timeformat="%Y-%m-%d %H:%M:%S" ctime(_time) AS c_time
| eval event=strptime(c_time, "%Y-%m-%d %H:%M:%S")
| eval tap = strptime(clean_date, "%Y-%m-%d %H:%M:%S")
| eval diff=(event - tap), diff=(diff / 60 / 60)
| convert rmunit(diff) as numSecs
| eval stringSecs=tostring(numSecs, "duration")
| eval stringSecs=replace(stringSecs, "(?:(\d+)\+)?0?(\d+):0?(\d+):0?(\d+)","\1d \2h \3m \4s")
| eval stringSecs=replace(diff, "^d (0h (0m )?)?","") 
| eval duration=strftime(diff,"%Y-%m-%d %H:%M:%S")
| rex field=diff "(?&amp;lt;hour&amp;gt;\d+)h"
| rex field=diff "(?&amp;lt;min&amp;gt;\d+)m"
| rex field=diff "(?&amp;lt;sec&amp;gt;\d+)s"
| eval seconds=if(isnull(hour),0,hour)*3600+if(isnull(min),0,min)*60+if(isnull(sec),0,sec) 
| table thehost, theip, c_time, clean_date, stap, whocares, diff
| addcoltotals label=seconds labelfield=Total
| eval diff=if(Total="seconds",seconds,ppp)
| fields - hour - min - sec - Total
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 14:07:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-conversion-from-milliseconds-to-break-down-to-days-hours/m-p/499939#M139239</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-10-10T14:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Time conversion from milliseconds to break down to days hours minutes seconds</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-conversion-from-milliseconds-to-break-down-to-days-hours/m-p/499940#M139240</link>
      <description>&lt;P&gt;I tried it and it gave total at the bottom of the stats table under  the total field. I am trying to get a line by line breakdown by days, hours, minutes, seconds. I will play with the search you gave me and try to get it there. Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 16:37:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-conversion-from-milliseconds-to-break-down-to-days-hours/m-p/499940#M139240</guid>
      <dc:creator>reneedeleon</dc:creator>
      <dc:date>2019-10-10T16:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: Time conversion from milliseconds to break down to days hours minutes seconds</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-conversion-from-milliseconds-to-break-down-to-days-hours/m-p/499941#M139241</link>
      <description>&lt;P&gt;Greetings @reneedeleon,&lt;/P&gt;

&lt;P&gt;Check out the built-in &lt;CODE&gt;dmc_convert_runtime(1)&lt;/CODE&gt; macro. It's in the Monitoring Console app. This is its definition:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;case( 
round($runtime$ / (3600*24) - 0.5) &amp;gt; 0,
round($runtime$ / (3600*24) - 0.5)."d ".round(($runtime$ % (3600*24)) / 3600 - 0.5)."h ".round(($runtime$ % 3600) / 60 - 0.5)."min ".round($runtime$ % 60, 2)."s", 
round(($runtime$ % (3600*24)) / 3600 - 0.5) &amp;gt; 0, round(($runtime$ % (3600*24)) / 3600 - 0.5)."h ".round(($runtime$ % 3600) / 60 - 0.5)."min ".round($runtime$ % 60, 2)."s", 
round(($runtime$ % 3600) / 60 - 0.5) &amp;gt; 0, round(($runtime$ % 3600) / 60 - 0.5)."min ".round($runtime$ % 60, 2)."s", 
1 = 1, round($runtime$ % 60, 2)."s" 
)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For an example of it in use, check out the first panel here:&lt;BR /&gt;
&lt;CODE&gt;&lt;A href="https://192.168.0.1:8000/en-US/app/splunk_monitoring_console/search_usage_statistics_instance" target="test_blank"&gt;https://192.168.0.1:8000/en-US/app/splunk_monitoring_console/search_usage_statistics_instance&lt;/A&gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Cheers,&lt;BR /&gt;
Jacob&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 20:04:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-conversion-from-milliseconds-to-break-down-to-days-hours/m-p/499941#M139241</guid>
      <dc:creator>jacobpevans</dc:creator>
      <dc:date>2019-10-10T20:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Time conversion from milliseconds to break down to days hours minutes seconds</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-conversion-from-milliseconds-to-break-down-to-days-hours/m-p/499942#M139242</link>
      <description>&lt;P&gt;If you want, you can convert again the result in hours, minutes and seconds replacing the last eval with :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval diff=if(Total="seconds",hour."h ".min."m ".sec."s",ppp)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2019 07:08:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-conversion-from-milliseconds-to-break-down-to-days-hours/m-p/499942#M139242</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-10-11T07:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Time conversion from milliseconds to break down to days hours minutes seconds</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-conversion-from-milliseconds-to-break-down-to-days-hours/m-p/499943#M139243</link>
      <description>&lt;P&gt;Thank you Jacob, but I don't have access to that part of  the app. I only get to play with the search and reporting.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2019 11:41:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-conversion-from-milliseconds-to-break-down-to-days-hours/m-p/499943#M139243</guid>
      <dc:creator>reneedeleon</dc:creator>
      <dc:date>2019-10-11T11:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Time conversion from milliseconds to break down to days hours minutes seconds</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-conversion-from-milliseconds-to-break-down-to-days-hours/m-p/499944#M139244</link>
      <description>&lt;P&gt;Thank you Giuseppe. I tried the new iteration but I am still getting a blank in the field column. Also now I am being asked to generate the diff field with days instead of hours.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2019 11:44:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-conversion-from-milliseconds-to-break-down-to-days-hours/m-p/499944#M139244</guid>
      <dc:creator>reneedeleon</dc:creator>
      <dc:date>2019-10-11T11:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Time conversion from milliseconds to break down to days hours minutes seconds</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-conversion-from-milliseconds-to-break-down-to-days-hours/m-p/499945#M139245</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval YourFieldNameHere = "9999.999"
| fieldformat YourFieldNameHere = replace(replace(replace(replace(tostring(1000 * YourFieldNameHere, "duration"), "\+", " days, "), "(\d+):(\d+:\d+)$", "\1 hours, \2"), "(\d+):(\d+)$", "\1 minutes, \2"), "$", " seconds")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 13 Oct 2019 08:54:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-conversion-from-milliseconds-to-break-down-to-days-hours/m-p/499945#M139245</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-10-13T08:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Time conversion from milliseconds to break down to days hours minutes seconds</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-conversion-from-milliseconds-to-break-down-to-days-hours/m-p/499946#M139246</link>
      <description>&lt;P&gt;That gave the following:&lt;BR /&gt;
187+03:05:08.611111&lt;BR /&gt;
how do I translate that to English?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 13:10:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-conversion-from-milliseconds-to-break-down-to-days-hours/m-p/499946#M139246</guid>
      <dc:creator>reneedeleon</dc:creator>
      <dc:date>2019-10-15T13:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Time conversion from milliseconds to break down to days hours minutes seconds</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-conversion-from-milliseconds-to-break-down-to-days-hours/m-p/499947#M139247</link>
      <description>&lt;P&gt;That is 187 days, 3 hours, 5 minutes, 8 seconds, etc.  It is a standard duration format.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 15:47:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-conversion-from-milliseconds-to-break-down-to-days-hours/m-p/499947#M139247</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-10-15T15:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Time conversion from milliseconds to break down to days hours minutes seconds</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-conversion-from-milliseconds-to-break-down-to-days-hours/m-p/499948#M139248</link>
      <description>&lt;P&gt;Would you happen to know the regex that spells it all out like you did?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 16:02:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-conversion-from-milliseconds-to-break-down-to-days-hours/m-p/499948#M139248</guid>
      <dc:creator>reneedeleon</dc:creator>
      <dc:date>2019-10-16T16:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Time conversion from milliseconds to break down to days hours minutes seconds</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-conversion-from-milliseconds-to-break-down-to-days-hours/m-p/499949#M139249</link>
      <description>&lt;P&gt;Sorry!&lt;BR /&gt;
there was my error in copying, where you see "ppp", you have to put "diff".&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval diff=if(Total="seconds",seconds,diff)
| eval diff=if(Total="seconds",hour."h ".min."m ".sec."s",diff)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 16:14:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-conversion-from-milliseconds-to-break-down-to-days-hours/m-p/499949#M139249</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-10-16T16:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Time conversion from milliseconds to break down to days hours minutes seconds</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-conversion-from-milliseconds-to-break-down-to-days-hours/m-p/499950#M139250</link>
      <description>&lt;P&gt;See updated answer.  Don't forget to &lt;CODE&gt;UpVote&lt;/CODE&gt; and click &lt;CODE&gt;Accept&lt;/CODE&gt; to close the question.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 20:11:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-conversion-from-milliseconds-to-break-down-to-days-hours/m-p/499950#M139250</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-10-16T20:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Time conversion from milliseconds to break down to days hours minutes seconds</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-conversion-from-milliseconds-to-break-down-to-days-hours/m-p/499951#M139251</link>
      <description>&lt;P&gt;Thank you Sir it worked. Now the problem is the math or I did not place the string in the correct order. My results are all coming up as the same value.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 12:47:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-conversion-from-milliseconds-to-break-down-to-days-hours/m-p/499951#M139251</guid>
      <dc:creator>reneedeleon</dc:creator>
      <dc:date>2019-10-21T12:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Time conversion from milliseconds to break down to days hours minutes seconds</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-conversion-from-milliseconds-to-break-down-to-days-hours/m-p/499952#M139252</link>
      <description>&lt;P&gt;Thank you, I will give this a try as well.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 12:48:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-conversion-from-milliseconds-to-break-down-to-days-hours/m-p/499952#M139252</guid>
      <dc:creator>reneedeleon</dc:creator>
      <dc:date>2019-10-21T12:48:34Z</dc:date>
    </item>
  </channel>
</rss>

