Installs the LogDNA host agent. Currently only supports apt systems.
Key | Type | Description | Default |
---|---|---|---|
['logdna_agent']['api_key'] | String | Your API key as provided by LogDNA. | '' |
['logdna_agent']['log_directories'] | Array[String] | Directories to follow (recursively) in addition to /var/log. | [] |
['logdna_agent']['tags'] | String | (Optional) Comma-separated list of tags to apply to the host. | '' |
Just include logdna_agent
in your node's run_list
and set api_key
and (optionally)log_directories
:
{
"name":"my_node",
"run_list": [
"recipe[logdna_agent]"
]
}
node.set['logdna_agent']['api_key'] = 'XXXXXXXXXXXXXXXXXXXXXXXXX'
node.set['logdna_agent']['log_directories'] = ['/go/bin/']