<?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: Join Operation Is not working properly in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-is-the-Join-Operation-Is-not-working-properly/m-p/590664#M205649</link>
    <description>&lt;P&gt;Sorry but in my case I need use loadjob, how I can combine my query with OR and stats?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have tried with stats as below but it didn't worked either.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="etl_pipeline_data" environment=prd source=meta_data  origin IN (device_properties, gsm_info,backend_transaction) 
|fields _time,tenant,origin,imei,timestamp, timestamp_device,tz_offset_cest
|eval ts_device_epoch=strptime(timestamp_device,"%Y-%m-%dT%H:%M:%S.%3N")| eval ts_device=ts_device_epoch+tz_offset_cest |eval eventdate=strftime(ts_device,"%Y-%m-%d")
|stats latest by tenant,origin,imei,ts_device
|rename latest(*) as *
|stats values(*) by tenant, imei, eventdate
|table imei,eventdate
|append [|loadjob savedsearch="offboarded:konux_devices_and_features:DEVICE_TRAINPASS_Report_db" | fields imei,eventdate,trains | stats sum(trains) by imei eventdate ]
| where imei = 352369082111082&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 24 Mar 2022 13:05:22 GMT</pubDate>
    <dc:creator>sercankarvar</dc:creator>
    <dc:date>2022-03-24T13:05:22Z</dc:date>
    <item>
      <title>Why is the Join Operation Is not working properly?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-the-Join-Operation-Is-not-working-properly/m-p/590625#M205641</link>
      <description>&lt;P&gt;I am seraching as below but my join operation is not bringing results from the join for only couple of imei/records. I have 100 different imei number but only 10 of them are not returning any results.&amp;nbsp;&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="etl_pipeline_data" environment=prd source=meta_data origin IN (device_properties, gsm_info,backend_transaction) 
|fields _time,tenant,origin,imei,timestamp, timestamp_device,tz_offset_cest
|eval ts_device_epoch=strptime(timestamp_device,"%Y-%m-%dT%H:%M:%S.%3N")| eval ts_device=ts_device_epoch+tz_offset_cest |eval eventdate=strftime(ts_device,"%Y-%m-%d")
|stats latest by tenant,origin,imei,ts_device
|rename latest(*) as *
|stats values(*) by tenant, imei, eventdate
|join type=left  imei [|loadjob savedsearch="xx:yyy:DEVICE_TRAINPASS_Report_db"  ]
| where imei = 352369082111082
| table imei, eventdate,train2s&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;As a proof of record in second serach&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sercankarvar_0-1648113338611.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/18740i6D40819134E61972/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sercankarvar_0-1648113338611.png" alt="sercankarvar_0-1648113338611.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;I have tried to check the data type, there is no issues with that.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I also tried below method instead of join but it's not returning any records as well.&amp;nbsp;&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="etl_pipeline_data" environment=prd source=meta_data  origin IN (device_properties, gsm_info,backend_transaction) 
|fields _time,tenant,origin,imei,timestamp, timestamp_device,tz_offset_cest
|eval ts_device_epoch=strptime(timestamp_device,"%Y-%m-%dT%H:%M:%S.%3N")| eval ts_device=ts_device_epoch+tz_offset_cest |eval eventdate=strftime(ts_device,"%Y-%m-%d")
|stats latest by tenant,origin,imei,ts_device
|rename latest(*) as *
|stats values(*) by tenant, imei, eventdate
|table imei,eventdate
|append [|loadjob savedsearch="xx:yyyy:DEVICE_TRAINPASS_Report_db" | fields imei,eventdate,trains ]
| where imei = 352369082111082&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;is there any limitation in Splunk ? Could you please help me to achive this merge operation ?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 15:18:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-the-Join-Operation-Is-not-working-properly/m-p/590625#M205641</guid>
      <dc:creator>sercankarvar</dc:creator>
      <dc:date>2022-03-24T15:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: Join Operation Is not working properly</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-the-Join-Operation-Is-not-working-properly/m-p/590655#M205647</link>
      <description>&lt;P&gt;Hi sercankarvar&lt;BR /&gt;The join command has a 50k &lt;SPAN&gt;rows limit in the right-side dataset can be joined with the left-side dataset.&lt;BR /&gt;from the docs:&lt;BR /&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.5/SearchReference/Join" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.5/SearchReference/Join&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Depending on the 2nd search you are doing (the one you're doing the&amp;nbsp;load job) you could try to use just stats. Can you post this search as well? &amp;nbsp;There are plenty of examples where&amp;nbsp;&lt;/SPAN&gt;stats can be use instead of join.&lt;/P&gt;&lt;P&gt;Check this conf presentation from Nick, a Splunk Trust member, addressing this topic:&lt;/P&gt;&lt;P&gt;.conf19&amp;nbsp;&lt;A href="https://conf.splunk.com/files/2019/slides/FNC2751.pdf" target="_blank"&gt;https://conf.splunk.com/files/2019/slides/FNC2751.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;.conf20&amp;nbsp;&lt;A href="https://conf.splunk.com/files/2020/slides/TRU1761C.pdf" target="_blank"&gt;https://conf.splunk.com/files/2020/slides/TRU1761C.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 12:14:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-the-Join-Operation-Is-not-working-properly/m-p/590655#M205647</guid>
      <dc:creator>diogofgm</dc:creator>
      <dc:date>2022-03-24T12:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Join Operation Is not working properly</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-the-Join-Operation-Is-not-working-properly/m-p/590664#M205649</link>
      <description>&lt;P&gt;Sorry but in my case I need use loadjob, how I can combine my query with OR and stats?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have tried with stats as below but it didn't worked either.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="etl_pipeline_data" environment=prd source=meta_data  origin IN (device_properties, gsm_info,backend_transaction) 
|fields _time,tenant,origin,imei,timestamp, timestamp_device,tz_offset_cest
|eval ts_device_epoch=strptime(timestamp_device,"%Y-%m-%dT%H:%M:%S.%3N")| eval ts_device=ts_device_epoch+tz_offset_cest |eval eventdate=strftime(ts_device,"%Y-%m-%d")
|stats latest by tenant,origin,imei,ts_device
|rename latest(*) as *
|stats values(*) by tenant, imei, eventdate
|table imei,eventdate
|append [|loadjob savedsearch="offboarded:konux_devices_and_features:DEVICE_TRAINPASS_Report_db" | fields imei,eventdate,trains | stats sum(trains) by imei eventdate ]
| where imei = 352369082111082&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 24 Mar 2022 13:05:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-the-Join-Operation-Is-not-working-properly/m-p/590664#M205649</guid>
      <dc:creator>sercankarvar</dc:creator>
      <dc:date>2022-03-24T13:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Join Operation Is not working properly</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-the-Join-Operation-Is-not-working-properly/m-p/590670#M205650</link>
      <description>&lt;P&gt;The stats options would be to use instead of the append or join. Both have limits that depending on you data and the expected number of results might not be enough for what you're trying to do. Is the load job a dbconnect query?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 13:29:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-the-Join-Operation-Is-not-working-properly/m-p/590670#M205650</guid>
      <dc:creator>diogofgm</dc:creator>
      <dc:date>2022-03-24T13:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Join Operation Is not working properly</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-the-Join-Operation-Is-not-working-properly/m-p/590707#M205659</link>
      <description>&lt;P&gt;Yes it's bringing results from database connection.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 15:18:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-the-Join-Operation-Is-not-working-properly/m-p/590707#M205659</guid>
      <dc:creator>sercankarvar</dc:creator>
      <dc:date>2022-03-24T15:18:43Z</dc:date>
    </item>
  </channel>
</rss>

