<?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 Scripted Lookup Output and Configuring in Splunk in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Scripted-Lookup-Output-and-Configuring-in-Splunk/m-p/55341#M705</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;Everyone in my organization has a unique username, which I have extracted from my search as "anumber".&lt;BR /&gt;
I want to construct an external lookup script to convert this "anumber" extraction into human names.&lt;/P&gt;

&lt;P&gt;All of these anumbers are convertible via an AD lookup, which I have scripted.&lt;/P&gt;

&lt;P&gt;This is basically what I want to achieve, in my fields I want to be able to see both anumber and humanname, for example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;anumber = "a00001"
humanname = "Michael Someone"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have written a python script which works as follows...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./a0convert.py a00001
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Returns:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Someone, Michael
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now, two questions...&lt;/P&gt;

&lt;P&gt;1) Is this script output okay, or does it need to be formatted differently...?&lt;/P&gt;

&lt;P&gt;2) How do I now add this scripted lookup into splunk? (preferably with the GUI, what needs to be done under "Lookups")&lt;/P&gt;

&lt;P&gt;Thanks in advance for any help you can provide.&lt;/P&gt;

&lt;P&gt;Aaron.&lt;/P&gt;</description>
    <pubDate>Mon, 10 Sep 2012 05:11:10 GMT</pubDate>
    <dc:creator>aaronnicoli</dc:creator>
    <dc:date>2012-09-10T05:11:10Z</dc:date>
    <item>
      <title>Scripted Lookup Output and Configuring in Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Scripted-Lookup-Output-and-Configuring-in-Splunk/m-p/55341#M705</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;Everyone in my organization has a unique username, which I have extracted from my search as "anumber".&lt;BR /&gt;
I want to construct an external lookup script to convert this "anumber" extraction into human names.&lt;/P&gt;

&lt;P&gt;All of these anumbers are convertible via an AD lookup, which I have scripted.&lt;/P&gt;

&lt;P&gt;This is basically what I want to achieve, in my fields I want to be able to see both anumber and humanname, for example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;anumber = "a00001"
humanname = "Michael Someone"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have written a python script which works as follows...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./a0convert.py a00001
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Returns:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Someone, Michael
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now, two questions...&lt;/P&gt;

&lt;P&gt;1) Is this script output okay, or does it need to be formatted differently...?&lt;/P&gt;

&lt;P&gt;2) How do I now add this scripted lookup into splunk? (preferably with the GUI, what needs to be done under "Lookups")&lt;/P&gt;

&lt;P&gt;Thanks in advance for any help you can provide.&lt;/P&gt;

&lt;P&gt;Aaron.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2012 05:11:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Scripted-Lookup-Output-and-Configuring-in-Splunk/m-p/55341#M705</guid>
      <dc:creator>aaronnicoli</dc:creator>
      <dc:date>2012-09-10T05:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Scripted Lookup Output and Configuring in Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Scripted-Lookup-Output-and-Configuring-in-Splunk/m-p/55342#M706</link>
      <description>&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Addfieldsfromexternaldatasources#Set_up_a_fields_lookup_based_on_an_external_command_or_script"&gt;Here&lt;/A&gt; it tells you how to Set up fields lookup based on an external command or script and there is example script.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2012 06:33:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Scripted-Lookup-Output-and-Configuring-in-Splunk/m-p/55342#M706</guid>
      <dc:creator>MarioM</dc:creator>
      <dc:date>2012-09-10T06:33:41Z</dc:date>
    </item>
  </channel>
</rss>

