<?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 Re: how to append two search with same index ? in Splunk ITSI</title>
    <link>https://community.splunk.com/t5/Splunk-ITSI/how-to-append-two-search-with-same-index/m-p/525338#M2227</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/222120"&gt;@mah&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;try something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=AAA (sourcetype="bbb" OR sourcetype="ccc")
| eval userId=upper(coalesce(userNum_Id,userId)), userSessId=upper(coalesce(Sessionid,userSessId))
| stats 
     values(level) AS level 
     values(app) AS app 
     values(duration) AS duration 
     values(url) AS url 
     values(country) AS country 
     values(browser) AS browser 
     values(price) AS price 
     values(product) AS product 
     by userId userSessId&lt;/LI-CODE&gt;&lt;P&gt;I think that you already extracted all the fields, if not, you have to add the regexes to extract them.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Mon, 19 Oct 2020 12:09:17 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2020-10-19T12:09:17Z</dc:date>
    <item>
      <title>how to append two search with same index ?</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/how-to-append-two-search-with-same-index/m-p/525033#M2211</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;I create a search with a join, but I want to know if there is a better way to do (append ?) :&lt;/P&gt;&lt;P&gt;index=AAA sourcetype="bbb"&amp;nbsp;&lt;BR /&gt;| table _time Id&lt;BR /&gt;| join Id&lt;BR /&gt;[ search index=AAA sourcetype="ccc"&amp;nbsp;&lt;BR /&gt;| table Id name price&lt;BR /&gt;]&lt;/P&gt;&lt;P&gt;Can you help me ?&lt;/P&gt;&lt;P&gt;thanks !&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 09:52:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/how-to-append-two-search-with-same-index/m-p/525033#M2211</guid>
      <dc:creator>mah</dc:creator>
      <dc:date>2020-10-16T09:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to append two search with same index ?</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/how-to-append-two-search-with-same-index/m-p/525034#M2212</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/222120"&gt;@mah&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I prefer to use join only if there isn't any other solution, because it's very slow and there's the limit of 50,000 results in the subsearch.&lt;/P&gt;&lt;P&gt;The same limit is present also in append command.&lt;/P&gt;&lt;P&gt;So I hint to see a different approach using stats, something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=AAA (sourcetype="bbb" OR sourcetype="ccc")
| stats earliest(_time) AS _time values(name) AS name max(price) AS price BY Id&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 09:57:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/how-to-append-two-search-with-same-index/m-p/525034#M2212</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-10-16T09:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to append two search with same index ?</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/how-to-append-two-search-with-same-index/m-p/525038#M2213</link>
      <description>&lt;P&gt;It's not working.&lt;/P&gt;&lt;P&gt;Actually I have in sourcetype "bbb" that fields :&lt;/P&gt;&lt;P&gt;log_time and id_number&amp;nbsp;&lt;/P&gt;&lt;P&gt;And in sourcetype "ccc" that fields:&lt;/P&gt;&lt;P&gt;Id (which contains same values that fields id_number above), name, price, product, amount&lt;/P&gt;&lt;P&gt;I did a rename of id_number in Id, but my request below doesn't work :&amp;nbsp;&lt;/P&gt;&lt;P&gt;index=AAA (sourcetype="bbb" OR sourcetype="ccc")&lt;BR /&gt;| rename id_number as Id&lt;BR /&gt;| stats values(name) values(price) max(city) values(product) values(amount) by log_time Id&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 10:34:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/how-to-append-two-search-with-same-index/m-p/525038#M2213</guid>
      <dc:creator>mah</dc:creator>
      <dc:date>2020-10-16T10:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to append two search with same index ?</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/how-to-append-two-search-with-same-index/m-p/525039#M2214</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/222120"&gt;@mah&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;the problem is that log_time is present only in one sourcetype, this means that you cannot put it in the BY clause&lt;/P&gt;&lt;P&gt;I don't know the format of log_time, so to use the earliest option, you have to convert it in epochtime.&lt;/P&gt;&lt;P&gt;Anyway, try something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=AAA (sourcetype="bbb" OR sourcetype="ccc")
| rename id_number as Id
| stats values(name) AS name values(price) AS price max(city) AS city values(product) AS product values(amount) AS amount earliest(log_time) AS log_time by Id&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 10:58:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/how-to-append-two-search-with-same-index/m-p/525039#M2214</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-10-16T10:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to append two search with same index ?</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/how-to-append-two-search-with-same-index/m-p/525057#M2215</link>
      <description>&lt;P&gt;it doesn't work at all.&lt;/P&gt;&lt;P&gt;It return me :&amp;nbsp;&lt;/P&gt;&lt;P&gt;_time Id values but the rest is empty cell:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mah_0-1602854936740.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/11334iCA31C0BDCCC6B9AC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mah_0-1602854936740.png" alt="mah_0-1602854936740.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 13:29:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/how-to-append-two-search-with-same-index/m-p/525057#M2215</guid>
      <dc:creator>mah</dc:creator>
      <dc:date>2020-10-16T13:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to append two search with same index ?</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/how-to-append-two-search-with-same-index/m-p/525068#M2216</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/222120"&gt;@mah&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;are you sure to have&amp;nbsp;&lt;SPAN&gt;name, price and city for those Ids?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;in other words, have you results if you run:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=AAA sourcetype=ccc
| search id_number=&amp;lt;one_of_the_ids_in_the_screenshot&amp;gt;
| table id_number name price city&lt;/LI-CODE&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 14:14:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/how-to-append-two-search-with-same-index/m-p/525068#M2216</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-10-16T14:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to append two search with same index ?</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/how-to-append-two-search-with-same-index/m-p/525082#M2217</link>
      <description>&lt;P&gt;yes for sourcetype "ccc", there is fields&lt;EM&gt; &lt;STRONG&gt;Id&lt;/STRONG&gt;, name, price, country&lt;/EM&gt;,... I can do the table :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mah_0-1602861119305.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/11337i2DD233348A95A212/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mah_0-1602861119305.png" alt="mah_0-1602861119305.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but this fields above are not in sourcetype "bbb".&lt;/P&gt;&lt;P&gt;for sourcetype "bbb", there is &lt;EM&gt;&lt;STRONG&gt;id_number&lt;/STRONG&gt; &lt;/EM&gt;(which contains same values as Id in sourcetype "ccc") and other fields I want to append, like &lt;EM&gt;app, sessionid&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 15:19:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/how-to-append-two-search-with-same-index/m-p/525082#M2217</guid>
      <dc:creator>mah</dc:creator>
      <dc:date>2020-10-16T15:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to append two search with same index ?</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/how-to-append-two-search-with-same-index/m-p/525083#M2218</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/222120"&gt;@mah&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;check the field names (they are case sensitive).&lt;/P&gt;&lt;P&gt;then check if Ids and id_numbers are both in lowercase or uppercase or not.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 15:32:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/how-to-append-two-search-with-same-index/m-p/525083#M2218</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-10-16T15:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to append two search with same index ?</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/how-to-append-two-search-with-same-index/m-p/525084#M2219</link>
      <description>&lt;P&gt;Some fields mix lower and upper case but I take care of writting it as they are.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 15:50:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/how-to-append-two-search-with-same-index/m-p/525084#M2219</guid>
      <dc:creator>mah</dc:creator>
      <dc:date>2020-10-16T15:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to append two search with same index ?</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/how-to-append-two-search-with-same-index/m-p/525085#M2220</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/222120"&gt;@mah&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;put attention to the field names (they are case sensitive), if there someone different, rename it.&lt;/P&gt;&lt;P&gt;then modify the search in this way:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=AAA (sourcetype="bbb" OR sourcetype="ccc")
| rename id_number as Id
| eval Id=upper(id)
| stats values(name) AS name values(price) AS price max(city) AS city values(product) AS product values(amount) AS amount earliest(log_time) AS log_time by Id&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 15:55:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/how-to-append-two-search-with-same-index/m-p/525085#M2220</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-10-16T15:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to append two search with same index ?</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/how-to-append-two-search-with-same-index/m-p/525089#M2221</link>
      <description>&lt;P&gt;It still not working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the stats command, as soon as I mix fields from both sourcetype, it doesn't work.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 16:06:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/how-to-append-two-search-with-same-index/m-p/525089#M2221</guid>
      <dc:creator>mah</dc:creator>
      <dc:date>2020-10-16T16:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to append two search with same index ?</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/how-to-append-two-search-with-same-index/m-p/525114#M2222</link>
      <description>&lt;P&gt;Try something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=AAA (sourcetype="bbb" OR sourcetype="ccc")
| eval Id=coalesce(id_number, Id)
| stats values(name) AS name values(price) AS price max(city) AS city values(product) AS product values(amount) AS amount earliest(log_time) AS log_time by Id&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 16 Oct 2020 19:00:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/how-to-append-two-search-with-same-index/m-p/525114#M2222</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-10-16T19:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to append two search with same index ?</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/how-to-append-two-search-with-same-index/m-p/525203#M2224</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=AAA (sourcetype="bbb" OR sourcetype="ccc")
| eval Id=upper(coalesce(id_number,id))
| stats values(name) AS name values(price) AS price max(city) AS city values(product) AS product values(amount) AS amount earliest(log_time) AS log_time by Id&lt;/LI-CODE&gt;&lt;P&gt;If you show us a log of samples of the two source types, we can do it.&lt;/P&gt;&lt;P&gt;I have no idea what's wrong with it, which is why I'm in this situation.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Oct 2020 22:15:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/how-to-append-two-search-with-same-index/m-p/525203#M2224</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-10-17T22:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to append two search with same index ?</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/how-to-append-two-search-with-same-index/m-p/525311#M2225</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184221"&gt;@to4kawa&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;the last solutions you gave me are not working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a sample of sourcetype "bbb" log : (I need to get the values of all fields present on this sample)&amp;nbsp;&lt;/P&gt;&lt;P&gt;{ [-]&lt;BR /&gt;level: Acceptable&lt;BR /&gt;app: Prod&lt;BR /&gt;duration: 3268&lt;BR /&gt;url: &lt;A href="https://abc.com" target="_blank"&gt;https://abc.com&lt;/A&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;userNum_Id: XXXXXX&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Sessionid: YYYYYYY&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Here is a sample of sourcetype "ccc" log (I need to get the values of all fields present on this sample) :&amp;nbsp;&lt;/P&gt;&lt;P&gt;{ [-]&lt;BR /&gt;browser: Firefox&lt;BR /&gt;country: France&lt;BR /&gt;price: 542&lt;BR /&gt;product: abc&lt;BR /&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;userId: XXXXXX&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;userSessId: YYYYYYY&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;The fields in common in both logs are in green.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The new difficulty is that the base search is filtring on one of field in sourctype "bbb" which gave me a search like :&amp;nbsp;&lt;/P&gt;&lt;P&gt;index=AAA sourcetype="bbb" OR&amp;nbsp;sourcetype="ccc" &lt;EM&gt;url=*&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The new problem is that this search above gave me only fields of sourcetype "bbb" and the stats no more works ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 09:06:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/how-to-append-two-search-with-same-index/m-p/525311#M2225</guid>
      <dc:creator>mah</dc:creator>
      <dc:date>2020-10-19T09:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: how to append two search with same index ?</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/how-to-append-two-search-with-same-index/m-p/525327#M2226</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=AAA ((sourcetype="bbb" url=*) OR sourcetype="ccc")
| eval Id=coalesce(userId,userNum_Id)
| eval Session=coalesce(Sessionid,userSessId)
| stats as_you_like  by Id Session&lt;/LI-CODE&gt;&lt;P&gt;What was the first query?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 10:34:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/how-to-append-two-search-with-same-index/m-p/525327#M2226</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-10-19T10:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to append two search with same index ?</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/how-to-append-two-search-with-same-index/m-p/525338#M2227</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/222120"&gt;@mah&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;try something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=AAA (sourcetype="bbb" OR sourcetype="ccc")
| eval userId=upper(coalesce(userNum_Id,userId)), userSessId=upper(coalesce(Sessionid,userSessId))
| stats 
     values(level) AS level 
     values(app) AS app 
     values(duration) AS duration 
     values(url) AS url 
     values(country) AS country 
     values(browser) AS browser 
     values(price) AS price 
     values(product) AS product 
     by userId userSessId&lt;/LI-CODE&gt;&lt;P&gt;I think that you already extracted all the fields, if not, you have to add the regexes to extract them.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 12:09:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/how-to-append-two-search-with-same-index/m-p/525338#M2227</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-10-19T12:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to append two search with same index ?</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/how-to-append-two-search-with-same-index/m-p/525367#M2228</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184221"&gt;@to4kawa&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=AAA ((sourcetype="bbb" url=*) OR sourcetype="ccc")
| eval userId=upper(coalesce(userNum_Id,userId)), userSessId=upper(coalesce(Sessionid,userSessId))
| stats 
     values(level) AS level 
     values(app) AS app 
     values(duration) AS duration 
     values(url) AS url 
     values(country) AS country 
     values(browser) AS browser 
     values(price) AS price 
     values(product) AS product 
     by userId userSessId&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=AAA ((sourcetype="bbb" url=*) OR sourcetype="ccc")
| eval Id=coalesce(userId,userNum_Id) 
| eval Session=coalesce(Sessionid,userSessId) 
| stats 
     values(level) AS level 
     values(app) AS app 
     values(duration) AS duration 
     values(url) AS url 
     values(country) AS country 
     values(browser) AS browser 
     values(price) AS price 
     values(product) AS product 
     by userId userSessId&lt;/LI-CODE&gt;&lt;P&gt;but no success :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mah_0-1603114624956.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/11357iFD6464DE8B7CFF48/image-size/large?v=v2&amp;amp;px=999" role="button" title="mah_0-1603114624956.png" alt="mah_0-1603114624956.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The empty&amp;nbsp;fields&amp;nbsp; are present in sourcetype "bbb"&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184221"&gt;@to4kawa&lt;/a&gt;&amp;nbsp; my first request was :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index=AAA sourcetype="bbb"&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| table _time Id&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| &lt;STRONG&gt;join&lt;/STRONG&gt; Id&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ search index=AAA sourcetype="ccc"&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| table Id name price&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 13:58:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/how-to-append-two-search-with-same-index/m-p/525367#M2228</guid>
      <dc:creator>mah</dc:creator>
      <dc:date>2020-10-19T13:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to append two search with same index ?</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/how-to-append-two-search-with-same-index/m-p/525371#M2229</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/222120"&gt;@mah&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if you run&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=AAA sourcetype="bbb" 
| table level app duration url userNum_Id Sessionid&lt;/LI-CODE&gt;&lt;P&gt;have you results?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 14:04:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/how-to-append-two-search-with-same-index/m-p/525371#M2229</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-10-19T14:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to append two search with same index ?</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/how-to-append-two-search-with-same-index/m-p/525408#M2230</link>
      <description>&lt;P&gt;yes I do :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mah_0-1603122974053.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/11361i4E5DC6B0265AA0D2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mah_0-1603122974053.png" alt="mah_0-1603122974053.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 15:56:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/how-to-append-two-search-with-same-index/m-p/525408#M2230</guid>
      <dc:creator>mah</dc:creator>
      <dc:date>2020-10-19T15:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to append two search with same index ?</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/how-to-append-two-search-with-same-index/m-p/525985#M2231</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184221"&gt;@to4kawa&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;if you try your solutions on your side,&amp;nbsp;do you have a table with all fields completed ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 07:40:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/how-to-append-two-search-with-same-index/m-p/525985#M2231</guid>
      <dc:creator>mah</dc:creator>
      <dc:date>2020-10-22T07:40:28Z</dc:date>
    </item>
  </channel>
</rss>

