<?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 remove null values then add fields? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-null-values-then-add-fields/m-p/646330#M223716</link>
    <description>&lt;P&gt;Hi all, would love help with this one.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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,&amp;nbsp; has a blank or null value, remove the sessionId from the stats.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After that, I would like the ability to add those four processing times into one processing time by _time and take the perc95.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any assistance is appreciated. Let me know if more clarification is needed. Thank you!!&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Splunk75.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25751iFD9CC9538516AE70/image-size/large?v=v2&amp;amp;px=999" role="button" title="Splunk75.png" alt="Splunk75.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;index= [...]&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;| bucket _time span=1h&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;| eval apiIdentifier=coalesce(msg.apiIdentifier,apiIdentifier)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;| eval apiName=coalesce(msg.apiName,apiName)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;| eval apiVersion=coalesce(msg.apiVersion,apiVersion)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;| eval clientRequestId=coalesce(msg.clientRequestId,clientRequestId)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;| eval companyId=coalesce(msg.companyId,companyId)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;| eval contentType=coalesce(msg.contentType,contentType)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;| eval datacenter=coalesce(msg.datacenter,datacenter)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;| eval entityId=coalesce(msg.entityId,entityId)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;| eval logType=coalesce(msg.logType,logType)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;| eval processingTime=coalesce(msg.processingTime,processingTime) &lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;| eval responseCode=coalesce(msg.responseCode,responseCode)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;| eval serverId=coalesce(msg.serverId,serverId)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;| eval sessionId=coalesce(msg.sessionId,sessionId)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;| eval timestamp=coalesce(msg.timestamp,timestamp)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;| eval totalResponseTime=coalesce(msg.totalResponseTime,totalResponseTime)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;| eval session-id=coalesce(a_session_id, sessionId)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;| 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)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;| stats SUM(AM2JSRT) as AM2JSRespTime, SUM(JS2ISRT) as JS2ISRespTime, SUM(JS2AMRT) as JS2AMRespTime, SUM(AM2DPRT) as AM2DPRespTime by sessionId&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;| eval gw_processingTime=(AM2JSRespTime+JS2ISRespTime+JS2AMRespTime+AM2DPRespTime&lt;/EM&gt;&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jun 2023 14:41:04 GMT</pubDate>
    <dc:creator>user33</dc:creator>
    <dc:date>2023-06-08T14:41:04Z</dc:date>
    <item>
      <title>How to remove null values then add fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-null-values-then-add-fields/m-p/646330#M223716</link>
      <description>&lt;P&gt;Hi all, would love help with this one.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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,&amp;nbsp; has a blank or null value, remove the sessionId from the stats.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After that, I would like the ability to add those four processing times into one processing time by _time and take the perc95.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any assistance is appreciated. Let me know if more clarification is needed. Thank you!!&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Splunk75.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25751iFD9CC9538516AE70/image-size/large?v=v2&amp;amp;px=999" role="button" title="Splunk75.png" alt="Splunk75.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;index= [...]&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;| bucket _time span=1h&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;| eval apiIdentifier=coalesce(msg.apiIdentifier,apiIdentifier)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;| eval apiName=coalesce(msg.apiName,apiName)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;| eval apiVersion=coalesce(msg.apiVersion,apiVersion)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;| eval clientRequestId=coalesce(msg.clientRequestId,clientRequestId)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;| eval companyId=coalesce(msg.companyId,companyId)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;| eval contentType=coalesce(msg.contentType,contentType)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;| eval datacenter=coalesce(msg.datacenter,datacenter)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;| eval entityId=coalesce(msg.entityId,entityId)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;| eval logType=coalesce(msg.logType,logType)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;| eval processingTime=coalesce(msg.processingTime,processingTime) &lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;| eval responseCode=coalesce(msg.responseCode,responseCode)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;| eval serverId=coalesce(msg.serverId,serverId)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;| eval sessionId=coalesce(msg.sessionId,sessionId)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;| eval timestamp=coalesce(msg.timestamp,timestamp)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;| eval totalResponseTime=coalesce(msg.totalResponseTime,totalResponseTime)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;| eval session-id=coalesce(a_session_id, sessionId)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;| 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)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;| stats SUM(AM2JSRT) as AM2JSRespTime, SUM(JS2ISRT) as JS2ISRespTime, SUM(JS2AMRT) as JS2AMRespTime, SUM(AM2DPRT) as AM2DPRespTime by sessionId&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;| eval gw_processingTime=(AM2JSRespTime+JS2ISRespTime+JS2AMRespTime+AM2DPRespTime&lt;/EM&gt;&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 14:41:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-null-values-then-add-fields/m-p/646330#M223716</guid>
      <dc:creator>user33</dc:creator>
      <dc:date>2023-06-08T14:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove null values then add fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-null-values-then-add-fields/m-p/647200#M224017</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/247156"&gt;@user33&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;As I understand from your details, you have a set of results with session id and 4-5 columns where each column may have null values in some rows. And you want to remove all those session ids from your records against which there are one or more null values in the corresponding columns. You have replaced all null values with 0 (zero). Please correct if I have misunderstood.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In such case, you can try using |where command and place the names of the columns on which you want to apply the filter.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|where column1=0 OR column2=0 OR column3=0&lt;/LI-CODE&gt;&lt;P&gt;This will check all column values in each row and if even one condition is satisfied for a given row, that row gets removed from the resultset.&lt;/P&gt;&lt;P&gt;Please share your results.&lt;/P&gt;&lt;P&gt;Thank you&lt;BR /&gt;Taruchit&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 17:55:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-null-values-then-add-fields/m-p/647200#M224017</guid>
      <dc:creator>Taruchit</dc:creator>
      <dc:date>2023-06-15T17:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove null values then add fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-null-values-then-add-fields/m-p/647247#M224027</link>
      <description>&lt;P&gt;You should first clearly state what those "&lt;SPAN&gt;4 different processing times" are. &amp;nbsp;If they refer to the columns shown in the screenshot - again, using text illustration is much better than using screenshot, they would be AM2JSRespTime,&amp;nbsp;JS2ISRespTime, JS2AMRespTime, and AM2DPRespTime. &amp;nbsp;According to illustrated code, they are calculated from &lt;EM&gt;three&lt;/EM&gt; fields, namely&amp;nbsp;msg.processingTime,&amp;nbsp;processingTime, and&amp;nbsp;a_req_process_time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In your formula, there will be no chance for AM2JRT and AM2DPRT to be null because they are either from a_req_process_time that you checked isNum or zero. &amp;nbsp;It is possible for&amp;nbsp;msg.processingTime and processingTime to be null, hence&amp;nbsp;JS2ISRT and&amp;nbsp;JS2AMRT can be null. &amp;nbsp;But then, your stats sums each up by session_Id. &amp;nbsp;Does each session_Id have only one processingTime and one a_req_process_time? &amp;nbsp;If so, the task can be even simpler.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If not, what you ask can easily be processed after stats, like&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;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 _time
| where isnotnull(AM2JSRespTime) AND isnotnull(JS2ISRespTime) AND isnotnull(JS2AMRespTime) AND isnotnull(AM2DPRespTime)
| eventstats perc95(eval(AM2JSRespTime+JS2ISRespTime+JS2AMRespTime+AM2DPRespTime)) as gw_processingTime by sessionId _time&lt;/LI-CODE&gt;&lt;P&gt;Note when you describe your desire to calculate perc95, you also said "by _time". &amp;nbsp;But your illustrated code does not include _time in stats, therefore you cannot get any information related to _time. &amp;nbsp;In the above, I added _time in both stats and eventstats.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 06:34:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-null-values-then-add-fields/m-p/647247#M224027</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-06-16T06:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove null values then add fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-null-values-then-add-fields/m-p/647400#M224068</link>
      <description>&lt;P data-unlink="true"&gt;Thank you &lt;A class="" href="https://community.splunk.com/t5/user/viewprofilepage/user-id/223102" target="_self"&gt;&lt;SPAN class=""&gt;Taruchit&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;and &lt;SPAN class=""&gt;yuanliu&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;!! I will take those into consideration for removing null values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems combining the two logs with eval coalesce as well as removing null values caused issues for the query. So, for now, I have decided to ignore that. I will create two separate queries later.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have decided to go a different, simpler route this time. I now have two processing times/ fields to work with:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;processingTime&lt;/STRONG&gt; and &lt;STRONG&gt;a_api_responsetime.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The math to get the&amp;nbsp;PlatformProcessingTime is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PlatformProcessingTime =&amp;nbsp;a_api_responsetime -&amp;nbsp;processingTime.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;My largest issue that I cannot seem to solve is calculating the processing time &lt;U&gt;by&lt;/U&gt; session_id (or one API call) then talking the 95th percentile of the PlatformProcessingTime by _time. The PlatformProcessingTime has to be calculated by session_is. But then, how do I display in the Splunk stats the 95th percentile of&amp;nbsp;&lt;STRONG&gt;PlatformProcessingTime&amp;nbsp;&lt;/STRONG&gt; by time?&lt;/P&gt;&lt;P&gt;Any assistance is appreciated please!&lt;/P&gt;&lt;P&gt;What I have so far:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=* (sourcetype="*" OR sourcetype="*" OR sourcetype="*") ("Response" OR "IS2JS")
| eval session_id= coalesce(a_session_id, sessionId)
| bucket _time span=1h
| fields processingTime, apiName, a_log_type, a_api_responsetime, a_api_name, responsetime, IS2JSRT, session_id, a_session_id, sessionId, PlatformProcessingTime
| stats max(eval(a_api_responsetime)) as responsetime, max(eval(processingTime)) as IS2JSRT by session_id
| eval PlatformProcessingTime = (responsetime - IS2JSRT)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="user33_0-1687011223070.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25904i0D8C620898D6C359/image-size/medium?v=v2&amp;amp;px=400" role="button" title="user33_0-1687011223070.png" alt="user33_0-1687011223070.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jun 2023 14:14:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-null-values-then-add-fields/m-p/647400#M224068</guid>
      <dc:creator>user33</dc:creator>
      <dc:date>2023-06-17T14:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove null values then add fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-null-values-then-add-fields/m-p/647401#M224069</link>
      <description>&lt;P&gt;That is why I asked about your desire to include time but didn't have _time in your stats. &amp;nbsp;The command you are looking for is&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Eventstats" target="_blank" rel="noopener"&gt;eventstats&lt;/A&gt;. &amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=* (sourcetype="*" OR sourcetype="*" OR sourcetype="*") ("Response" OR "IS2JS")
| eval session_id= coalesce(a_session_id, sessionId)
| bucket _time span=1h
| fields processingTime, apiName, a_log_type, a_api_responsetime, a_api_name, responsetime, IS2JSRT, session_id, a_session_id, sessionId, PlatformProcessingTime
| eventstats max(eval(a_api_responsetime)) as responsetime, max(eval(processingTime)) as IS2JSRT by session_id
| eval PlatformProcessingTime = (responsetime - IS2JSRT)
| timechart perc95(PlatformProcessingTime)&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 17 Jun 2023 19:16:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-null-values-then-add-fields/m-p/647401#M224069</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-06-17T19:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove null values then add fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-null-values-then-add-fields/m-p/647404#M224071</link>
      <description>&lt;P&gt;Ah, ok. I see. I missed that part. Unfamiliar with eventstats. Thank you very much. That worked!!&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jun 2023 20:54:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-null-values-then-add-fields/m-p/647404#M224071</guid>
      <dc:creator>user33</dc:creator>
      <dc:date>2023-06-17T20:54:05Z</dc:date>
    </item>
  </channel>
</rss>

