<?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: Federated Search -How do I create lookup file with results? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Federated-Search-How-do-I-create-lookup-file-with-results/m-p/698210#M115767</link>
    <description>&lt;P&gt;You can use '&lt;SPAN&gt;&lt;STRONG&gt;| append [ | noop ]&lt;/STRONG&gt;&lt;/SPAN&gt;' as a workaround:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| from federated &amp;lt;&amp;gt; 
| append [ | noop ]
| outputlookup &amp;lt;&amp;gt;.csv&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Sep 2024 17:01:07 GMT</pubDate>
    <dc:creator>_joe</dc:creator>
    <dc:date>2024-09-04T17:01:07Z</dc:date>
    <item>
      <title>Federated Search -How do I create lookup file with results?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Federated-Search-How-do-I-create-lookup-file-with-results/m-p/589401#M103364</link>
      <description>&lt;P&gt;We are working with several remote datasets that are combined to give our end user a specific result.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Federated Search gives us an LDAP dn, which we are trying to use to pull enhancing information from another remote source via a REST API.&amp;nbsp; The following search works:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=federated:remote_dataset userid="cn=" | \
      eval dn=lower(userid) | \
      dedup dn | \
      table dn&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The idea is to use a scheduled search to populate a csv with a list of DNs at the top of every hour, then use a cron job to spawn a python script which generates a new CSV that contains the DN and the enhancing data from the REST API source. Our python script is working, however when we add "|outputlookup dn.csv append=true" to the otherwise functional SPL, we get nothing.&lt;/P&gt;
&lt;P&gt;This fails:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=federated:remote_dataset userid="cn=" | \
      eval dn=lower(userid) | \
      dedup dn | \
      table dn | \
      outputlookup dn.csv append=true&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this a limitation of Federated Search?&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 20:25:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Federated-Search-How-do-I-create-lookup-file-with-results/m-p/589401#M103364</guid>
      <dc:creator>discenzadoe</dc:creator>
      <dc:date>2022-03-16T20:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Federated Search -How do I create lookup file with results?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Federated-Search-How-do-I-create-lookup-file-with-results/m-p/589532#M103375</link>
      <description>&lt;P&gt;Do you see any error when running the search? (in Job dropdown you should see some message).&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 14:29:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Federated-Search-How-do-I-create-lookup-file-with-results/m-p/589532#M103375</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2022-03-17T14:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Federated Search -How do I create lookup file with results?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Federated-Search-How-do-I-create-lookup-file-with-results/m-p/698192#M115765</link>
      <description>&lt;P&gt;Similar issue. There are no error logs per say.&amp;nbsp; The search log shows the the output appears to be happening on the remote SH.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Results written to file '/opt/splunk/etc/apps/search/lookups/mylookup.csv' on serverName=',&amp;lt;&amp;lt;remoteServerName&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;In other words, if I login to my local search head and run this and get an output of 100 entries:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| federated from:my report | outputlookup mylookup.csv&lt;/LI-CODE&gt;
&lt;P&gt;Then I run this (Again on the local search head), it will be empty:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| inputlookup mylookup.csv&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 14:05:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Federated-Search-How-do-I-create-lookup-file-with-results/m-p/698192#M115765</guid>
      <dc:creator>_joe</dc:creator>
      <dc:date>2024-09-04T14:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: Federated Search -How do I create lookup file with results?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Federated-Search-How-do-I-create-lookup-file-with-results/m-p/698210#M115767</link>
      <description>&lt;P&gt;You can use '&lt;SPAN&gt;&lt;STRONG&gt;| append [ | noop ]&lt;/STRONG&gt;&lt;/SPAN&gt;' as a workaround:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| from federated &amp;lt;&amp;gt; 
| append [ | noop ]
| outputlookup &amp;lt;&amp;gt;.csv&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 17:01:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Federated-Search-How-do-I-create-lookup-file-with-results/m-p/698210#M115767</guid>
      <dc:creator>_joe</dc:creator>
      <dc:date>2024-09-04T17:01:07Z</dc:date>
    </item>
  </channel>
</rss>

