<?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 2 searches which has common fields as 2 different field name with same value in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-which-has-common-fields-as-2-different-field/m-p/668698#M229376</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's not working.&lt;/P&gt;&lt;P&gt;It results all the logs for sourcetype=accesslogs.&lt;/P&gt;&lt;P&gt;But our aim is to join the 2 sourcetypes to get userId for failure logs&lt;/P&gt;</description>
    <pubDate>Wed, 15 Nov 2023 07:06:33 GMT</pubDate>
    <dc:creator>Dharani</dc:creator>
    <dc:date>2023-11-15T07:06:33Z</dc:date>
    <item>
      <title>Join 2 searches which has common fields as 2 different field name with same value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-which-has-common-fields-as-2-different-field/m-p/667953#M229171</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;My main goal is to find user id.&lt;/P&gt;&lt;P&gt;Index=A sourcetype=signlogs outcome=failure&lt;/P&gt;&lt;P&gt;The above search has a field name called processId but it doesn't have the userId which I needed.&lt;/P&gt;&lt;P&gt;Index=A sourcetype=accesslogs --&amp;gt;This search has a SignatureProcessId( which is same as processId in the search1) and also it has userId.&lt;/P&gt;&lt;P&gt;So I need to join these 2 query with common field as processId/SignatureProcessId&lt;/P&gt;&lt;P&gt;I tried the below query but it results 0 events:&lt;/P&gt;&lt;P&gt;Index=A sourcetype=signlogs outcome=failure&amp;nbsp;&lt;/P&gt;&lt;P&gt;| dedup processId | rename processId as SignatureProcessId | join type=inner SignatureProcessId [Index=A sourcetype=accesslogs | dedup SignatureProcessId ]&amp;nbsp;&lt;/P&gt;&lt;P&gt;| Table _time, SignatureProcessId, userId&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Someone please help with fixing this query.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 18:22:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-which-has-common-fields-as-2-different-field/m-p/667953#M229171</guid>
      <dc:creator>Dharani</dc:creator>
      <dc:date>2023-11-08T18:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 searches which has common fields as 2 different field name with same value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-which-has-common-fields-as-2-different-field/m-p/667955#M229172</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=A (sourcetype=signlogs outcome=failure) OR (sourcetype=accesslogs)
| eval processId=coalesce(processId, SignatureProcessId)
| eventstats values(userId) as userId by processId&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 08 Nov 2023 18:36:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-which-has-common-fields-as-2-different-field/m-p/667955#M229172</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-11-08T18:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 searches which has common fields as 2 different field name with same value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-which-has-common-fields-as-2-different-field/m-p/668698#M229376</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's not working.&lt;/P&gt;&lt;P&gt;It results all the logs for sourcetype=accesslogs.&lt;/P&gt;&lt;P&gt;But our aim is to join the 2 sourcetypes to get userId for failure logs&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 07:06:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-which-has-common-fields-as-2-different-field/m-p/668698#M229376</guid>
      <dc:creator>Dharani</dc:creator>
      <dc:date>2023-11-15T07:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 searches which has common fields as 2 different field name with same value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-which-has-common-fields-as-2-different-field/m-p/668703#M229380</link>
      <description>&lt;P&gt;Please share some anonymised sample events in a code block for both source types demonstrating the common fields you want to use to correlate the events by.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 08:46:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-2-searches-which-has-common-fields-as-2-different-field/m-p/668703#M229380</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-11-15T08:46:00Z</dc:date>
    </item>
  </channel>
</rss>

