RSYLOG Cookbook for Chef
Installs and configure RSYSLOG.
node['chef-rsyslog']['configure']
: Arguments given to configure
command before compilenode['chef-rsyslog']['files']
: Files you want to watchnode['chef-rsyslog']['modules']
: Built-in modules: datadog
node['chef-rsyslog']['dir_create_mode']
: doc
node['chef-rsyslog']['file_create_mode']
: docnode['chef-rsyslog']['file_group']
: docnode['chef-rsyslog']['file_owner']
: docnode['chef-rsyslog']['polling_interval']
: Time in second to execute the polling on filenode['chef-rsyslog']['priv_drop_to_group']
: docnode['chef-rsyslog']['priv_drop_to_user']
: docnode['chef-rsyslog']['umask']
: doc
node['chef-rsyslog']['source']['checksum']
: Checksum of the downloaded tarball
node['chef-rsyslog']['source']['extension']
: The extension of the downloaded tarballnode['chef-rsyslog']['source']['uri']
: The URI, with no file name of the downloaded tarballnode['chef-rsyslog']['source']['version']
: The version number of the downloaded tarball
node['chef-rsyslog']['source']['folder_name']
: The folder name of the downloaded tarball
node['chef-rsyslog']['source']['file_name']
: The file name of the downloaded tarballnode['chef-rsyslog']['source']['file_path']
: The file path where tarball will be savednode['chef-rsyslog']['source']['folder_path']
: The folder path where tarball will be extractednode['chef-rsyslog']['source']['url']
: The URL for download of the tarball
node['chef-rsyslog']['libfastjson']['source']['checksum']
: Checksum of the downloaded tarball
node['chef-rsyslog']['libfastjson']['source']['extension']
: The extension of the downloaded tarballnode['chef-rsyslog']['libfastjson']['source']['uri']
: The URI, with no file name of the downloaded tarballnode['chef-rsyslog']['libfastjson']['source']['version']
: The version number of the downloaded tarball
node['chef-rsyslog']['libfastjson']['source']['folder_name']
: The folder name of the downloaded tarball
node['chef-rsyslog']['libfastjson']['source']['file_name']
: The file name of the downloaded tarballnode['chef-rsyslog']['libfastjson']['source']['file_path']
: The file path where tarball will be savednode['chef-rsyslog']['libfastjson']['source']['folder_path']
: The folder path where tarball will be extractednode['chef-rsyslog']['libfastjson']['source']['url']
: The URL for download of the tarball
node['chef-rsyslog']['source']['dependencies']
: Libs needed to precompile and configurates the RSYSLOG
source 'https://supermarket.chef.io'
cookbook 'chef-rsyslog'
The following nodes is an example of the minimal needed to run correctly this cookbook:
{
"run_list": [
"recipe[chef-rsyslog]"
]
}
By default, the path of the files will be used as Tag
on imfile
replacing /
by _
.
"chef-rsyslog": {
"files": [
"/var/log/nginx/access.log",
}
}
The path /var/log/nginx/access.log
wil be a Tag
like _var_log_nginx_access.log
.
If you want a custom tag, just pass the name separated by a space after the file name.
"chef-rsyslog": {
"files": [
"/var/log/nginx/access.log nginx_access",
}
}
Now Tag
will be nginx_access
.
Modules are configurations pre written for you, just pass your credentials.
Just add the the Datadog API Key and it will work out of box:
"modules": {
"datadog": {
"api_key": "my_api_key"
}
}