<?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: need better option than join in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/need-better-option-than-join/m-p/582465#M202870</link>
    <description>&lt;P&gt;If you're using&amp;nbsp;&lt;SPAN&gt;okta&amp;nbsp;to enrich the primary search results, you should consider creating a lookup.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;To create the lookup (schedule a job to update it periodically):&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=okta sourcetype="OktaIM2:user" AND profile.department=* earliest=-7d@d
| rename profile.employeeNumber as userName, profile.division as Department, profile.title as Title, profile.countryCode AS Country
| dedup userName
| table userName, Department, Title, Country
| outputlookup okta_user_lookup.csv&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=“something” 
| rex field=userName "\'(?P&amp;lt;userName&amp;gt;.+)\'"
| rex "\/ROOT\/[^\s']+\/(?P&amp;lt;Environment&amp;gt;[^\/]+)\/[^\s\/']+(\s|')"
| search NOT (Environment=eu-central-1 OR Environment=BOLCOM)
| rename commandTime as "Dste/Time"
| lookup okta_user_lookup.csv userName OUTPUT Department, Title, Country
| dedup Department, Title, Environment
| table "Date/Time", Department, Title, Environment, Country&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jan 2022 02:51:27 GMT</pubDate>
    <dc:creator>johnhuang</dc:creator>
    <dc:date>2022-01-26T02:51:27Z</dc:date>
    <item>
      <title>need better option than join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-better-option-than-join/m-p/582433#M202856</link>
      <description>&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;Need better option to get user id from first search to populate results using the subsearch.&amp;nbsp; thought join would work but its not.....suggestions?&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;index=“something”&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;| rex field=userName "\'(?P&amp;lt;userName&amp;gt;.+)\'"&lt;/P&gt;&lt;P class=""&gt;| rex "\/ROOT\/[^\s']+\/(?P&amp;lt;Environment&amp;gt;[^\/]+)\/[^\s\/']+(\s|')"&lt;/P&gt;&lt;P class=""&gt;| search NOT (Environment=eu-central-1 OR Environment=BOLCOM)&lt;/P&gt;&lt;P class=""&gt;| rename commandTime as "Date/Time"&lt;/P&gt;&lt;P class=""&gt;| join userName&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;[ search index=okta sourcetype="OktaIM2:user" AND profile.department=*&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;| rename profile.employeeNumber as userName, profile.division as Department, profile.title as Title, profile.countryCode AS Country&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;| table userName, Department, Title, Country]&lt;/P&gt;&lt;P class=""&gt;| dedup Department, Title, Environment&lt;/P&gt;&lt;P class=""&gt;| table "Date/Time", Department, Title, Environment, Country&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 19:43:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-better-option-than-join/m-p/582433#M202856</guid>
      <dc:creator>Aishanazam</dc:creator>
      <dc:date>2022-01-25T19:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: need better option than join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-better-option-than-join/m-p/582439#M202857</link>
      <description>&lt;P&gt;Untested by try this&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;index=“something”&lt;BR /&gt;| rex field=userName "\'(?P&amp;lt;userName&amp;gt;.+)\'"&lt;BR /&gt;| rex "\/ROOT\/[^\s']+\/(?P&amp;lt;Environment&amp;gt;[^\/]+)\/[^\s\/']+(\s|')"&lt;BR /&gt;| search NOT (Environment=eu-central-1 OR Environment=BOLCOM)&lt;BR /&gt;| table userName commandTime&lt;BR /&gt;| join type=left userName&lt;BR /&gt;[ search index=okta sourcetype="OktaIM2:user" AND profile.department=*&lt;BR /&gt;| rename profile.employeeNumber as userName, profile.division as Department, profile.title as Title, profile.countryCode AS Country&lt;BR /&gt;| stats c by userName Department Title Country]&lt;BR /&gt;| eval _time = strptime(commandTime, "%the %format %here")&lt;BR /&gt;| dedup Department Title Environment&lt;BR /&gt;| table commandTime userName Department Title Country&lt;BR /&gt;| rename commandTime as "Date/Time"&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 20:18:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-better-option-than-join/m-p/582439#M202857</guid>
      <dc:creator>morethanyell</dc:creator>
      <dc:date>2022-01-25T20:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: need better option than join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-better-option-than-join/m-p/582465#M202870</link>
      <description>&lt;P&gt;If you're using&amp;nbsp;&lt;SPAN&gt;okta&amp;nbsp;to enrich the primary search results, you should consider creating a lookup.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;To create the lookup (schedule a job to update it periodically):&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=okta sourcetype="OktaIM2:user" AND profile.department=* earliest=-7d@d
| rename profile.employeeNumber as userName, profile.division as Department, profile.title as Title, profile.countryCode AS Country
| dedup userName
| table userName, Department, Title, Country
| outputlookup okta_user_lookup.csv&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=“something” 
| rex field=userName "\'(?P&amp;lt;userName&amp;gt;.+)\'"
| rex "\/ROOT\/[^\s']+\/(?P&amp;lt;Environment&amp;gt;[^\/]+)\/[^\s\/']+(\s|')"
| search NOT (Environment=eu-central-1 OR Environment=BOLCOM)
| rename commandTime as "Dste/Time"
| lookup okta_user_lookup.csv userName OUTPUT Department, Title, Country
| dedup Department, Title, Environment
| table "Date/Time", Department, Title, Environment, Country&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 02:51:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-better-option-than-join/m-p/582465#M202870</guid>
      <dc:creator>johnhuang</dc:creator>
      <dc:date>2022-01-26T02:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: need better option than join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-better-option-than-join/m-p/582551#M202899</link>
      <description>&lt;P&gt;Here is one old answer which could help you to replace join.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Splunk-Search/What-is-the-relation-between-the-Splunk-inner-left-join-and-the/m-p/391288/thread-id/113948" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Search/What-is-the-relation-between-the-Splunk-inner-left-join-and-the/m-p/391288/thread-id/113948&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There are also several conf presentation which explain how to do join without join command.&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 15:01:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-better-option-than-join/m-p/582551#M202899</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2022-01-26T15:01:00Z</dc:date>
    </item>
  </channel>
</rss>

