Skip to content

Instantly share code, notes, and snippets.

@technosophos
Last active January 11, 2020 21:41
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save technosophos/5009484 to your computer and use it in GitHub Desktop.
Save technosophos/5009484 to your computer and use it in GitHub Desktop.
An upstart (Ubuntu 12.04) script for starting Kibana as a service. The file goes in /etc/init/. This goes with the Upstart script for Logstash (http://cookbook.logstash.net/recipes/using-upstart/)
# kibana.conf# kibana - log viewer
#
description "Kibana logstash viewer"
start on virtual-filesystems
stop on runlevel [06]
respawn
respawn limit 5 30
limit nofile 65550 65550
# Environment
env HOME=/opt/kibana
chdir /opt/kibana
setuid logstash
setgid adm
console log
# Run Kibana, which is in /opt/kibana
script
ruby kibana.rb
end script
@technosophos
Copy link
Author

This uses a user called 'logstash', though you could create your own user just as easily.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment