Skip to content

Commit

Permalink
Merge pull request #17 from evertrue/eherot/log_shipping
Browse files Browse the repository at this point in the history
Do remote logging
  • Loading branch information
Eric Herot committed Jul 22, 2016
2 parents cbe1caa + bbe3b51 commit 159ce3b
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .kitchen.cloud.yml
Expand Up @@ -36,7 +36,10 @@ suites:
- recipe[et_cassandra::opscenter]
- recipe[et_cassandra::backups]
- recipe[cassandra_fake_data::default]
- recipe[et_logger::forwarder]
attributes:
et_logger:
generate_cert: true
et_cassandra:
snapshot:
data_bag: false
Expand Down
3 changes: 3 additions & 0 deletions .kitchen.yml
Expand Up @@ -17,7 +17,10 @@ suites:
- recipe[et_cassandra::default]
- recipe[et_cassandra::opscenter]
- recipe[et_cassandra::backups]
- recipe[et_logger::forwarder]
attributes:
et_logger:
generate_cert: true
ec2:
placement_availability_zone: us-east-1b
et_cassandra:
Expand Down
2 changes: 2 additions & 0 deletions Berksfile
@@ -1,8 +1,10 @@
source :chef_server
source 'https://supermarket.chef.io'

metadata

group :integration do
cookbook 'et_logger'
cookbook 'ec2test', path: 'test/integration/cookbooks/ec2test'
cookbook 'cassandra_fake_data', path: 'test/integration/cookbooks/cassandra_fake_data'
end
1 change: 1 addition & 0 deletions recipes/default.rb
Expand Up @@ -15,3 +15,4 @@
include_recipe 'java'
include_recipe 'et_cassandra::install'
include_recipe 'et_cassandra::repair_jobs'
include_recipe 'et_cassandra::logging'
10 changes: 10 additions & 0 deletions recipes/logging.rb
@@ -0,0 +1,10 @@
#
# Cookbook Name:: et_cassandra
# Recipe:: logging
#
# Copyright (c) 2016 EverTrue, Inc., All Rights Reserved.

node.override['filebeat']['prospectors']['cassandra_system']['filebeat']['prospectors'] = {
'paths' => ["#{node['et_cassandra']['log_dir']}/system.log"],
'document_type' => 'cassandra_system'
}
4 changes: 4 additions & 0 deletions test/integration/data_bags/certificates/logstash.json
@@ -0,0 +1,4 @@
{
"id": "logstash",
"data": {}
}
24 changes: 24 additions & 0 deletions test/integration/nodes/_default-logs.json
@@ -0,0 +1,24 @@
{
"name": "_default-logs",
"chef_environment": "_default",
"run_list": [
"recipe[et_base]",
"recipe[logserver]",
"role[loghost]"
],
"automatic": {
"ipaddress": "10.99.5.247",
"fqdn": "_default-logs",
"cloud": {
"local_ipv4": "10.99.5.247"
},
"recipes": [
"rsyslog::default",
"rsyslog::server",
"logserver::default"
],
"roles": [
"loghost"
]
}
}

0 comments on commit 159ce3b

Please sign in to comment.