<?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: Splunk query that uses different lookup table depending on the day in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-query-that-uses-different-lookup-table-depending-on-the/m-p/269375#M17053</link>
    <description>&lt;P&gt;you can use the same lookup by adding separate column to keep date values as suggested in the above comment. In-case your lookup has more records and still you want to handled by name then you can try something like this,, &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| lookup [|stats c | eval l=strftime(now(),"mylookup_%Y_%m_%d.csv")] primary_key OUTPUT field1, field2 ..
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;here lookup will be like this, &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;mylookup_2016_09_06.csv 
mylookup_2016_09_07.csv 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;By changing the date variable you can create your lookup name in sub search and pass ... &lt;/P&gt;

&lt;P&gt;hope this will help you. &lt;/P&gt;</description>
    <pubDate>Wed, 07 Sep 2016 17:02:52 GMT</pubDate>
    <dc:creator>vasanthmss</dc:creator>
    <dc:date>2016-09-07T17:02:52Z</dc:date>
    <item>
      <title>Splunk query that uses different lookup table depending on the day</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-query-that-uses-different-lookup-table-depending-on-the/m-p/269373#M17051</link>
      <description>&lt;P&gt;Is it possible to have a splunk query use a different lookup table for a given day. For instance I want to use the lookup table on monday to cross-refernce with files  that are suppose to run on Monday. On tuesday I would like to do the same but use a lookup table that corresponds to the jobs that is suppose to be ran on Tuesday. Can I do this in one search or would it require multiple searches in my dashboard.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2016 14:49:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-query-that-uses-different-lookup-table-depending-on-the/m-p/269373#M17051</guid>
      <dc:creator>jwhit</dc:creator>
      <dc:date>2016-09-07T14:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query that uses different lookup table depending on the day</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-query-that-uses-different-lookup-table-depending-on-the/m-p/269374#M17052</link>
      <description>&lt;P&gt;Why not add a "day" column to your lookup table and have your query match on two fields. &lt;CODE&gt;... | eval dow=strftime(now(), "%a") | lookup somefile.csv day AS dow someotherfield AS someotherfield OUTPUT all fields | ...&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2016 16:46:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-query-that-uses-different-lookup-table-depending-on-the/m-p/269374#M17052</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-09-07T16:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query that uses different lookup table depending on the day</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-query-that-uses-different-lookup-table-depending-on-the/m-p/269375#M17053</link>
      <description>&lt;P&gt;you can use the same lookup by adding separate column to keep date values as suggested in the above comment. In-case your lookup has more records and still you want to handled by name then you can try something like this,, &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| lookup [|stats c | eval l=strftime(now(),"mylookup_%Y_%m_%d.csv")] primary_key OUTPUT field1, field2 ..
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;here lookup will be like this, &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;mylookup_2016_09_06.csv 
mylookup_2016_09_07.csv 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;By changing the date variable you can create your lookup name in sub search and pass ... &lt;/P&gt;

&lt;P&gt;hope this will help you. &lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2016 17:02:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-query-that-uses-different-lookup-table-depending-on-the/m-p/269375#M17053</guid>
      <dc:creator>vasanthmss</dc:creator>
      <dc:date>2016-09-07T17:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query that uses different lookup table depending on the day</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-query-that-uses-different-lookup-table-depending-on-the/m-p/269376#M17054</link>
      <description>&lt;P&gt;Thanks I think this will do. Sidenote I have been getting an File not end of line error when trying to upload an excel spreadsheet converted to a CSV. Any suggestion on this?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2016 16:24:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-query-that-uses-different-lookup-table-depending-on-the/m-p/269376#M17054</guid>
      <dc:creator>jwhit</dc:creator>
      <dc:date>2016-09-08T16:24:37Z</dc:date>
    </item>
  </channel>
</rss>

