<?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: Adding a variable from a lookup table to filter results. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-variable-from-a-lookup-table-to-filter-results/m-p/653811#M225952</link>
    <description>&lt;P&gt;Use a subsearch.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats latest(_time) as lastseen where (index=windows) [ | inputlookup hostlist.csv | fields host | format ] by host 
| convert ctime(lastseen)&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 09 Aug 2023 19:54:59 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2023-08-09T19:54:59Z</dc:date>
    <item>
      <title>How to add a variable from a lookup table to filter results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-variable-from-a-lookup-table-to-filter-results/m-p/653810#M225951</link>
      <description>&lt;P&gt;I am trying to do a tstats command to get the last logged time a server has sent logs.&amp;nbsp; My server list i want in the table is in a lookup csv.&lt;/P&gt;
&lt;P&gt;The command i am using is&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tstats latest(_time) as lastseen where (index=windows) by host | convert ctime(lastseen)&lt;/P&gt;
&lt;P&gt;The "where" clause i would like to be something like "where the server name is on the lookup table"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basically trying to filter the output of the query to just any server i have in the lookup table&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 21:35:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-variable-from-a-lookup-table-to-filter-results/m-p/653810#M225951</guid>
      <dc:creator>Gggflyer</dc:creator>
      <dc:date>2023-08-10T21:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a variable from a lookup table to filter results.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-variable-from-a-lookup-table-to-filter-results/m-p/653811#M225952</link>
      <description>&lt;P&gt;Use a subsearch.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats latest(_time) as lastseen where (index=windows) [ | inputlookup hostlist.csv | fields host | format ] by host 
| convert ctime(lastseen)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 09 Aug 2023 19:54:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-variable-from-a-lookup-table-to-filter-results/m-p/653811#M225952</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-08-09T19:54:59Z</dc:date>
    </item>
  </channel>
</rss>

