Created
February 10, 2014 17:00
-
-
Save BlackMaria/8919881 to your computer and use it in GitHub Desktop.
here is an quick example of how to install logstash and kibana to get you quick started
This file contains hidden or 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
#!/bin/sh | |
# | |
# To use logstash you need java | |
# To use kibana you need nodejs | |
# | |
# java and nodejs are on EPEL | |
# | |
rpm -Uvh http://fedora.mirror.nexicom.net/epel/6/i386/epel-release-6-8.noarch.rpm | |
yum -y install java-1.7.0-openjdk nodejs | |
# Make the logstsh DIR | |
mkdir /opt/logstash | |
################################################### | |
# CREATE AN LS ES CONFIG | |
cat <<EOF>/opt/logstash/es.conf | |
# ingest | |
input { | |
file { | |
path => "/var/log/syslog.log" | |
start_position => "beginning" | |
} | |
} | |
output{elasticsearch{embedded=>true}} | |
EOF | |
################################################### | |
# Get logstash and start the process | |
cd /opt/logstash | |
wget --no-check-certificate https://download.elasticsearch.org/logstash/logstash/logstash-1.3.3-flatjar.jar | |
java -jar logstash-1.3.3-flatjar.jar agent -f /opt/logstash/es.conf & | |
# Get kibana | |
cd /opt | |
git clone https://github.com/elasticsearch/kibana.git | |
# This tar ball seems to be missing the sample dir? | |
# wget --no-check-certificate https://download.elasticsearch.org/kibana/kibana/kibana-3.0.0milestone4.tar.gz | |
# tar -C /opt/ -xzvf /opt/kibana-3.0.0milestone4.tar.gz | |
cd /opt/kibana/sample | |
node server.js & | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment