<?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 Replace a null value after search appending in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Replace-a-null-value-after-search-appending/m-p/327081#M166150</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt;

&lt;P&gt;I have a search query as below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    index="alpha_all_aal_event" type=twaReport|search callId=0  userId=a2ebd4aa-f91a-4088-8667-60143707c368|fields *|rename eventTime.$date as eventTime|eval eventTime=(eventTime/1000)|append [search index="alpha_all_careport_event" userId=a2ebd4aa-f91a-4088-8667-60143707c368|fields *|rename eventTime.$date as eventTime|eval eventTime=(eventTime/1000)|streamstats min(eventTime) as limit]|table  eventTime eventData.preLimiterSplEstimate eventData.postLimiterSplEstimate eventData.twaThreshold limit
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And the data is shown below :&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3476i15B347EC02820AD7/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;    &lt;/P&gt;

&lt;P&gt;The limit column has just a single value min(eventTime) from one of the search queries, and its null everywhere else. I want to replace the null value of limit, with already existing single value in limit. Can someone please help me how to do this, as this is appended search I am not getting the expected results.&lt;/P&gt;</description>
    <pubDate>Fri, 08 Sep 2017 20:57:40 GMT</pubDate>
    <dc:creator>patilsh</dc:creator>
    <dc:date>2017-09-08T20:57:40Z</dc:date>
    <item>
      <title>Replace a null value after search appending</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Replace-a-null-value-after-search-appending/m-p/327081#M166150</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;

&lt;P&gt;I have a search query as below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    index="alpha_all_aal_event" type=twaReport|search callId=0  userId=a2ebd4aa-f91a-4088-8667-60143707c368|fields *|rename eventTime.$date as eventTime|eval eventTime=(eventTime/1000)|append [search index="alpha_all_careport_event" userId=a2ebd4aa-f91a-4088-8667-60143707c368|fields *|rename eventTime.$date as eventTime|eval eventTime=(eventTime/1000)|streamstats min(eventTime) as limit]|table  eventTime eventData.preLimiterSplEstimate eventData.postLimiterSplEstimate eventData.twaThreshold limit
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And the data is shown below :&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3476i15B347EC02820AD7/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;    &lt;/P&gt;

&lt;P&gt;The limit column has just a single value min(eventTime) from one of the search queries, and its null everywhere else. I want to replace the null value of limit, with already existing single value in limit. Can someone please help me how to do this, as this is appended search I am not getting the expected results.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 20:57:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Replace-a-null-value-after-search-appending/m-p/327081#M166150</guid>
      <dc:creator>patilsh</dc:creator>
      <dc:date>2017-09-08T20:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: Replace a null value after search appending</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Replace-a-null-value-after-search-appending/m-p/327082#M166151</link>
      <description>&lt;P&gt;try this ...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eventstats min(limit) as limit
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;P&gt;Although I'd probably write it more like this...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; userId="a2ebd4aa-f91a-4088-8667-60143707c368"  
(index="alpha_all_aal_event" type=twaReport callId=0  ) OR (index="alpha_all_careport_event")
| fields *
| rename eventTime.$date as eventTime
| eval eventTime=(eventTime/1000)
| eval limit=if(index="alpha_all_careport_event",eventTime,null())
| eventstats min(limit) as limit by userId 
| where index="alpha_all_aal_event"
| table eventTime eventData.preLimiterSplEstimate eventData.postLimiterSplEstimate eventData.twaThreshold limit
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Sep 2017 21:15:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Replace-a-null-value-after-search-appending/m-p/327082#M166151</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-09-08T21:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Replace a null value after search appending</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Replace-a-null-value-after-search-appending/m-p/327083#M166152</link>
      <description>&lt;P&gt;I tried eventstats, still the same&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 21:22:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Replace-a-null-value-after-search-appending/m-p/327083#M166152</guid>
      <dc:creator>patilsh</dc:creator>
      <dc:date>2017-09-08T21:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Replace a null value after search appending</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Replace-a-null-value-after-search-appending/m-p/327084#M166153</link>
      <description>&lt;P&gt;@patilsh - okay, try my way then.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 21:27:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Replace-a-null-value-after-search-appending/m-p/327084#M166153</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-09-08T21:27:24Z</dc:date>
    </item>
  </channel>
</rss>

