<?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 inform the splunk users of a maintenance in splunk ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-inform-the-splunk-users-of-a-maintenance-in-splunk/m-p/155731#M185708</link>
    <description>&lt;P&gt;You can post with the Rest endpoint, and an admin user.&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;# post maintenance message on a search-head&lt;/P&gt;

&lt;P&gt;curl -k -u admin:changeme &lt;A href="https://mysplunkinstance.domain.com:8089/services/messages"&gt;https://mysplunkinstance.domain.com:8089/services/messages&lt;/A&gt; -d severity="warn" -d name=message -d value="This is your Splunk Admin, there will be a maintenance of this instance in 10 minutes -&amp;gt; 15:00 , ETA of 30 minutes -&amp;gt; 15:30, for updates contact me at &lt;A href="mailto:YourFriendlyNeighborhoodAdmin@mydomain.com"&gt;YourFriendlyNeighborhoodAdmin@mydomain.com&lt;/A&gt;"&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;To the list of the active users, check the SOS dashboard or this search  over last hour.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;
earliest=-1h index=_internal  source="*web_access.log*"  &lt;BR /&gt;
| rex "\d+\.\d+\.\d+\.\d+ - (?&amp;lt;user&amp;gt;\w+)" &lt;BR /&gt;
| fillnull user value="missing"&lt;BR /&gt;
| stats first(_time) AS "last_activity" by user&lt;BR /&gt;
| convert ctime(last_activity)&lt;BR /&gt;
&lt;/CODE&gt; &lt;/P&gt;</description>
    <pubDate>Tue, 18 Feb 2014 20:40:30 GMT</pubDate>
    <dc:creator>yannK</dc:creator>
    <dc:date>2014-02-18T20:40:30Z</dc:date>
    <item>
      <title>how to inform the splunk users of a maintenance in splunk ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-inform-the-splunk-users-of-a-maintenance-in-splunk/m-p/155729#M185706</link>
      <description>&lt;P&gt;I have to do some maintenances in splunk and want to warn the users that splunk will be down.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;How to get the list of  active users logged in ?&lt;/LI&gt;
&lt;LI&gt;There is a message bar, can I post messages to it ?&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 18 Feb 2014 20:34:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-inform-the-splunk-users-of-a-maintenance-in-splunk/m-p/155729#M185706</guid>
      <dc:creator>mataharry</dc:creator>
      <dc:date>2014-02-18T20:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to inform the splunk users of a maintenance in splunk ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-inform-the-splunk-users-of-a-maintenance-in-splunk/m-p/155730#M185707</link>
      <description>&lt;P&gt;This should give you currently logged in users. (have some extra parts to get roles of logged in users)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest /services/authentication/httpauth-tokens | search (NOT userName="splunk-system-user") searchId="" 
| table userName splunk_server timeAccessed |join type=left userName [| rest /services/authentication/users splunk_server=local 
|fields title roles realname|rename title as userName|rename realname as Name]
|rename userName as User |rename splunk_server as "Splunk Server"|rename timeAccessed as "Time Accessed"|rename roles as Role
|table User,"Splunk Server",Name,Role
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;To send a message to all logged in users, go to &lt;BR /&gt;
Manager » User interface » Bulletin Messages and add a new bulletin message. Once Maintenance is done delete the message. &lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2014 20:40:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-inform-the-splunk-users-of-a-maintenance-in-splunk/m-p/155730#M185707</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-02-18T20:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to inform the splunk users of a maintenance in splunk ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-inform-the-splunk-users-of-a-maintenance-in-splunk/m-p/155731#M185708</link>
      <description>&lt;P&gt;You can post with the Rest endpoint, and an admin user.&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;# post maintenance message on a search-head&lt;/P&gt;

&lt;P&gt;curl -k -u admin:changeme &lt;A href="https://mysplunkinstance.domain.com:8089/services/messages"&gt;https://mysplunkinstance.domain.com:8089/services/messages&lt;/A&gt; -d severity="warn" -d name=message -d value="This is your Splunk Admin, there will be a maintenance of this instance in 10 minutes -&amp;gt; 15:00 , ETA of 30 minutes -&amp;gt; 15:30, for updates contact me at &lt;A href="mailto:YourFriendlyNeighborhoodAdmin@mydomain.com"&gt;YourFriendlyNeighborhoodAdmin@mydomain.com&lt;/A&gt;"&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;To the list of the active users, check the SOS dashboard or this search  over last hour.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;
earliest=-1h index=_internal  source="*web_access.log*"  &lt;BR /&gt;
| rex "\d+\.\d+\.\d+\.\d+ - (?&amp;lt;user&amp;gt;\w+)" &lt;BR /&gt;
| fillnull user value="missing"&lt;BR /&gt;
| stats first(_time) AS "last_activity" by user&lt;BR /&gt;
| convert ctime(last_activity)&lt;BR /&gt;
&lt;/CODE&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2014 20:40:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-inform-the-splunk-users-of-a-maintenance-in-splunk/m-p/155731#M185708</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2014-02-18T20:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to inform the splunk users of a maintenance in splunk ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-inform-the-splunk-users-of-a-maintenance-in-splunk/m-p/155732#M185709</link>
      <description>&lt;P&gt;nice, I never saw the manager interface.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2014 20:42:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-inform-the-splunk-users-of-a-maintenance-in-splunk/m-p/155732#M185709</guid>
      <dc:creator>mataharry</dc:creator>
      <dc:date>2014-02-18T20:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to inform the splunk users of a maintenance in splunk ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-inform-the-splunk-users-of-a-maintenance-in-splunk/m-p/155733#M185710</link>
      <description>&lt;P&gt;so the curl command allows to specify the severity.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2014 20:43:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-inform-the-splunk-users-of-a-maintenance-in-splunk/m-p/155733#M185710</guid>
      <dc:creator>mataharry</dc:creator>
      <dc:date>2014-02-18T20:43:06Z</dc:date>
    </item>
  </channel>
</rss>

