<?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: Finding whether firewall hosts sending logs to splunk ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Finding-whether-firewall-hosts-sending-logs-to-splunk/m-p/368227#M165224</link>
    <description>&lt;P&gt;HI splunker969,&lt;BR /&gt;
at first invert your main search (inputlookup) with the subsearch, because in subsearches there's the limit of 50,000 results.&lt;BR /&gt;
What's the result you are waiting for?&lt;/P&gt;

&lt;P&gt;Your search isn't visible (use Code Sample button).&lt;/P&gt;

&lt;P&gt;if you want to check if all hosts of your lookup send logs, you could run something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata index=pan* OR index=cisco* OR index=juniper*
| eval host=upper(host)
| stats count by host
| append [ | inputlookup firewall.csv | eval host=upper(host), count=0 | fields host count ]
| stats sum(count) AS Total BY host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In this way hosts where Total=0 are missed, hosts with Total&amp;gt;0 are present.&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Mon, 13 Nov 2017 15:04:43 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2017-11-13T15:04:43Z</dc:date>
    <item>
      <title>Finding whether firewall hosts sending logs to splunk ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-whether-firewall-hosts-sending-logs-to-splunk/m-p/368226#M165223</link>
      <description>&lt;P&gt;Hi ,&lt;BR /&gt;
I have a list of firewall hosts names and some ips of firewall and i created the lookup of all host names of firewall along with soem with ip names .Since when iam searching below query iam getting inconsistent results .If i run below query .&lt;/P&gt;

&lt;H2&gt;|inputlookup firewall.csv | join type=left host [|metadata index=pan* OR index=cisco*  OR index=juniper* ] | fillnull value=0 lastTime | search lastTime!=0  | convert  ctime(lastTime)  | fields host lastTime totalCount |sort lastTime&lt;/H2&gt;

&lt;P&gt;Since when i search for &lt;BR /&gt;
 index=pan* OR index=cisco*  OR index=juniper* |stats count by host &lt;BR /&gt;
correct results .Since using "*" and checking for index with larger time period is taking long time .Please help with query ?&lt;/P&gt;

&lt;P&gt;Q:Currently we have list of firewall host names and ips .our goal is to find whether these hosts are sending logs to splunk ?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 14:46:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-whether-firewall-hosts-sending-logs-to-splunk/m-p/368226#M165223</guid>
      <dc:creator>splunker969</dc:creator>
      <dc:date>2017-11-13T14:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Finding whether firewall hosts sending logs to splunk ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-whether-firewall-hosts-sending-logs-to-splunk/m-p/368227#M165224</link>
      <description>&lt;P&gt;HI splunker969,&lt;BR /&gt;
at first invert your main search (inputlookup) with the subsearch, because in subsearches there's the limit of 50,000 results.&lt;BR /&gt;
What's the result you are waiting for?&lt;/P&gt;

&lt;P&gt;Your search isn't visible (use Code Sample button).&lt;/P&gt;

&lt;P&gt;if you want to check if all hosts of your lookup send logs, you could run something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata index=pan* OR index=cisco* OR index=juniper*
| eval host=upper(host)
| stats count by host
| append [ | inputlookup firewall.csv | eval host=upper(host), count=0 | fields host count ]
| stats sum(count) AS Total BY host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In this way hosts where Total=0 are missed, hosts with Total&amp;gt;0 are present.&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 15:04:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-whether-firewall-hosts-sending-logs-to-splunk/m-p/368227#M165224</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-11-13T15:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Finding whether firewall hosts sending logs to splunk ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-whether-firewall-hosts-sending-logs-to-splunk/m-p/368228#M165225</link>
      <description>&lt;P&gt;Hi cusello  Thanks&lt;/P&gt;

&lt;P&gt;Firstly thanks for answers .Since it is showing count = o and count &amp;gt;0 .Also added the" type=hosts",in btw the |metadata  and index,&lt;BR /&gt;
Since I have two columns in csv  one host and other is firewall where .When I serach for above query that you gave me is not showing any results in lookup .Showing all results.Also is there any chance if i can search as like |Search  firewall =y after lookup csv file so that i can get information which is only present in csv file .Since i performed attaching it to search gives different results .Which do not give results from csv  file .&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 15:43:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-whether-firewall-hosts-sending-logs-to-splunk/m-p/368228#M165225</guid>
      <dc:creator>splunker969</dc:creator>
      <dc:date>2017-11-13T15:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: Finding whether firewall hosts sending logs to splunk ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-whether-firewall-hosts-sending-logs-to-splunk/m-p/368229#M165226</link>
      <description>&lt;P&gt;did you checked if lookup's hosts are present in search?&lt;BR /&gt;
maybe in search hosts are listed with IP instead hostname.&lt;BR /&gt;
try with &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| search index=pan* OR index=cisco* OR index=juniper*
| eval host=upper(host)
| stats count by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and see what's the result.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 16:05:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-whether-firewall-hosts-sending-logs-to-splunk/m-p/368229#M165226</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-11-13T16:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Finding whether firewall hosts sending logs to splunk ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-whether-firewall-hosts-sending-logs-to-splunk/m-p/368230#M165227</link>
      <description>&lt;P&gt;Hi cusello ,I have checked list that contain the hostname .If we use tstats will that give correct results instead of metadata ?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 16:13:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-whether-firewall-hosts-sending-logs-to-splunk/m-p/368230#M165227</guid>
      <dc:creator>splunker969</dc:creator>
      <dc:date>2017-11-13T16:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Finding whether firewall hosts sending logs to splunk ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-whether-firewall-hosts-sending-logs-to-splunk/m-p/368231#M165228</link>
      <description>&lt;P&gt;infact I usually use &lt;CODE&gt;| metasearch&lt;/CODE&gt; and not &lt;CODE&gt;| metadata&lt;/CODE&gt;&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 16:15:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-whether-firewall-hosts-sending-logs-to-splunk/m-p/368231#M165228</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-11-13T16:15:57Z</dc:date>
    </item>
  </channel>
</rss>

