Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from evertrue/eherot/log_shipping
Do remote logging
- Loading branch information
Showing
7 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"id": "logstash", | ||
"data": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
] | ||
} | ||
} |