Installing and managing Windows connector


Install the Windows connector to collect data from the Windows-based application log files and Amazon Web Services.

This connector supports the File and AWS collection types only.

The following image shows the list of tasks that you can perform for the connector:

Windows_Connector_topics.png


Before you begin

  • Ensure that you are downloading and installing the connector on a Windows server, version 2012 or later.
  • Ensure that you have the privileges to execute a batch file and install an application as a service.
  • Ensure that the 24444 port is available on the Windows server from where logs will be collected.


To download and install a connector

  1. From the Collection menu, select Connectors.
  2. On the Connectors page, click Create.
  3. In the Connector Name field, enter a unique connector name.
  4. From the Select Connector Type list, select Windows Connector.
  5. In the Description field, enter connector description.
  6. In the Download Connector step, click Download.
    The connector is downloaded in a .zip file with the name tdc-connector-windows-<build_number>.zip.
  7. In the Tags step, add tags (in the form of key-value pairs) to identify the connector; for example, name-windows, location-Pune, and so on.
  8. Click + to add the tag.

    Important

    Even if you are adding only one tag, ensure that you click +.

  9. In the Download Install Script step, click Download.
    The format of the 
    .bat file name is install-connector-<connector name>.bat. For example, if you entered the connector name as my-bmc, the .bat filename is install-connector-my-bmc.bat.

    Important

    Install only one connector for a Windows server to avoid port conflicts.

  10. On the Windows server from where logs will be collected, create a new folder and copy the downloaded .zip and .bat files.

    Important

    Ensure that there are no spaces in the folder names or in the whole path that you have provided.

  11. Extract the .zip file by using the Extract here option.

    Important

    You get the BMC-DevTools folder after extracting the .zip file. The BMC-DevTools folder and the .bat file must be at the same level in the folder hierarchy. For example, if you extract the downloaded connector file in the C:\Connector folder, ensure that the downloaded .bat file is also present inside the Connector folder.

    Windows_connector_location.png

  12. Open the command prompt with administrative privileges.
  13. Go to the folder where you have extracted the .zip file and copied the .bat file.
  14. Execute the .bat file.
    The connector is installed and starts as a Windows service. Access the connector logs at the following location: <Folder where the zip file is extracted>\BMC-DevTools\opt\td-agent\td-agent.log.


To communicate with the connector through a proxy

Connector can communicate with the proxy over HTTP protocol only. 

  1. Go to System Properties > Environment Variables.
  2. In the System variable section, click New.
  3. Enter Variable name as HTTP_PROXY and Variable value as http://<proxy-host>:<proxy-port> (example: http://proxyserver:8080).
  4. Save the variable and restart the connector service.

    Important

    To set the HTTP proxy environment variable at user level, configure the connector service by using the user account (log on as a service).


To verify connector installation

To verify the connector installation, go to the Collection menu and click Connectors, and look for the installed connector on the page. Connectors will be available in one of the following status:

  • Created: The connector was installed successfully, but has not started sending heartbeats.
  • Active: The connector is sending heartbeats.
  • Suspended: The connector has not sent heartbeats for a preconfigured time. You can delete a connector only in this status.


To stop a connector service

  • From the service console:
    1. Go to the Task Manager.
    2. Click the Services tab.
    3. Search and select the connector name that you entered.
    4. Click Stop.
  • From the command prompt:
    1. Open command prompt. 
    2. Run the following command:
      sc stop <service_name>


To start a connector service

  • From the service console:
    1. Go to the Task Manager.
    2. Click the Services tab.
    3. Search and select the connector name that you entered.
    4. Click Start.
  • From the command prompt:
    1. Open command prompt. 
    2. Run the following command:
      sc start <service_name>


To uninstall a connector service

  1. Ensure that the connector is not associated with a collection policy.
  2. Stop the connector service.
  3. Delete the connector service by running the following command:
    sc delete <service_name>
  4. To verify that  the connector service is deleted:
    sc query <service_name>
  5. Delete the folder where you unzipped the downloaded connector file.


To delete a connector

  1. Ensure that the connector is not associated with a collection policy.
  2. Stop the connector and wait for 5 minutes.
    When you stop the connector, its status changes to Suspended.
  3. On the Connector page, for the required connector, click the Actions menu and select Delete.
  4. Confirm deletion by clicking Yes


Where to go from here

Creating-a-parsing-rule

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*