Skip to content
This repository has been archived by the owner on Sep 30, 2021. It is now read-only.

Commit

Permalink
Removed logstash verbose flag and also fixed #3 & fixed #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Bhaskar Karambelar authored and Bhaskar Karambelar committed Jul 15, 2015
1 parent 73a3f94 commit 3cd4a41
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.vagrant/
conf/*.yml
conf/*.conf
logs/
data/
*.rpm
Expand Down
1 change: 1 addition & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Vagrant.configure("2") do |config|
cluster_ram = cluster_ram.to_i

cluster_cpu = utils.get_cluster_info 'cluster_cpu'
cluster_cpu = cluster_cpu.to_i

config.vm.box = 'chef/centos-7.1'

Expand Down
6 changes: 3 additions & 3 deletions lib/elasticsearch-module.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def get_vm_name(index)

def get_vm_ip(index)
ip = get_cluster_info 'cluster_ip'
ip % (10 + index)
ip.strip % (10 + index)
end

def get_node_name(index)
Expand All @@ -44,7 +44,7 @@ def get_kibana_vm_name

def get_kibana_vm_ip
ip = get_cluster_info 'cluster_ip'
ip % 250
ip.strip % 250
end

def get_kibana_node_name
Expand All @@ -57,7 +57,7 @@ def get_logstash_vm_name

def get_logstash_vm_ip
ip = get_cluster_info 'cluster_ip'
ip % 251
ip.strip % 251
end

def get_logstash_node_name
Expand Down
2 changes: 1 addition & 1 deletion scripts/logstash-start
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ then
else
mkdir -p /vagrant/logs

screen -S logstash -d -m bash -l -c "logstash --verbose -f /vagrant/conf/logstash-${VM_NAME}.conf > /vagrant/logs/logstash-${VM_NAME}.log 2>&1"
screen -S logstash -d -m bash -l -c "logstash -f /vagrant/conf/logstash-${VM_NAME}.conf > /vagrant/logs/logstash-${VM_NAME}.log 2>&1"
echo "-----------------------------------------------------------------------------------------------------------"
echo " => Started $VM_NAME - $VM_NODE_NAME - $VM_NODE_IP: $(screen -li | grep logstash | sed 's/\s/ /g')"
echo "-----------------------------------------------------------------------------------------------------------"
Expand Down

0 comments on commit 3cd4a41

Please sign in to comment.