<?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: Shortened Hostnames as variables in Alerting</title>
    <link>https://community.dynatrace.com/t5/Alerting/Shortened-Hostnames-as-variables/m-p/288903#M5968</link>
    <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/73479"&gt;@i_g&lt;/a&gt;&amp;nbsp;Sorry, you are right, but interestingly when you look at the dt.event.title in the event details on the host&amp;nbsp; it does show the updated name but this does not get passed on to the problem&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="p_devulapalli_0-1761889170577.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/30780i552E72DCB2DC63FB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="p_devulapalli_0-1761889170577.png" alt="p_devulapalli_0-1761889170577.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 31 Oct 2025 05:40:58 GMT</pubDate>
    <dc:creator>p_devulapalli</dc:creator>
    <dc:date>2025-10-31T05:40:58Z</dc:date>
    <item>
      <title>Shortened Hostnames as variables</title>
      <link>https://community.dynatrace.com/t5/Alerting/Shortened-Hostnames-as-variables/m-p/288898#M5965</link>
      <description>&lt;P&gt;Hello all. Using advice from this post:&lt;BR /&gt;&lt;A href="https://community.dynatrace.com/t5/Open-Q-A/Custom-Host-Names-Remove-FQDN/m-p/188561" target="_blank" rel="noopener"&gt;https://community.dynatrace.com/t5/Open-Q-A/Custom-Host-Names-Remove-FQDN/m-p/188561&lt;/A&gt;&lt;BR /&gt;I've shortened all of our hostnames down and it worked really quite well. However, my main driver for this was removing the FQDN from alerts that end up in ServiceNow, and that continues to occur.&lt;/P&gt;
&lt;P&gt;I'm currently using {host.name} in the Event Template title in Events Extraction, but I'm noticing that {hostname} and {host.hostname} do not fill and remain as such in the Problem when it generates. Unsure if this is related.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to get the shortened hostname into a variable for these fields please?&lt;/P&gt;</description>
      <pubDate>Fri, 31 Oct 2025 07:17:04 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Shortened-Hostnames-as-variables/m-p/288898#M5965</guid>
      <dc:creator>i_g</dc:creator>
      <dc:date>2025-10-31T07:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Shortened Hostnames as variables</title>
      <link>https://community.dynatrace.com/t5/Alerting/Shortened-Hostnames-as-variables/m-p/288899#M5966</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/73479"&gt;@i_g&lt;/a&gt;&amp;nbsp;Can you please try the&amp;nbsp;{dt.entity.host} parameter in the event template instead?&lt;/P&gt;</description>
      <pubDate>Fri, 31 Oct 2025 01:13:57 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Shortened-Hostnames-as-variables/m-p/288899#M5966</guid>
      <dc:creator>p_devulapalli</dc:creator>
      <dc:date>2025-10-31T01:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Shortened Hostnames as variables</title>
      <link>https://community.dynatrace.com/t5/Alerting/Shortened-Hostnames-as-variables/m-p/288900#M5967</link>
      <description>&lt;P&gt;Hi mate. That just returned HOST-[identifierstring] &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Oct 2025 01:23:58 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Shortened-Hostnames-as-variables/m-p/288900#M5967</guid>
      <dc:creator>i_g</dc:creator>
      <dc:date>2025-10-31T01:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Shortened Hostnames as variables</title>
      <link>https://community.dynatrace.com/t5/Alerting/Shortened-Hostnames-as-variables/m-p/288903#M5968</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/73479"&gt;@i_g&lt;/a&gt;&amp;nbsp;Sorry, you are right, but interestingly when you look at the dt.event.title in the event details on the host&amp;nbsp; it does show the updated name but this does not get passed on to the problem&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="p_devulapalli_0-1761889170577.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/30780i552E72DCB2DC63FB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="p_devulapalli_0-1761889170577.png" alt="p_devulapalli_0-1761889170577.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Oct 2025 05:40:58 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Shortened-Hostnames-as-variables/m-p/288903#M5968</guid>
      <dc:creator>p_devulapalli</dc:creator>
      <dc:date>2025-10-31T05:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Shortened Hostnames as variables</title>
      <link>https://community.dynatrace.com/t5/Alerting/Shortened-Hostnames-as-variables/m-p/288930#M5969</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;you can try use custom metadata/kubernetes annotation.&lt;BR /&gt;I mean you have two option:&lt;/P&gt;&lt;P&gt;in Kubernetes: add an annotation to pod with the short name, e.g., short-hostname=web01 (on the node/pod—wherever you want to read it). Dynatrace ingests such metadata, so you can reference it in tags/naming rules&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Non-K8s hosts: set custom host metadata/tag via OneAgent, e.g.&lt;BR /&gt;oneagentctl --set-host-property ShortHostname=web01 (or a tag ShortHostname=web01).&lt;BR /&gt;Then use that metadata (e.g., {ShortHostname}) in your naming/template instead of {host.name}.&lt;BR /&gt;&lt;BR /&gt;Second option is&amp;nbsp;transform {host.name} with a regex. You already send this example&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Oct 2025 18:45:34 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Shortened-Hostnames-as-variables/m-p/288930#M5969</guid>
      <dc:creator>t_pawlak</dc:creator>
      <dc:date>2025-10-31T18:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Shortened Hostnames as variables</title>
      <link>https://community.dynatrace.com/t5/Alerting/Shortened-Hostnames-as-variables/m-p/290554#M6038</link>
      <description>&lt;P&gt;Hi mate. I missed this reply, apologies. Setting the host property using oneagentctl worked perfectly, I just gave it a test now. Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Dec 2025 00:19:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Shortened-Hostnames-as-variables/m-p/290554#M6038</guid>
      <dc:creator>i_g</dc:creator>
      <dc:date>2025-12-01T00:19:25Z</dc:date>
    </item>
  </channel>
</rss>

