<?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: using a lookup file to populate a search query in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/using-a-lookup-file-to-populate-a-search-query/m-p/459938#M129767</link>
    <description>&lt;P&gt;maybe something like that:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| inputlookup your_building_lookup.csv | search NOT [search index=xyz  building_name=* | dedup building_name | fields building_name]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;hope it helps&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jul 2018 11:12:19 GMT</pubDate>
    <dc:creator>adonio</dc:creator>
    <dc:date>2018-07-26T11:12:19Z</dc:date>
    <item>
      <title>using a lookup file to populate a search query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/using-a-lookup-file-to-populate-a-search-query/m-p/459937#M129766</link>
      <description>&lt;P&gt;I have a lookup table containing a list of building names - which I think may be useful in creating the query I need&lt;/P&gt;

&lt;P&gt;Buildings 'call in' on a regular basis - and events are created to show this.&lt;BR /&gt;
I want to use the lookup table to run a query to show me if any buildings have NOT 'called in' in the past 7 days&lt;/P&gt;

&lt;P&gt;so basically I need a query that searches for these 'call in' events from each building, and alert if a building has NOT  'called in' in the past 7 days&lt;/P&gt;

&lt;P&gt;I can run a query looking back over the last 7 days&lt;BR /&gt;
index=xyz | table building_name&lt;BR /&gt;
which will report out any buildings that have reported in, but I need to know of the buildings that have NOT reported in&lt;/P&gt;

&lt;P&gt;How can I create a report that does this, using the existing lookup table I have which contains all building names?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 10:23:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/using-a-lookup-file-to-populate-a-search-query/m-p/459937#M129766</guid>
      <dc:creator>vincenp2</dc:creator>
      <dc:date>2018-07-26T10:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: using a lookup file to populate a search query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/using-a-lookup-file-to-populate-a-search-query/m-p/459938#M129767</link>
      <description>&lt;P&gt;maybe something like that:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| inputlookup your_building_lookup.csv | search NOT [search index=xyz  building_name=* | dedup building_name | fields building_name]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;hope it helps&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 11:12:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/using-a-lookup-file-to-populate-a-search-query/m-p/459938#M129767</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2018-07-26T11:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: using a lookup file to populate a search query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/using-a-lookup-file-to-populate-a-search-query/m-p/459939#M129768</link>
      <description>&lt;P&gt;Hi thanks for replying so quickly - when I run this query it basically produces the whole content of the 'building_names' lookup file (5800 rows) - regardless of the time period I use?&lt;/P&gt;

&lt;P&gt;I would expect to see a small number of building names, perhaps just 10 or so&lt;/P&gt;

&lt;P&gt;I kinda understand the logic of the query you sent, and would have thought it might just produce a list of those buildings in the lookup table but had not produced any events in the time period queried &lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 11:38:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/using-a-lookup-file-to-populate-a-search-query/m-p/459939#M129768</guid>
      <dc:creator>vincenp2</dc:creator>
      <dc:date>2018-07-26T11:38:54Z</dc:date>
    </item>
  </channel>
</rss>

