<?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 Network Toolkit: How to ping hosts from a search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Network-Toolkit-How-to-ping-hosts-from-a-search/m-p/447290#M126804</link>
    <description>&lt;P&gt;I have a search that gives me a column with hostnames&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;host&lt;BR /&gt;
A&lt;BR /&gt;
B&lt;BR /&gt;
C&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I am trying to use the network toolkit application from Splunk base to ping these hosts to see if they are still alive.&lt;/P&gt;

&lt;P&gt;for example&lt;BR /&gt;
if I have search such as this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=abc | stats values(host) as host | mvexpand host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How can I add another column using the  &lt;CODE&gt;|ping&lt;/CODE&gt; command or any other command to see if I am able to receive a status on these servers?&lt;/P&gt;</description>
    <pubDate>Wed, 14 Aug 2019 20:25:06 GMT</pubDate>
    <dc:creator>rohitmaheshwari</dc:creator>
    <dc:date>2019-08-14T20:25:06Z</dc:date>
    <item>
      <title>Network Toolkit: How to ping hosts from a search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Network-Toolkit-How-to-ping-hosts-from-a-search/m-p/447290#M126804</link>
      <description>&lt;P&gt;I have a search that gives me a column with hostnames&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;host&lt;BR /&gt;
A&lt;BR /&gt;
B&lt;BR /&gt;
C&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I am trying to use the network toolkit application from Splunk base to ping these hosts to see if they are still alive.&lt;/P&gt;

&lt;P&gt;for example&lt;BR /&gt;
if I have search such as this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=abc | stats values(host) as host | mvexpand host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How can I add another column using the  &lt;CODE&gt;|ping&lt;/CODE&gt; command or any other command to see if I am able to receive a status on these servers?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 20:25:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Network-Toolkit-How-to-ping-hosts-from-a-search/m-p/447290#M126804</guid>
      <dc:creator>rohitmaheshwari</dc:creator>
      <dc:date>2019-08-14T20:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: Network Toolkit: How to ping hosts from a search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Network-Toolkit-How-to-ping-hosts-from-a-search/m-p/447291#M126805</link>
      <description>&lt;P&gt;hi @rohitmaheshwari &lt;BR /&gt;
you need to use the map command, The ping command in this app which gives info like dest,sent , packet loss etc are all based on the host field , which is a ip address.&lt;BR /&gt;
Try this in your network toolkit app&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=abc | stats values(host) as host | mvexpand host | map search="| ping host=$host$  count=1 |  eval dest=if(isnull(dest),host,dest) | fields dest sent received packet_loss min_ping avg_ping max_ping jitter | eval row="Value" | transpose column_name=Data header_field=row"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;NOTE : The command /app itself is a bit slow, strongly suggest to &lt;STRONG&gt;limit initial host set to only 3 ips at first&lt;/STRONG&gt;&lt;BR /&gt;
See the output and then decide how to proceed further, all I am doing above is passing each host value from your index into the ping command, it works like a for loop.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 07:45:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Network-Toolkit-How-to-ping-hosts-from-a-search/m-p/447291#M126805</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-08-15T07:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Network Toolkit: How to ping hosts from a search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Network-Toolkit-How-to-ping-hosts-from-a-search/m-p/447292#M126806</link>
      <description>&lt;P&gt;hi @rohitmaheshwari &lt;BR /&gt;
Please try out and accept the answer if this works for you&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 14:58:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Network-Toolkit-How-to-ping-hosts-from-a-search/m-p/447292#M126806</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-08-19T14:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Network Toolkit: How to ping hosts from a search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Network-Toolkit-How-to-ping-hosts-from-a-search/m-p/629060#M218497</link>
      <description>&lt;P&gt;How could I do a incorporate an inputlookup to the search to change the IP address to a device name?&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 22:03:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Network-Toolkit-How-to-ping-hosts-from-a-search/m-p/629060#M218497</guid>
      <dc:creator>lamelendrez</dc:creator>
      <dc:date>2023-01-31T22:03:06Z</dc:date>
    </item>
  </channel>
</rss>

