<?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 Do tags created via hostautotag.conf always prepend [Environment] to the tag? in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Do-tags-created-via-hostautotag-conf-always-prepend-Environment/m-p/72704#M4260</link>
    <description>&lt;P&gt;I was following &lt;A target="_blank" href="https://www.dynatrace.com/support/help/infrastructure/hosts/how-do-i-define-tags-in-a-host-based-configuration-file/"&gt;this doc page&lt;/A&gt; to create very high level tagging during agent install. Looking at the example, you can modify /var/lib/dynatrace/oneagent/agent/config/hostautotag.conf and the tags show up 'normally.'&lt;/P&gt;&lt;P&gt;When I followed this process myself I see the tag turns out differently than the screenshot from the doc page.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Edit /var/lib/dynatrace/oneagent/agent/config/hostautotag.conf, file reads IST=1, saved file.&lt;/P&gt;&lt;P&gt;Shows "[Environment]IST:1" in Dynatrace&lt;/P&gt;&lt;P&gt;Is there a way to remove the [Environment] part?&lt;/P&gt;&lt;P&gt;Related question, the above file is owned by root (even when I used the GROUP and USER option during agent install). This is a minor pain point in my environment as it requires I open an internal ticket and wait a few days for any changes to be made to the file. If we were to change ownership of the file would there be any issue with the tags working?&lt;/P&gt;</description>
    <pubDate>Fri, 01 Jun 2018 19:22:52 GMT</pubDate>
    <dc:creator>tom_lagona1</dc:creator>
    <dc:date>2018-06-01T19:22:52Z</dc:date>
    <item>
      <title>Do tags created via hostautotag.conf always prepend [Environment] to the tag?</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Do-tags-created-via-hostautotag-conf-always-prepend-Environment/m-p/72704#M4260</link>
      <description>&lt;P&gt;I was following &lt;A target="_blank" href="https://www.dynatrace.com/support/help/infrastructure/hosts/how-do-i-define-tags-in-a-host-based-configuration-file/"&gt;this doc page&lt;/A&gt; to create very high level tagging during agent install. Looking at the example, you can modify /var/lib/dynatrace/oneagent/agent/config/hostautotag.conf and the tags show up 'normally.'&lt;/P&gt;&lt;P&gt;When I followed this process myself I see the tag turns out differently than the screenshot from the doc page.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Edit /var/lib/dynatrace/oneagent/agent/config/hostautotag.conf, file reads IST=1, saved file.&lt;/P&gt;&lt;P&gt;Shows "[Environment]IST:1" in Dynatrace&lt;/P&gt;&lt;P&gt;Is there a way to remove the [Environment] part?&lt;/P&gt;&lt;P&gt;Related question, the above file is owned by root (even when I used the GROUP and USER option during agent install). This is a minor pain point in my environment as it requires I open an internal ticket and wait a few days for any changes to be made to the file. If we were to change ownership of the file would there be any issue with the tags working?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2018 19:22:52 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Do-tags-created-via-hostautotag-conf-always-prepend-Environment/m-p/72704#M4260</guid>
      <dc:creator>tom_lagona1</dc:creator>
      <dc:date>2018-06-01T19:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Do tags created via hostautotag.conf always prepend [Environment] to the tag?</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Do-tags-created-via-hostautotag-conf-always-prepend-Environment/m-p/72705#M4261</link>
      <description>&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;I just tested this on both a Linux and a Windows host and it appended the Environment prefix every time so I do not believe this can be changed. I think it is by design to differentiate what was tagged  manually or using auto-tagging rules in the UI with what was tagged using the &lt;STRONG&gt;hostautotag.conf&lt;/STRONG&gt; file or an environment variable. If you hover your mouse on any of these tags you will see it says "&lt;STRONG&gt;applied by environment&lt;/STRONG&gt;". Tags created using this file cannot be deleted from the UI.&lt;/P&gt;&lt;P&gt;2. I just changed the ownership of the hostautotag.conf from &lt;STRONG&gt;root &lt;/STRONG&gt;to &lt;STRONG&gt;dtuser &lt;/STRONG&gt;and the tags are still there. I will suggest including this in your installation steps if it is mandatory that this be owned by your user i.e. create a script that runs the oneagent installer and then changes ownership of the files/directories that you want to be owned by your USER. &lt;/P&gt;&lt;P&gt;Hope This Helps&lt;/P&gt;&lt;P&gt;NJ&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2018 22:32:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Do-tags-created-via-hostautotag-conf-always-prepend-Environment/m-p/72705#M4261</guid>
      <dc:creator>nj_njoku</dc:creator>
      <dc:date>2018-06-01T22:32:07Z</dc:date>
    </item>
  </channel>
</rss>

