This is a short step-by-step guide on installing ElasticSearch LogStash and Kibana Stack on a CentOS environment to gather and analyze logs.
rpm -ivh https://dl.dropboxusercontent.com/u/5756075/jdk-7u45-linux-x64.rpm
| # Example nginx + git HTTP Smart mode (git-http-backend) + HTTP Authentication + HTTPS redirect | |
| # jeroen@massar.ch - http://jeroen.massar.ch | |
| server { | |
| listen 192.0.1.1:80; | |
| listen [2001:db8::1]:80; | |
| # Redirect all non-HTTPS traffic to the HTTPS variant | |
| return 301 https://$host$request_uri; | |
| } |
| <VirtualHost *:80> | |
| ServerName your.domain.name | |
| DocumentRoot /srv/http | |
| setEnv GIT_PROJECT_ROOT /opt/git | |
| setEnv GIT_HTTP_EXPORT_ALL | |
| scriptAlias /git/ /usr/lib/git-core/git-http-backend/ | |
| <Directory /> | |
| Order allow,deny |
| #This is the "site config" for nginx | |
| upstream django { | |
| # Distribute requests to servers based on client IP. This keeps load | |
| # balancing fair but consistent per-client. In this instance we're | |
| # only using one uWGSI worker anyway. | |
| ip_hash; | |
| server unix:/tmp/uwsgi.sock; | |
| } | |
| server { |
This gist assumes:
| # graphite-web install is hardcoded in setup.cfg to /opt/graphite | |
| sudo mkdir /opt/graphite | |
| sudo chown brad.users /opt/graphite | |
| # run under python2.7 virtualenv | |
| virtualenv --python=python2.7 ~/ve/graphite | |
| source ~/ve/graphite/bin/activate | |
| # install the necessary python packages (simplejson is for flot graphs) | |
| pip install graphite-web carbon whisper django django-tagging uwsgi simplejson |
| [Desktop Entry] | |
| Name=Aptana Studio 3 | |
| Comment=Integrated development environment (IDE) for building Ajax web applications. | |
| Exec=/home/kerrick/Applications/Aptana/AptanaStudio3 -applciation | |
| Icon=/home/kerrick/Applications/Aptana/icon.xpm | |
| Terminal=false | |
| Type=Application | |
| StartupNotify=true | |
| Categories=Development;RevisionControl; | |
| X-GNOME-FullName=Aptana Studio 3 |