<?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 set hostname in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/set-hostname/m-p/238938#M8960</link>
    <description>&lt;P&gt;Hi at all,&lt;BR /&gt;
I have to create an Heartbeat Alert that contains three fields:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;TimeStamp,&lt;/LI&gt;
&lt;LI&gt;HostName&lt;/LI&gt;
&lt;LI&gt;Message
My problem is HostName because I have a Search Head Cluster with three SH, so I cannot use a fixed value and I don't know how to set in a search the value of the present SH that is executing the search.
Is there a way to do this?&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Thank You.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Fri, 25 Nov 2016 13:24:36 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2016-11-25T13:24:36Z</dc:date>
    <item>
      <title>set hostname</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/set-hostname/m-p/238938#M8960</link>
      <description>&lt;P&gt;Hi at all,&lt;BR /&gt;
I have to create an Heartbeat Alert that contains three fields:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;TimeStamp,&lt;/LI&gt;
&lt;LI&gt;HostName&lt;/LI&gt;
&lt;LI&gt;Message
My problem is HostName because I have a Search Head Cluster with three SH, so I cannot use a fixed value and I don't know how to set in a search the value of the present SH that is executing the search.
Is there a way to do this?&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Thank You.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 13:24:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/set-hostname/m-p/238938#M8960</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-11-25T13:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: set hostname</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/set-hostname/m-p/238939#M8961</link>
      <description>&lt;P&gt;You can use &lt;CODE&gt;$server.serverName$&lt;/CODE&gt; in the email alert settings: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.1/Alert/EmailNotificationTokens#Server_tokens"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.1/Alert/EmailNotificationTokens#Server_tokens&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;In an actual search, you can use &lt;CODE&gt;| rest splunk_server=local /services/server/info&lt;/CODE&gt; to grab the search head you're running on.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 14:08:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/set-hostname/m-p/238939#M8961</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2016-11-25T14:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: set hostname</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/set-hostname/m-p/238940#M8962</link>
      <description>&lt;P&gt;Thank you, your rest command answers to my question.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 14:15:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/set-hostname/m-p/238940#M8962</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-11-25T14:15:09Z</dc:date>
    </item>
  </channel>
</rss>

