As a follow up to the previous post about logstash, here are a couple of related init scripts for anyone implementing the OpenSource Log Analytics setup that is explained over at divisionbyzero. These have been tested on CentOS 6.3 and are based on generic RC functions from Redhat so they will work with Redhat, CentOS, Fedora, Scientific Linux, etc.
- Init script for ElasticSearch: located in the repo by clicking here – servicewrapper required
- Init script for Kibana: located in the repo by clicking here.
Your Kibana init script calls #!/bin/sh, shouldn’t it call #!/bin/bash? Thanks for this script!
The script specifies “/bin/sh” but it can use “/bin/bash” — there aren’t any bash specific items in the code that require that shell, so the lighter weight and more portable (bash isn’t installed on every unix so it’s common to code things in sh to ensure code can work on environments that don’t have bash) shell was chosen.