Skip to content
This repository has been archived by the owner on Feb 23, 2022. It is now read-only.

omares/logstash-rpm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 

Repository files navigation

Logstash RPM

This repository contains the necessary files to build a RHEL compatible RPM file for easy installation. Its based on the work of mhorbul and contains the pull requests of dcarley and bflad.

The spec and source files are tweaked/optimized, tidied up and updated to reflect the latest logstash version.

Why?

The RPM installation integrates logstash as good as possible into the system so that the various files (configuration, lock, log, pid) are found in the places you are used to. Besides that it contains a start/stop script which makes the daemonizing and controlling process alot easier.

Its fast, its easy and takes the manuel wget, mkdir, cp processes away we all despise ;)

Disclaimer

The package is mainly used by me. I patched and tested the package to the best of my knowledge. Use at your own risk. If you dont trust me, check the source :)

Status

  • logstash 1.1.9
  • Installs into system java dir. Mostly /usr/share/java/logstash
  • Configuration can be found in the /etc/logstash folder
  • Start/stop script at /etc/init.d/logstash
  • Run file at /var/run
  • PID file at /var/lock/subsys
  • Creates a logstash user and group
  • Tested on Cent OS 6.3

Installation

For the rpm creation we will be using rpmdevtools and mock. superuser access is only required for the yum and rpm installation.

  1. Install the EPEL Repository
  2. Install rpmdevtools
    sudo yum --enablerepo=epel install rpmdevtools
  3. Install mock
    sudo yum --enablerepo=epel install mock
  4. Change into home directory
    cd
  5. Create the required ~/rpmbuild directory structure
    rpmdev-setuptree
  6. Get the latest version of our RPM package
    wget -O logstash-rpm.zip https://github.com/omares/logstash-rpm/archive/master.zip
  7. Unzip magic!
    unzip logstash-rpm.zip
  8. Copy package information into the rpmbuild folder
    cp -rf logstash-rpm-master/* rpmbuild/
  9. Change into rpmbuild directory
    cd rpmbuild
  10. Download the source (jar) files
    spectool -g -R SPECS/logstash.spec
  11. Build Source rpm
    rpmbuild -bs --nodeps SPECS/logstash.spec
  12. Build final/installable rpm
    mock --resultdir RPMS/ SRPMS/logstash-1.1.9-5.el6.src.rpm
  13. Install
    sudo rpm -Uvh RPMS/logstash-1.1.9-5.el6.noarch.rpm
  14. Enjoy!

Collaborate!

Feel free to fork and create pull requests. ;)

Something does not work or is out of date? Fork me! Or create an issue or drop me an email.

About

logstash RPM specs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published