Provides a common repository of logstash recipes for various technologies that produce logs. All of the recipes here call logstash_config
from the upstream lusis/chef-logstash and use that to configure the logs to be sent to logstash for that particular technology. The hope is that you would eventually be able to simply include logstash, apache2, and logstash_commons::apache, and have a fully working apache2 and logstash server that can parse Apache logs.
See CHANGELOG.md for additional information about changes to this stack over time.
Ubuntu 12.04
Ubuntu 14.04
CentOS 6.5
Please describe any attributes exposed by this stack, and what the default values are. There shouldn't be any attributes without a default value (e.g. no required attributes, sensible defaults).
Key | Type | Description | Default |
---|---|---|---|
['logstash_commons']['instance_name'] | String | name of logstash_instance | 'default'' |
['logstash_commons']['service_name'] | Boolean | name of logstash_service | 'default' |
['logstash_commons']['restart_service'] | Boolean | whether to restart logstash when templates are acted upon | true |
Does nothing.
Each recipe configures a logstash_config for the default logging location and default log patterns for an upstream cookbook or service of that name. For example, logstash_commons::apache uses the upstream apache2 cookbook attributes to configure logstash to watch and parse any logs.
See CONTRIBUTING.
Author:: Rackspace ([email protected])
# Copyright 2014, Rackspace Hosting
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#