This cookbook installs the Sumo Logic collector. Linux installs use the shell script installer and Windows uses the exe installer. Here are the steps it follows:
- Sets up
sumo.conf
andsumo.json
. By default the standard Linux logs are captured. On Windows the application and system event logs are captured. - Downloads latest installer
- Runs installer
- Starts collector and registers with the Sumo Logic service
The collector Requires outbound access to https://collectors.sumologic.com.
Edit sumo.json
to add/edit/remove sources. After installation you can
test connectivity.
- Create an Access Key
- Install the cookbook in your Chef repo (your knife version should be at least 11.10.4 and you should have the knife github plugin installed):
knife cookbook github install SumoLogic/sumologic-collector-chef-cookbook
-
Specify data bag and item with your access credentials. The data item should contain attributes
accessID
andaccessKey
. Note that attribute names are case sensitive. If the cases mismatch, the values will not appear when chef-client runs. The default data bag/item is['sumo-creds']['api-creds']
-
Upload the cookbook to your Chef Server:
knife cookbook upload sumologic-collector
- Add the
sumologic-collector
receipe to your node run lists. This step depends on your node configuration, so specifics will not be described in this README.md.
['sumologic']['ephemeral'] | Boolean | Sumo Logic Ephemeral Setting | Required |
['sumologic']['installDir'] | String | Sumo Logic Install Directory | Required |
['sumologic']['credentials']['bag_name'] | String | Name of the data bag. | Required |
['sumologic']['credentials']['item_name'] | String | Name of the item within the data bag. | Required |
['sumologic']['credentials']['secret_file'] | String | Path to the local file containing the encryption secret key. | Optional |
This cookbook is meant to help customers use Chef to install Sumo Logic collectors, so please feel to fork this repository, and make whatever changes you need for your environment.
Authors: Ben Newton ([email protected])