<?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 pull out values from a lookup file based on user input without having to run any search commands or search through any logs? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-pull-out-values-from-a-lookup-file-based-on-user-input/m-p/251919#M75319</link>
    <description>&lt;P&gt;I am not sure if this answers your question because it involves a search.  Maybe you could use inputlookup. &lt;/P&gt;

&lt;P&gt;|inputlookup ip_table |where IP=$x.x.x.x$|fields Company, Location&lt;/P&gt;</description>
    <pubDate>Thu, 01 Oct 2015 21:40:21 GMT</pubDate>
    <dc:creator>walkerhound</dc:creator>
    <dc:date>2015-10-01T21:40:21Z</dc:date>
    <item>
      <title>How to pull out values from a lookup file based on user input without having to run any search commands or search through any logs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-pull-out-values-from-a-lookup-file-based-on-user-input/m-p/251918#M75318</link>
      <description>&lt;P&gt;I have created a dashboard that allows for a user to input a public IP address and based on the input, pull back any data associated with that IP into various panels. On one of the panels I would like to pull out the values from a lookup file that I have created based on the user input &lt;STRONG&gt;without&lt;/STRONG&gt; having to do any search commands or search through any logs.&lt;/P&gt;

&lt;P&gt;Sudo code&lt;BR /&gt;
$x.x.x.x$ = user input token&lt;/P&gt;

&lt;P&gt;src_ip=$x.x.x.x$ | lookup ip_table IP as src_ip OUTPUT Company, Location&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:26:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-pull-out-values-from-a-lookup-file-based-on-user-input/m-p/251918#M75318</guid>
      <dc:creator>ryanprice22</dc:creator>
      <dc:date>2020-09-29T07:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to pull out values from a lookup file based on user input without having to run any search commands or search through any logs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-pull-out-values-from-a-lookup-file-based-on-user-input/m-p/251919#M75319</link>
      <description>&lt;P&gt;I am not sure if this answers your question because it involves a search.  Maybe you could use inputlookup. &lt;/P&gt;

&lt;P&gt;|inputlookup ip_table |where IP=$x.x.x.x$|fields Company, Location&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2015 21:40:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-pull-out-values-from-a-lookup-file-based-on-user-input/m-p/251919#M75319</guid>
      <dc:creator>walkerhound</dc:creator>
      <dc:date>2015-10-01T21:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to pull out values from a lookup file based on user input without having to run any search commands or search through any logs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-pull-out-values-from-a-lookup-file-based-on-user-input/m-p/251920#M75320</link>
      <description>&lt;P&gt;Genius! It's so simple and that is exactly what I was looking didn't even think about using the where in the search. Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2015 23:05:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-pull-out-values-from-a-lookup-file-based-on-user-input/m-p/251920#M75320</guid>
      <dc:creator>ryanprice22</dc:creator>
      <dc:date>2015-10-01T23:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to pull out values from a lookup file based on user input without having to run any search commands or search through any logs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-pull-out-values-from-a-lookup-file-based-on-user-input/m-p/251921#M75321</link>
      <description>&lt;P&gt;Looking for more help on this. I came across this scenario when no results came back from the lookup table, but I still want to do something with the IP.&lt;/P&gt;

&lt;P&gt;Ex.&lt;BR /&gt;
| inputlookup tablename | where IP="x.x.x.x" | stats count | eval result=if(count==0, IP, Company) | iplocation IP | fields IP, Company, City, Region, Country&lt;/P&gt;

&lt;P&gt;So basically if no results come back I still want to return the Geo information on the IP. If there are results then I want the results from the lookup and also return the Geo information.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2015 05:21:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-pull-out-values-from-a-lookup-file-based-on-user-input/m-p/251921#M75321</guid>
      <dc:creator>ryanprice22</dc:creator>
      <dc:date>2015-10-15T05:21:34Z</dc:date>
    </item>
  </channel>
</rss>

