idella4     15/04/14 11:21:06

  Added:                logstash.initd agent.conf.sample logstash.logrotate
                        logstash.confd
  Log:
  new ebuild to complete the ELK set (elasticsearch logstash kibabana), a 
binary style ebuild written by Tomas Mozes, run tested and checked by myself, 
entered under proxy-maint herd, cannot close bug 447192 since that requires a 
full source build with deps
  
  (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 
0xB8072B0D)

Revision  Changes    Path
1.1                  app-admin/logstash-bin/files/logstash.initd

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/logstash-bin/files/logstash.initd?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/logstash-bin/files/logstash.initd?rev=1.1&content-type=text/plain

Index: logstash.initd
===================================================================
#!/sbin/openrc-run
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

LOGSTASH_USER=${LOGSTASH_USER:-root}
LOGSTASH_GROUP=${LOGSTASH_GROUP:-root}
LOGFILE="/var/log/logstash/logstash.log"

command="/opt/logstash/bin/logstash"
command_args="agent --config /etc/logstash/conf.d/*.conf --log ${LOGFILE}"
extra_commands="checkconfig"
command_background="true"
start_stop_daemon_args="--user=\"${LOGSTASH_USER}\""
pidfile="/run/logstash/logstash.pid"

depend() {
        use net
        after elasticsearch
}

checkconfig() {
        ebegin "Checking your configuration"
        ${command} ${command_args} --configtest
        eend $? "Configuration error. Please fix your configuration files."
}

start_pre() {
        checkconfig || return 1

        checkpath -d -o "${LOGSTASH_USER}":"${LOGSTASH_GROUP}" -m750 "$(dirname 
"${pidfile}")"
        checkpath -d -o "${LOGSTASH_USER}":"${LOGSTASH_GROUP}" -m750 "$(dirname 
"${LOGFILE}")"
        checkpath -f -o "${LOGSTASH_USER}":"${LOGSTASH_GROUP}" -m640 
"${LOGFILE}"
}



1.1                  app-admin/logstash-bin/files/agent.conf.sample

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/logstash-bin/files/agent.conf.sample?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/logstash-bin/files/agent.conf.sample?rev=1.1&content-type=text/plain

Index: agent.conf.sample
===================================================================
input {
    stdin {
        type => "stdin"
    }

    file {
        type => "syslog"
        path => [ "/var/log/*.log", "/var/log/debug", "/var/log/messages", 
"/var/log/syslog" ]
    }
}

output {
    stdout {
        codec => rubydebug
    }
  
    elasticsearch {
        host => localhost
        cluster => elasticsearch
    }
}



1.1                  app-admin/logstash-bin/files/logstash.logrotate

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/logstash-bin/files/logstash.logrotate?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/logstash-bin/files/logstash.logrotate?rev=1.1&content-type=text/plain

Index: logstash.logrotate
===================================================================
/var/log/logstash/*.log {
        copytruncate
        compress
        missingok
        notifempty
}



1.1                  app-admin/logstash-bin/files/logstash.confd

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/logstash-bin/files/logstash.confd?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/logstash-bin/files/logstash.confd?rev=1.1&content-type=text/plain

Index: logstash.confd
===================================================================
#LOGSTASH_USER=""
#LOGSTASH_GROUP=""




Reply via email to