Tags & Attributes

You can send tags and attributes through the Windows Agent by updating files in from the /CollectedWin/config folder.

Sending Tags

  1. Navigate to the /CollectdWin/config/ReadWindowsTags.config file.

  2. Update the <Tags> section.

    • Tag Name ="tag1”: replace tag1 with the static key for this tag.

    • Value="value1”: replace value1 with the host’s tag value.

  3. Save your file.

Sending Attributes

  1. Navigate to the /CollectdWim/config/ReadWindowsAttributes.config file.

  2. Update the <EnvironmentVariables> section.

Attribute Example

<ReadWindowsAttributes ReadEC2InstanceMetadata="true">
  <EnvironmentVariables>
    <EnvironmentVariable Name="processor_architecture" Value="PROCESSOR_ARCHITECTURE"/>
    <EnvironmentVariable Name="number_of_processors" Value="NUMBER_OF_PROCESSORS"/>
  </EnvironmentVariables>
</ReadWindowsAttributes>

Tip

You must choose an environment variable listed by the host when running set from the command prompt, e.g. PROCESSOR_ARCHITECTURE:

send-attributes-cmd.png