<?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 How to pass search results as a token to an ldapsearch withtout using xml or lookups? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-search-results-as-a-token-to-an-ldapsearch-withtout/m-p/208532#M13088</link>
    <description>&lt;P&gt;Trying to get a basic search of Windows event data to cross reference with fields from ldapsearch.  I'm wanting it to take the value of a field (like Account_Name) in a Windows event and use it as a token to run an ldapsearch and return the value of a particular field from AD (like an OU). Rinse and repeat for all the values from the Windows results.&lt;/P&gt;

&lt;P&gt;I tried a join/append with the ldapsearch as the subsearch, and pondered creating a lookup table of the ldapsearch values. But we've got a very large environment (&amp;gt;140,000 users) that makes the subsearch/lookup-table enormous.  Since the Windows search normally only returns a couple dozen events,  the processing time of the ldapsearch to return all possible values completely kills the value of the search. I really need to be able to limit the ldapsearch to just he couple dozen main-search values.&lt;/P&gt;

&lt;P&gt;How do I get  &amp;lt;main-search with $tokenvalues$&amp;gt; to pass to | ldapsearch domain=mydomain search="$tokenvalues$" &lt;/P&gt;</description>
    <pubDate>Thu, 29 Oct 2015 17:13:52 GMT</pubDate>
    <dc:creator>kearaspoor</dc:creator>
    <dc:date>2015-10-29T17:13:52Z</dc:date>
    <item>
      <title>How to pass search results as a token to an ldapsearch withtout using xml or lookups?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-search-results-as-a-token-to-an-ldapsearch-withtout/m-p/208532#M13088</link>
      <description>&lt;P&gt;Trying to get a basic search of Windows event data to cross reference with fields from ldapsearch.  I'm wanting it to take the value of a field (like Account_Name) in a Windows event and use it as a token to run an ldapsearch and return the value of a particular field from AD (like an OU). Rinse and repeat for all the values from the Windows results.&lt;/P&gt;

&lt;P&gt;I tried a join/append with the ldapsearch as the subsearch, and pondered creating a lookup table of the ldapsearch values. But we've got a very large environment (&amp;gt;140,000 users) that makes the subsearch/lookup-table enormous.  Since the Windows search normally only returns a couple dozen events,  the processing time of the ldapsearch to return all possible values completely kills the value of the search. I really need to be able to limit the ldapsearch to just he couple dozen main-search values.&lt;/P&gt;

&lt;P&gt;How do I get  &amp;lt;main-search with $tokenvalues$&amp;gt; to pass to | ldapsearch domain=mydomain search="$tokenvalues$" &lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2015 17:13:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-search-results-as-a-token-to-an-ldapsearch-withtout/m-p/208532#M13088</guid>
      <dc:creator>kearaspoor</dc:creator>
      <dc:date>2015-10-29T17:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass search results as a token to an ldapsearch withtout using xml or lookups?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-search-results-as-a-token-to-an-ldapsearch-withtout/m-p/208533#M13089</link>
      <description>&lt;P&gt;You can use map:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;main-search with $tokenvalues$&amp;gt;
| map search="| ldapsearch domain=mydomain search=\"$tokenvalues$\" "
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Take a look at this too in case it helps:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/349899/how-to-easily-replace-a-character-in-a-token-value.html#answer-349908"&gt;https://answers.splunk.com/answers/349899/how-to-easily-replace-a-character-in-a-token-value.html#answer-349908&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
J&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2016 10:10:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-search-results-as-a-token-to-an-ldapsearch-withtout/m-p/208533#M13089</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2016-01-28T10:10:27Z</dc:date>
    </item>
  </channel>
</rss>

