Hi @gcusello , I used your logic, but with a small change in the function used. (floor instead or round). Would this make more sense to you? | eval duration=round((now() - last_seen...
See more...
Hi @gcusello , I used your logic, but with a small change in the function used. (floor instead or round). Would this make more sense to you? | eval duration=round((now() - last_seen),0)
| eval
days=if(duration>86400,floor(duration/86400),"0"),
hours=if(duration>3600,floor((duration-days*86400)/3600),"0"),
minutes=if(duration>60,floor((duration-days*86400-hours*3600)/60),"0"),
seconds=duration-days*86400-hours*3600-minutes*60
| eval Output=days.if(days>0," days ","").hours.if(hours>0," hours ","").minutes.if(minutes>0," minutes ","").seconds." seconds"