<?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 I join an inputlookup and a tstats search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-join-an-inputlookup-and-a-tstats-search/m-p/702986#M238310</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/273282"&gt;@PotatoDataUser&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;try using the lookup command (&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.3.1/SearchReference/Lookup" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.3.1/SearchReference/Lookup&lt;/A&gt;)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats count where index=my_index by host
| lookup my_lookup.csv server_name&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Tue, 29 Oct 2024 10:24:18 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2024-10-29T10:24:18Z</dc:date>
    <item>
      <title>How do I join an inputlookup and a tstats search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-join-an-inputlookup-and-a-tstats-search/m-p/702975#M238306</link>
      <description>&lt;P&gt;So I have a lookup file with a complete list of servers and their details like version, owner etc, and an index my_index that gets logs from servers.&lt;BR /&gt;&lt;BR /&gt;This is the search I am using right now&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| inputlookup my_lookup.csv
| join type=left server_name
   [ | tstats count where index=my_index by host
      | eval reporting="yes"]

| eval reporting=if(isnull(reporting),"No","Yes")&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;I want to validate the list by referencing it against the tstats reports and show the whole list of the lookupfile.&lt;BR /&gt;&lt;BR /&gt;What I want to know is if this search is accurate, will the subsearch truncate results giving me inaccurate output, is there any alternate way to write this search, Please help.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 14:13:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-join-an-inputlookup-and-a-tstats-search/m-p/702975#M238306</guid>
      <dc:creator>PotatoDataUser</dc:creator>
      <dc:date>2024-10-29T14:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do I join an inputlookup and a tstats search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-join-an-inputlookup-and-a-tstats-search/m-p/702986#M238310</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/273282"&gt;@PotatoDataUser&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;try using the lookup command (&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.3.1/SearchReference/Lookup" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.3.1/SearchReference/Lookup&lt;/A&gt;)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats count where index=my_index by host
| lookup my_lookup.csv server_name&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 10:24:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-join-an-inputlookup-and-a-tstats-search/m-p/702986#M238310</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-10-29T10:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I join an inputlookup and a tstats search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-join-an-inputlookup-and-a-tstats-search/m-p/702992#M238316</link>
      <description>&lt;PRE&gt;| tstats ...&lt;BR /&gt;| inputlookup append=t ...&lt;BR /&gt;| stats values(*) as * by host&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 11:15:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-join-an-inputlookup-and-a-tstats-search/m-p/702992#M238316</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-10-29T11:15:58Z</dc:date>
    </item>
  </channel>
</rss>

