<?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 do you create a static table for a lookup file? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-a-static-table-for-a-lookup-file/m-p/389603#M113520</link>
    <description>&lt;P&gt;&lt;EM&gt;sigh&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;That's why I was embarrassed. I knew it would be simple. Thanks!!&lt;/P&gt;</description>
    <pubDate>Fri, 09 Nov 2018 14:57:00 GMT</pubDate>
    <dc:creator>_smp_</dc:creator>
    <dc:date>2018-11-09T14:57:00Z</dc:date>
    <item>
      <title>How do you create a static table for a lookup file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-a-static-table-for-a-lookup-file/m-p/389601#M113518</link>
      <description>&lt;P&gt;I have kind of a silly question that I am embarrassed to admit has stumped me for a little while. &lt;/P&gt;

&lt;P&gt;I have a small list of server IP addresses and names that I would like to put in a lookup table file. I could easily create this file outside of Splunk, but I would prefer to construct a Splunk search to ensure it is built in a consistent way. So I am trying to construct a search which builds a table of static values and pipes the output to '|outputlookup' generate the lookup file. But I can't seem to find the right syntax to build a simple table with a name and IP column. I've tried various combinations of eval, append, appendpipe and I just can't seem to find the right syntax. The table is very simple:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;name,ip
server1,ip1
server2,ip2
server3,ip3
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Nov 2018 14:34:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-a-static-table-for-a-lookup-file/m-p/389601#M113518</guid>
      <dc:creator>_smp_</dc:creator>
      <dc:date>2018-11-09T14:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create a static table for a lookup file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-a-static-table-for-a-lookup-file/m-p/389602#M113519</link>
      <description>&lt;P&gt;This should get you what you want&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval name="server1" 
| eval ip="ip1" 
| append 
    [| makeresults 
    | eval name="server2" 
    | eval ip="ip2"] 
| append 
    [| makeresults 
    | eval name="server3" 
    | eval ip="ip3"] 
| fields - _time | outputlookup filename
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Nov 2018 14:45:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-a-static-table-for-a-lookup-file/m-p/389602#M113519</guid>
      <dc:creator>kmaron</dc:creator>
      <dc:date>2018-11-09T14:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create a static table for a lookup file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-a-static-table-for-a-lookup-file/m-p/389603#M113520</link>
      <description>&lt;P&gt;&lt;EM&gt;sigh&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;That's why I was embarrassed. I knew it would be simple. Thanks!!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 14:57:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-a-static-table-for-a-lookup-file/m-p/389603#M113520</guid>
      <dc:creator>_smp_</dc:creator>
      <dc:date>2018-11-09T14:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create a static table for a lookup file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-a-static-table-for-a-lookup-file/m-p/389604#M113521</link>
      <description>&lt;P&gt;eh no need to be embarrassed.  I wasn't sure I remembered how to do it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 15:01:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-a-static-table-for-a-lookup-file/m-p/389604#M113521</guid>
      <dc:creator>kmaron</dc:creator>
      <dc:date>2018-11-09T15:01:00Z</dc:date>
    </item>
  </channel>
</rss>

