<?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 pass a user ID to a new query? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-pass-a-user-ID-to-a-new-query/m-p/587147#M204491</link>
    <description>&lt;P&gt;It can help other people to help if you can illustrate how the "another search" looks like, especially as you mentioned resource as a concern.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;sub-searches but that doesn't work because I need the user ID first but the subsearch runs first and I don't have the user ID yet.&lt;/BLOCKQUOTE&gt;&lt;P&gt;Why not use that illustrated query that returns users with MFA geolocation change as subsearch, then?&lt;/P&gt;</description>
    <pubDate>Wed, 02 Mar 2022 08:58:21 GMT</pubDate>
    <dc:creator>yuanliu</dc:creator>
    <dc:date>2022-03-02T08:58:21Z</dc:date>
    <item>
      <title>How to pass a user ID to a new query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-pass-a-user-ID-to-a-new-query/m-p/587093#M204470</link>
      <description>&lt;P&gt;I'm attempting to build a search around Okta authentication logs.&amp;nbsp; I want to run a query to check for any Multi factor update/change, collect the user ID and pass that to another search where I see the geolocation data where the User has authenticated previously over a specific time span.&amp;nbsp; Essentially, I'm trying to build a search to see if a user that requested an MFA change is doing it from a different geolocation than they normally authenticate from.&lt;/P&gt;&lt;P&gt;The query below shows all users that have have a MFA change with their corresponding geolocation data.&amp;nbsp; Is there a way to pass the user ID(s) to a different search where I can look at 7 days worth of their authentication activity to see if the geolocation matches?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've researched sub-searches but that doesn't work because I need the user ID first but the subsearch runs first and I don't have the user ID yet.&amp;nbsp; I looked at map which seems like it's the best solution, but there a lot of warnings about it being resource intensive.&amp;nbsp; If anyone can point me in the right direction, it would be very much appreciated.&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=okta eventType="user.mfa.factor.update" | stats values(actor.id), values(client.geographicalContext.State)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 21:28:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-pass-a-user-ID-to-a-new-query/m-p/587093#M204470</guid>
      <dc:creator>rip_leroi</dc:creator>
      <dc:date>2022-03-01T21:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass a user ID to a new query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-pass-a-user-ID-to-a-new-query/m-p/587147#M204491</link>
      <description>&lt;P&gt;It can help other people to help if you can illustrate how the "another search" looks like, especially as you mentioned resource as a concern.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;sub-searches but that doesn't work because I need the user ID first but the subsearch runs first and I don't have the user ID yet.&lt;/BLOCKQUOTE&gt;&lt;P&gt;Why not use that illustrated query that returns users with MFA geolocation change as subsearch, then?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 08:58:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-pass-a-user-ID-to-a-new-query/m-p/587147#M204491</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-03-02T08:58:21Z</dc:date>
    </item>
  </channel>
</rss>

