<?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: Putting a list of hosts under maintenance in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Putting-a-list-of-hosts-under-maintenance/m-p/514119#M9465</link>
    <description>What results do you get when running the subsearch ("| inputlookup" through "format") by itself?</description>
    <pubDate>Fri, 14 Aug 2020 14:15:44 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2020-08-14T14:15:44Z</dc:date>
    <item>
      <title>Putting a list of hosts under maintenance</title>
      <link>https://community.splunk.com/t5/Alerting/Putting-a-list-of-hosts-under-maintenance/m-p/511941#M9375</link>
      <description>&lt;P&gt;Can anyone please let me know how to put a list of hosts under maintenance so that Splunk doesn't trigger alerts for those hosts alone where ever it is used in Alerts.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2020 14:56:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Putting-a-list-of-hosts-under-maintenance/m-p/511941#M9375</guid>
      <dc:creator>sureshkumaar</dc:creator>
      <dc:date>2020-07-31T14:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Putting a list of hosts under maintenance</title>
      <link>https://community.splunk.com/t5/Alerting/Putting-a-list-of-hosts-under-maintenance/m-p/511963#M9384</link>
      <description>&lt;P&gt;In general, you could create a lookup file with the names of the hosts under maintenance.&amp;nbsp; Your alert would need to check the lookup before issuing an alert.&amp;nbsp; The exact method for doing so depends on your alert query, but something like this might work&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;base search&amp;gt; NOT [ | inputlookup maintenanceHosts.csv | format ]
| ...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2020 17:28:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Putting-a-list-of-hosts-under-maintenance/m-p/511963#M9384</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-07-31T17:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Putting a list of hosts under maintenance</title>
      <link>https://community.splunk.com/t5/Alerting/Putting-a-list-of-hosts-under-maintenance/m-p/512109#M9393</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply&lt;/P&gt;&lt;P&gt;I tried something below and mentioned only one hosts in the csv file but still i found the events for that host as well.&lt;/P&gt;&lt;P&gt;Kindly let me know is there anything i need to modify/update in this query.&lt;/P&gt;&lt;P&gt;host=host1* OR host=host2* OR host=host3* NOT [ | inputlookup DecomMaint.csv | format ]&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2020 09:19:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Putting-a-list-of-hosts-under-maintenance/m-p/512109#M9393</guid>
      <dc:creator>sureshkumaar</dc:creator>
      <dc:date>2020-08-03T09:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Putting a list of hosts under maintenance</title>
      <link>https://community.splunk.com/t5/Alerting/Putting-a-list-of-hosts-under-maintenance/m-p/512142#M9395</link>
      <description>&lt;P&gt;Use of parentheses may help.&amp;nbsp; Also, the field name returned from the subsearch must match a field name in the main search (or use rename to make them match).&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(host=host1* OR host=host2* OR host=host3*) NOT [ | inputlookup DecomMaint.csv | rename foo as host | fields host | format ]&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 03 Aug 2020 12:58:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Putting-a-list-of-hosts-under-maintenance/m-p/512142#M9395</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-08-03T12:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Putting a list of hosts under maintenance</title>
      <link>https://community.splunk.com/t5/Alerting/Putting-a-list-of-hosts-under-maintenance/m-p/514106#M9462</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Maintenance.PNG" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10255i30191990867FF347/image-size/large?v=v2&amp;amp;px=999" role="button" title="Maintenance.PNG" alt="Maintenance.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;- Apologize for the delay , i tried with 3 hosts in the query and added only one host in the CSV file but still it's returning for that host as well. Kindly help&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 13:46:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Putting-a-list-of-hosts-under-maintenance/m-p/514106#M9462</guid>
      <dc:creator>sureshkumaar</dc:creator>
      <dc:date>2020-08-14T13:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Putting a list of hosts under maintenance</title>
      <link>https://community.splunk.com/t5/Alerting/Putting-a-list-of-hosts-under-maintenance/m-p/514110#M9463</link>
      <description>Can you share your CSV file? Does it have a field called "foo"? If not, change "foo" to match the field name in the lookup file.</description>
      <pubDate>Fri, 14 Aug 2020 13:56:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Putting-a-list-of-hosts-under-maintenance/m-p/514110#M9463</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-08-14T13:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Putting a list of hosts under maintenance</title>
      <link>https://community.splunk.com/t5/Alerting/Putting-a-list-of-hosts-under-maintenance/m-p/514118#M9464</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Maintenance1.PNG" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10256i0F98D0BA09224453/image-size/large?v=v2&amp;amp;px=999" role="button" title="Maintenance1.PNG" alt="Maintenance1.PNG" /&gt;&lt;/span&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;My CSV file has only one host with field called "host", i tried with this query also but returned the events for the host from the csv file also. Kindly suggest&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 14:10:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Putting-a-list-of-hosts-under-maintenance/m-p/514118#M9464</guid>
      <dc:creator>sureshkumaar</dc:creator>
      <dc:date>2020-08-14T14:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Putting a list of hosts under maintenance</title>
      <link>https://community.splunk.com/t5/Alerting/Putting-a-list-of-hosts-under-maintenance/m-p/514119#M9465</link>
      <description>What results do you get when running the subsearch ("| inputlookup" through "format") by itself?</description>
      <pubDate>Fri, 14 Aug 2020 14:15:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Putting-a-list-of-hosts-under-maintenance/m-p/514119#M9465</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-08-14T14:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Putting a list of hosts under maintenance</title>
      <link>https://community.splunk.com/t5/Alerting/Putting-a-list-of-hosts-under-maintenance/m-p/514127#M9466</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Maintenance2.PNG" style="width: 690px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10257iBD7E02BF24802145/image-size/large?v=v2&amp;amp;px=999" role="button" title="Maintenance2.PNG" alt="Maintenance2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;i tried the query "&lt;STRONG&gt;| inputlookup DecomMaint.csv | fields host | format&lt;/STRONG&gt;"&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 14:41:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Putting-a-list-of-hosts-under-maintenance/m-p/514127#M9466</guid>
      <dc:creator>sureshkumaar</dc:creator>
      <dc:date>2020-08-14T14:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Putting a list of hosts under maintenance</title>
      <link>https://community.splunk.com/t5/Alerting/Putting-a-list-of-hosts-under-maintenance/m-p/514130#M9467</link>
      <description>Thank you. That output tells me there is no "host" field in the lookup file. Again I ask you to kindly share the lookup file (change host names, if necessary).</description>
      <pubDate>Fri, 14 Aug 2020 14:44:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Putting-a-list-of-hosts-under-maintenance/m-p/514130#M9467</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-08-14T14:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Putting a list of hosts under maintenance</title>
      <link>https://community.splunk.com/t5/Alerting/Putting-a-list-of-hosts-under-maintenance/m-p/514147#M9468</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Maintenance3.PNG" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10263i6BF3E886403ABB4E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Maintenance3.PNG" alt="Maintenance3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&amp;nbsp; - It's my BAD, in the lookup table "Destination filename" i updated without file extension ".csv" after typing file name with it's extension. It worked now successfully&lt;/P&gt;&lt;P&gt;Kindly let me know for below clarifications i needed and i can try testing as well&lt;/P&gt;&lt;P&gt;1. Do i need to update this search in the queries for all the alerts where the hosts is in usage?&lt;/P&gt;&lt;P&gt;NOT [ | inputlookup DecomMaint.csv | fields host | format ]&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;2. is there any way saving this maintenance search as an informational alert and look for all the alerts available in that Splunk and have this maintenance search query effectively run using cron expression setting for a period to not to show the hosts only during that time?&lt;/P&gt;&lt;P&gt;For Ex:- */10 0-1 * * * - setting this will make sure the maintenance query working only during 12 AM - 1 AM EST and results not returning the hosts which i mention in the Lookup file for that time 12 AM - 1 AM.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 15:26:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Putting-a-list-of-hosts-under-maintenance/m-p/514147#M9468</guid>
      <dc:creator>sureshkumaar</dc:creator>
      <dc:date>2020-08-14T15:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Putting a list of hosts under maintenance</title>
      <link>https://community.splunk.com/t5/Alerting/Putting-a-list-of-hosts-under-maintenance/m-p/514148#M9469</link>
      <description>&lt;P&gt;What you have now is the general method for eliminating hosts under maintenance from a query.&amp;nbsp; Use this method in any search that needs to ignore hosts being maintained.&lt;/P&gt;&lt;P&gt;If your problem is resolved, then please click the "Accept as Solution" button to help future readers.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 15:32:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Putting-a-list-of-hosts-under-maintenance/m-p/514148#M9469</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-08-14T15:32:49Z</dc:date>
    </item>
  </channel>
</rss>

