<?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 to create port down alert in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-create-search-and-alert-if-port-was-down-or-not/m-p/616532#M106514</link>
    <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244375"&gt;@sekhar463&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you could creat an alert for those 3 hosts, but I hint to use the lookup, to have a more flexible solution.&lt;/P&gt;&lt;P&gt;so you could run something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=main sourcetype=ListeningPort dest_port=443
| eval host=lower(host)
| stats count BY host
| append [ | inputlookup perimeter.csv | eval host=lower(host), count=0 | fields host count ]
| stats sum(count) AS total BY host
| where total=0&lt;/LI-CODE&gt;&lt;P&gt;if you don't want to use the lookup, you could use:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=main sourcetype=ListeningPort dest_port=443
| eval host=lower(host)
| stats count BY host
| append [ | makeresults | eval host=your_host1, count=0  | fields host count]
| append [ | makeresults | eval host=your_host2, count=0  | fields host count]
| append [ | makeresults | eval host=your_host3, count=0  | fields host count]
| stats sum(count) AS total BY host
| where total=0&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Mon, 10 Oct 2022 14:01:48 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2022-10-10T14:01:48Z</dc:date>
    <item>
      <title>How can I create search and alert if port was down or not listing?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-create-search-and-alert-if-port-was-down-or-not/m-p/616512#M106510</link>
      <description>&lt;P&gt;i have&amp;nbsp; events for port listening on 443&lt;/P&gt;
&lt;P&gt;how can i create search and alert if port was down or not liseting&lt;/P&gt;
&lt;P&gt;below are the same events&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;10/10/22&lt;BR /&gt;10:35:40.312 AM&lt;BR /&gt;2022-10-10 11:35:40.312 transport=TCP dest_ip=[::] dest_port=443 pid=4 appname=System&lt;BR /&gt;host = GBLONICORE01Vsource = C:\Program Files\SplunkUniversalForwarder\etc\apps\Splunk_TA_windows_850\bin\win_listening_ports.batsourcetype = Script:ListeningPorts&lt;BR /&gt;10/10/22&lt;BR /&gt;10:35:40.312 AM&lt;BR /&gt;2022-10-10 11:35:40.312 transport=TCP dest_ip=0.0.0.0 dest_port=443 pid=4 appname=System&lt;BR /&gt;host = GBLONICORE01Vsource = C:\Program Files\SplunkUniversalForwarder\etc\apps\Splunk_TA_windows_850\bin\win_listening_ports.batsourcetype = Script:ListeningPorts&lt;BR /&gt;10/10/22&lt;BR /&gt;9:35:40.006 AM&lt;BR /&gt;2022-10-10 10:35:40.006 transport=TCP dest_ip=[::] dest_port=443 pid=4 appname=System&lt;BR /&gt;host = GBLONICORE01Vsource = C:\Program Files\SplunkUniversalForwarder\etc\apps\Splunk_TA_windows_850\bin\win_listening_ports.batsourcetype = Script:ListeningPorts&lt;BR /&gt;10/10/22&lt;BR /&gt;9:35:40.006 AM&lt;BR /&gt;2022-10-10 10:35:40.006 transport=TCP dest_ip=0.0.0.0 dest_port=443 pid=4 appname=System&lt;BR /&gt;host = GBLONICORE01Vsource = C:\Program Files\SplunkUniversalForwarder\etc\apps\Splunk_TA_windows_850\bin\win_listening_ports.batsourcetype = Script:ListeningPorts&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 13:46:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-create-search-and-alert-if-port-was-down-or-not/m-p/616512#M106510</guid>
      <dc:creator>sekhar463</dc:creator>
      <dc:date>2022-10-10T13:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to create port down alert</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-create-search-and-alert-if-port-was-down-or-not/m-p/616522#M106512</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244375"&gt;@sekhar463&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;at first you should know the list of hosts to monitor and save this list a a lookup called e.g. perimeter.csv containing at least one column host.&lt;/P&gt;&lt;P&gt;then you could run a search like the following (if the above data are archived in the windows index with the sourcetype=ListeningPort:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=windows sourcetype=ListeningPort dest_port=443
| eval host=lower(host)
| stats count BY host
| append [ | imputlookup perimeter.csv | eval host=lower(host), count=0 | fields host count ]
| stats sum(count) AS total BY host
| where total=0&lt;/LI-CODE&gt;&lt;P&gt;If you want to monitor more ports, you can add to the lookup another column with the ports to monitor for each server and modify the search:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=windows sourcetype=ListeningPort dest_port=443
| eval host=lower(host)
| stats count BY host dest_port
| append [ | imputlookup perimeter.csv | eval host=lower(host), count=0 | fields host dest_port count ]
| stats sum(count) AS total BY host dest_port
| where total=0&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 12:18:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-create-search-and-alert-if-port-was-down-or-not/m-p/616522#M106512</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-10-10T12:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to create port down alert</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-create-search-and-alert-if-port-was-down-or-not/m-p/616531#M106513</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;Thanks for ur response&lt;/P&gt;&lt;P&gt;for now i want to check for 3 hosts and only wants to monitor port 443 for those&lt;/P&gt;&lt;P&gt;we are using main index for this port data&amp;nbsp;&lt;/P&gt;&lt;P&gt;so now i have created lookup for these hosts only host column&lt;/P&gt;&lt;P&gt;is anything i need to update&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 13:44:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-create-search-and-alert-if-port-was-down-or-not/m-p/616531#M106513</guid>
      <dc:creator>sekhar463</dc:creator>
      <dc:date>2022-10-10T13:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to create port down alert</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-create-search-and-alert-if-port-was-down-or-not/m-p/616532#M106514</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244375"&gt;@sekhar463&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you could creat an alert for those 3 hosts, but I hint to use the lookup, to have a more flexible solution.&lt;/P&gt;&lt;P&gt;so you could run something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=main sourcetype=ListeningPort dest_port=443
| eval host=lower(host)
| stats count BY host
| append [ | inputlookup perimeter.csv | eval host=lower(host), count=0 | fields host count ]
| stats sum(count) AS total BY host
| where total=0&lt;/LI-CODE&gt;&lt;P&gt;if you don't want to use the lookup, you could use:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=main sourcetype=ListeningPort dest_port=443
| eval host=lower(host)
| stats count BY host
| append [ | makeresults | eval host=your_host1, count=0  | fields host count]
| append [ | makeresults | eval host=your_host2, count=0  | fields host count]
| append [ | makeresults | eval host=your_host3, count=0  | fields host count]
| stats sum(count) AS total BY host
| where total=0&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 14:01:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-create-search-and-alert-if-port-was-down-or-not/m-p/616532#M106514</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-10-10T14:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to create port down alert</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-create-search-and-alert-if-port-was-down-or-not/m-p/616535#M106515</link>
      <description>&lt;PRE&gt;index=main sourcetype=ListeningPort dest_port=443
| eval host=lower(host)
| stats count BY host
| append [ | makeresults | eval host=your_host1, count=0  | fields host count]
| append [ | makeresults | eval host=your_host2, count=0  | fields host count]
| append [ | makeresults | eval host=your_host3, count=0  | fields host count]
| stats sum(count) AS total BY host
| where total=0&lt;/PRE&gt;&lt;P&gt;is this will show results port is not listening or port was down ?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 14:41:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-create-search-and-alert-if-port-was-down-or-not/m-p/616535#M106515</guid>
      <dc:creator>sekhar463</dc:creator>
      <dc:date>2022-10-10T14:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to create port down alert</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-create-search-and-alert-if-port-was-down-or-not/m-p/616536#M106516</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244375"&gt;@sekhar463&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;this search display one or more of these three hosts when there isn't any log containing "&lt;SPAN&gt;dest_port=443".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ciao.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Giuseppe&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 14:47:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-create-search-and-alert-if-port-was-down-or-not/m-p/616536#M106516</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-10-10T14:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to create port down alert</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-create-search-and-alert-if-port-was-down-or-not/m-p/616959#M106546</link>
      <description>&lt;P&gt;what was the trigger condition can i use for the search to alert&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;index=main sourcetype=Script:ListeningPorts dest_port=443&lt;BR /&gt;| eval host=lower(host)&lt;BR /&gt;| stats count BY host&lt;BR /&gt;| append [ | makeresults | eval host=gblonicore01vd, count=0 | fields host count]&lt;BR /&gt;| append [ | makeresults | eval host=gbwokicore01vd, count=0 | fields host count]&lt;BR /&gt;| append [ | makeresults | eval host=gblonicore01vt, count=0 | fields host count]&lt;BR /&gt;| append [ | makeresults | eval host=gbwokicore01vt, count=0 | fields host count]&lt;BR /&gt;| append [ | makeresults | eval host=gblonicore01v, count=0 | fields host count]&lt;BR /&gt;| append [ | makeresults | eval host=gbwokicore01v, count=0 | fields host count]&lt;BR /&gt;| stats sum(count) AS total BY host&lt;BR /&gt;| where total=0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 09:39:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-create-search-and-alert-if-port-was-down-or-not/m-p/616959#M106546</guid>
      <dc:creator>sekhar463</dc:creator>
      <dc:date>2022-10-13T09:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to create port down alert</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-create-search-and-alert-if-port-was-down-or-not/m-p/616961#M106547</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244375"&gt;@sekhar463&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;no results from the above search means that all the hosts have logs for that port.&lt;/P&gt;&lt;P&gt;If one host appears in the list, it means that there isn't any log with that port definition.&lt;/P&gt;&lt;P&gt;So the condition to trigger in the alert is results=0&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 09:56:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-create-search-and-alert-if-port-was-down-or-not/m-p/616961#M106547</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-10-13T09:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to create port down alert</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-create-search-and-alert-if-port-was-down-or-not/m-p/616964#M106548</link>
      <description>&lt;P&gt;so as per below if results will be there if port 443 is listening based on events i can see&lt;/P&gt;&lt;P&gt;so now if no results for 443 then alert will come if we will keep results is 0&lt;/P&gt;&lt;P&gt;is that correct what i understood&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 10:08:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-create-search-and-alert-if-port-was-down-or-not/m-p/616964#M106548</guid>
      <dc:creator>sekhar463</dc:creator>
      <dc:date>2022-10-13T10:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to create port down alert</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-create-search-and-alert-if-port-was-down-or-not/m-p/617111#M106568</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244375"&gt;@sekhar463&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;yes correct&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 10:43:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-create-search-and-alert-if-port-was-down-or-not/m-p/617111#M106568</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-10-14T10:43:01Z</dc:date>
    </item>
  </channel>
</rss>

