remove logstash-forwarder, it's no longer developed upstream. filebeat
should be used instead. for more information on migrating: https://www.elastic.co/guide/en/beats/filebeat/current/migrating-from-logstash-forwarder.html
This commit is contained in:
parent
928b385857
commit
6cfc098259
@ -1,29 +0,0 @@
|
||||
# $OpenBSD: Makefile,v 1.8 2016/04/21 00:07:08 awolk Exp $
|
||||
|
||||
COMMENT= collect logs locally in preparation for processing elsewhere
|
||||
|
||||
GH_ACCOUNT= elastic
|
||||
GH_PROJECT= logstash-forwarder
|
||||
GH_TAGNAME= v0.4.0
|
||||
REVISION= 2
|
||||
|
||||
MODULES= lang/go
|
||||
|
||||
NO_TEST= Yes
|
||||
|
||||
WANTLIB += c pthread
|
||||
|
||||
pre-configure:
|
||||
${SUBST_CMD} ${WRKSRC}/logstash-forwarder.conf.example
|
||||
|
||||
# Use INSTALL_SCRIPT to prevent stripping go binaries
|
||||
do-install:
|
||||
${INSTALL_SCRIPT} ${MODGO_WORKSPACE}/bin/logstash-forwarder \
|
||||
${PREFIX}/sbin/
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/{doc,examples}/logstash-forwarder/
|
||||
${INSTALL_DATA} ${WRKSRC}/README.md \
|
||||
${PREFIX}/share/doc/logstash-forwarder/
|
||||
${INSTALL_DATA} ${WRKSRC}/logstash-forwarder.conf.example \
|
||||
${PREFIX}/share/examples/logstash-forwarder/
|
||||
|
||||
.include <bsd.port.mk>
|
@ -1,2 +0,0 @@
|
||||
SHA256 (logstash-forwarder-0.4.0.tar.gz) = 2TDNM3R7KCbHNYI4ol5pAyR1HRsJjnwA3hNXlEdms8M=
|
||||
SIZE (logstash-forwarder-0.4.0.tar.gz) = 35189
|
@ -1,60 +0,0 @@
|
||||
$OpenBSD: patch-logstash-forwarder_conf_example,v 1.3 2015/05/15 07:37:14 jasper Exp $
|
||||
|
||||
Provide a reasonable config and don't include arbitrary log files that
|
||||
are most likely not in syslog format.
|
||||
|
||||
--- logstash-forwarder.conf.example.orig Wed Mar 4 21:23:27 2015
|
||||
+++ logstash-forwarder.conf.example Thu May 14 21:29:38 2015
|
||||
@@ -4,16 +4,16 @@
|
||||
# A list of downstream servers listening for our messages.
|
||||
# logstash-forwarder will pick one at random and only switch if
|
||||
# the selected one appears to be dead or unresponsive
|
||||
- #"servers": [ "localhost:5043" ],
|
||||
+ "servers": [ "localhost:12345" ],
|
||||
|
||||
# The path to your client ssl certificate (optional)
|
||||
- #"ssl certificate": "./logstash-forwarder.crt",
|
||||
+ "ssl certificate": "${SYSCONFDIR}/logstash-forwarder/logstash-forwarder.crt",
|
||||
# The path to your client ssl key (optional)
|
||||
- #"ssl key": "./logstash-forwarder.key",
|
||||
+ "ssl key": "${SYSCONFDIR}/logstash-forwarder/logstash-forwarder.key",
|
||||
|
||||
# The path to your trusted ssl CA file. This is used
|
||||
# to authenticate your downstream server.
|
||||
- #"ssl ca": "./logstash-forwarder.crt",
|
||||
+ "ssl ca": "${SYSCONFDIR}/logstash-forwarder/logstash-forwarder.crt"
|
||||
|
||||
# Network timeout in seconds. This is most important for
|
||||
# logstash-forwarder determining whether to stop waiting for an
|
||||
@@ -27,17 +27,18 @@
|
||||
"files": [
|
||||
# An array of hashes. Each hash tells what paths to watch and
|
||||
# what fields to annotate on events from those paths.
|
||||
- #{
|
||||
- #"paths": [
|
||||
+ {
|
||||
+ "paths": [
|
||||
# single paths are fine
|
||||
- #"/var/log/messages",
|
||||
+ "/var/log/messages",
|
||||
+ "/var/log/messages"
|
||||
# globs are fine too, they will be periodically evaluated
|
||||
# to see if any new files match the wildcard.
|
||||
#"/var/log/*.log"
|
||||
- #],
|
||||
+ ],
|
||||
|
||||
# A dictionary of fields to annotate on each event.
|
||||
- #"fields": { "type": "syslog" }
|
||||
+ "fields": { "type": "syslog" }
|
||||
#}, {
|
||||
# A path of "-" means stdin.
|
||||
#"paths": [ "-" ],
|
||||
@@ -47,6 +48,6 @@
|
||||
#"/var/log/apache/httpd-*.log"
|
||||
#],
|
||||
#"fields": { "type": "apache" }
|
||||
- #}
|
||||
+ }
|
||||
]
|
||||
}
|
@ -1,2 +0,0 @@
|
||||
Tool to collect logs locally in preparation for processing elsewhere with
|
||||
logstash.
|
@ -1,10 +0,0 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2014/12/16 15:21:06 jasper Exp $
|
||||
@bin sbin/logstash-forwarder
|
||||
share/doc/logstash-forwarder/
|
||||
share/doc/logstash-forwarder/README.md
|
||||
share/doc/pkg-readmes/${FULLPKGNAME}
|
||||
share/examples/logstash-forwarder/
|
||||
@sample ${SYSCONFDIR}/logstash-forwarder/
|
||||
share/examples/logstash-forwarder/logstash-forwarder.conf.example
|
||||
@sample ${SYSCONFDIR}/logstash-forwarder/logstash-forwarder.conf
|
||||
@rcscript ${RCDIR}/logstash_forwarder
|
@ -1,40 +0,0 @@
|
||||
$OpenBSD: README,v 1.3 2015/05/15 07:37:14 jasper Exp $
|
||||
|
||||
+-----------------------------------------------------------------------
|
||||
| Running ${FULLPKGNAME} on OpenBSD
|
||||
+-----------------------------------------------------------------------
|
||||
|
||||
TLS configuration
|
||||
=================
|
||||
logstash-forwarder will require the usage of an encrypted connection. In
|
||||
order to set this up do not follow the instructions in in
|
||||
${PREFIX}/share/doc/logstash-forwarder/README.md as those instructions
|
||||
are incorrect. Instead generate the certificate and keys with a command
|
||||
like:
|
||||
|
||||
openssl req -x509 -nodes -newkey rsa:2048 -keyout \
|
||||
logstash-forwarder.key -out logstash-forwarder.crt -days 365
|
||||
|
||||
and ensure you enter a valid CN.
|
||||
|
||||
Configure logstash
|
||||
==================
|
||||
In order for logstash to receive the events from logstash-forwarder, a
|
||||
configuration block like the following is needed:
|
||||
|
||||
input {
|
||||
lumberjack {
|
||||
# The port to listen on
|
||||
port => 12345
|
||||
|
||||
# The paths to your ssl cert and key
|
||||
ssl_certificate => "${SYSCONFDIR}/logstash/logstash-forwarder.crt"
|
||||
ssl_key => "${SYSCONFDIR}/logstash/logstash-forwarder.key"
|
||||
|
||||
# Set this to whatever you want.
|
||||
type => "logs"
|
||||
}
|
||||
}
|
||||
|
||||
Adjust 'ssl_key', 'ssl_certificate' and 'port' as needed to match your
|
||||
setup.
|
@ -1,13 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $OpenBSD: logstash_forwarder.rc,v 1.2 2015/05/15 07:37:14 jasper Exp $
|
||||
|
||||
daemon="${PREFIX}/sbin/logstash-forwarder"
|
||||
daemon_flags="-config ${SYSCONFDIR}/logstash-forwarder/logstash-forwarder.conf"
|
||||
|
||||
. /etc/rc.d/rc.subr
|
||||
|
||||
rc_bg=YES
|
||||
rc_reload=NO
|
||||
|
||||
rc_cmd $1
|
Loading…
Reference in New Issue
Block a user