Hi Splunkers, I'm a newbie in Splunk. I'm trying to create a chart to show the duration between two dates (Occurtime and ClearTime but I'm unable to get my desired result. Here's my Data: Data1 1593323763.234,AlarmName="Mains Input Out of Range",State="Unacknowledged & Cleared",EventType="Power System",Occurtime="2020-06-28 11:09:42",ClearTime="2020-06-28 17:55:05" Data2 1593323716.209,,AlarmName="NodeB Unavailable",State="Unacknowledged & Cleared",EventType="Running System",Occurtime="2020-06-28 11:59:32",ClearTime="2020-06-28 17:55:13" Here is my query: |eval dur_sec=strptime(ClearTime,"%Y-%m-%d %H:%M:%S.%N")-strptime(Occurtime,"%Y-%m-%d %H:%M:%S.%N") |eval dur_sec=round((strptime(ClearTime,"%Y-%m-%d %H:%M:%S.%N")-strptime(Occurtime,"%Y-%m-%d %H:%M:%S.%N"))) |eval duration=tostring(dur_sec,"duration") |convert num(duration) |eval duration=round(duration/60,2) | eval filter=case( searchmatch("AC Failure*"),"Power Outage", searchmatch("Cell Blocked*"),"Cell Blocked", searchmatch("NodeB Unavailable"),"3G Outage", searchmatch("eNodeB S1 Control Plane Transmission Interruption"),"4G Outage",1=1,"No Filter match") | chart max(duration) over Occurtime by filter Can anyone help me?
... View more