Environment Variables Used by the Server-to-Server Collector

The environment variables used by the server-to-server collector are available in the historian-s2s-collector-config.json file. The following table describes these variables.
Important: For OPCUA DA, Server-to-Server, and Server-to-Cloud collectors, ensure that you have set the environment variables correctly before applying the configuration changes. This is because after you have applied the configuration changes for a collector, you cannot set the environment variables. If, however, you must change the values of the environment variables after the applying the changes, you must change the InterfaceName and DefaultTagPrefix values. When you do so, a new instance of the collector is created. As a result, you must add the tags again.
Environment Variable Description Default Value Valid Values
HistorianNodeName The host name of the Historian server to which you want to send data using the server-to-server collector. A value is required. You can choose to send data to an server that is on-premises or on Predix cloud.
InterfaceName The name of the server-to-server collector. historian-s2c
DefaultTagPrefix The default prefix for the tags created by the server-to-server collector. For example, if you enter s2s, for a tag named pressure, a tag with the following name is created: s2s.pressure historian-s2c.
General3 The IP address of the Historian archiver.
OfflineTagConfigurationFile The absolute path to the offline tag configuration file. /config/tag-list.xml
HS_NUMBER_OF_LOG_FILES Maximum number of Log Files. Once this value exceeds, the oldest file will be deleted to accommodate new one. Its default value is 100, and range is from 1 to 100. 100 1 to 100
HS_SIZE_OF_EACH_LOG_FILE Maximum size of one Log file in Mega Bytes. If this value exceeds, new Log File will be created. 10 1 to 10