Hi all, would love help with this one.
I currently have a query where I have 4 different processing times by sessionId. I want the ability to remove/ delete any sessionId from the results that has a blank/ null value. If any one of the four processing times, has a blank or null value, remove the sessionId from the stats.
After that, I would like the ability to add those four processing times into one processing time by _time and take the perc95.
Any assistance is appreciated. Let me know if more clarification is needed. Thank you!!
index= [...] | bucket _time span=1h | eval apiIdentifier=coalesce(msg.apiIdentifier,apiIdentifier) | eval apiName=coalesce(msg.apiName,apiName) | eval apiVersion=coalesce(msg.apiVersion,apiVersion) | eval clientRequestId=coalesce(msg.clientRequestId,clientRequestId) | eval companyId=coalesce(msg.companyId,companyId) | eval contentType=coalesce(msg.contentType,contentType) | eval datacenter=coalesce(msg.datacenter,datacenter) | eval entityId=coalesce(msg.entityId,entityId) | eval logType=coalesce(msg.logType,logType) | eval processingTime=coalesce(msg.processingTime,processingTime) | eval responseCode=coalesce(msg.responseCode,responseCode) | eval serverId=coalesce(msg.serverId,serverId) | eval sessionId=coalesce(msg.sessionId,sessionId) | eval timestamp=coalesce(msg.timestamp,timestamp) | eval totalResponseTime=coalesce(msg.totalResponseTime,totalResponseTime) | eval session-id=coalesce(a_session_id, sessionId) | eval AM2JSRT = if(a_log_type=="Response" AND isNum(a_req_process_time), a_req_process_time,0) ,JS2ISRT = if(logType=="JS2IS", processingTime, 0), JS2AMRT = if(logType=="JS2AM", processingTime, 0), AM2DPRT = if(a_log_type=="Response" AND isNum(a_res_process_time), a_res_process_time,0) | stats SUM(AM2JSRT) as AM2JSRespTime, SUM(JS2ISRT) as JS2ISRespTime, SUM(JS2AMRT) as JS2AMRespTime, SUM(AM2DPRT) as AM2DPRespTime by sessionId | eval gw_processingTime=(AM2JSRespTime+JS2ISRespTime+JS2AMRespTime+AM2DPRespTime
... View more