mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-17 08:01:36 +00:00
New port, sysutils/log-courier: Lightweight log shipper
WWW: https://github.com/driskell/log-courier PR: 213227 Submitted by: vikashb@where-ever.za.net (maintainer)
This commit is contained in:
parent
ce4a243d23
commit
5c2ec256c9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=465992
@ -588,6 +588,7 @@
|
|||||||
SUBDIR += lmon
|
SUBDIR += lmon
|
||||||
SUBDIR += lnav
|
SUBDIR += lnav
|
||||||
SUBDIR += lockfile-progs
|
SUBDIR += lockfile-progs
|
||||||
|
SUBDIR += log-courier
|
||||||
SUBDIR += log_analysis
|
SUBDIR += log_analysis
|
||||||
SUBDIR += logrotate
|
SUBDIR += logrotate
|
||||||
SUBDIR += logstalgia
|
SUBDIR += logstalgia
|
||||||
|
27
sysutils/log-courier/Makefile
Normal file
27
sysutils/log-courier/Makefile
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
# $FreeBSD$
|
||||||
|
|
||||||
|
PORTNAME= log-courier
|
||||||
|
DISTVERSIONPREFIX= v
|
||||||
|
DISTVERSION= 2.0.5
|
||||||
|
CATEGORIES= sysutils
|
||||||
|
|
||||||
|
MAINTAINER= vikashb@where-ever.za.net
|
||||||
|
COMMENT= Lightweight log shipper with Logstash integration
|
||||||
|
|
||||||
|
LICENSE= APACHE20
|
||||||
|
|
||||||
|
BUILD_DEPENDS= go:lang/go
|
||||||
|
|
||||||
|
USES= go gmake
|
||||||
|
USE_GITHUB= yes
|
||||||
|
GH_ACCOUNT= driskell
|
||||||
|
GO_PKGNAME= github.com/driskell/log-courier
|
||||||
|
|
||||||
|
USE_RC_SUBR= log-courier
|
||||||
|
SUB_FILES= pkg-message
|
||||||
|
|
||||||
|
post-install:
|
||||||
|
${INSTALL_DATA} ${WRKSRC}/docs/examples/example-json.conf \
|
||||||
|
${STAGEDIR}${PREFIX}/etc/log-courier.conf.example
|
||||||
|
|
||||||
|
.include <bsd.port.mk>
|
3
sysutils/log-courier/distinfo
Normal file
3
sysutils/log-courier/distinfo
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
TIMESTAMP = 1522433109
|
||||||
|
SHA256 (driskell-log-courier-v2.0.5_GH0.tar.gz) = fbe380c8c65e5c866cd89a081c2bdd716383c0cdac53c5c3f0b1a69f2d5fe14b
|
||||||
|
SIZE (driskell-log-courier-v2.0.5_GH0.tar.gz) = 228280
|
33
sysutils/log-courier/files/log-courier.in
Normal file
33
sysutils/log-courier/files/log-courier.in
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# $FreeBSD$
|
||||||
|
|
||||||
|
# PROVIDE: log_courier
|
||||||
|
# REQUIRE: DAEMON
|
||||||
|
# BEFORE: LOGIN
|
||||||
|
# KEYWORD: shutdown
|
||||||
|
|
||||||
|
# Add the following lines to /etc/rc.conf to enable logstash-forwarder:
|
||||||
|
# log_courier_enable (bool): Set to YES to logstash-forwarder
|
||||||
|
# Default: NO
|
||||||
|
# log_courier_flags (str): Extra flags passed to log-courier
|
||||||
|
# log_courier_conf (str): log-courier configuration file
|
||||||
|
# Default: ${PREFIX}/etc/log-courier.conf
|
||||||
|
|
||||||
|
. /etc/rc.subr
|
||||||
|
|
||||||
|
name="log_courier"
|
||||||
|
rcvar=log_courier_enable
|
||||||
|
|
||||||
|
load_rc_config ${name}
|
||||||
|
|
||||||
|
logdir="/var/log"
|
||||||
|
|
||||||
|
: ${log_courier_enable="NO"}
|
||||||
|
: ${log_courier_flags=""}
|
||||||
|
: ${log_courier_conf="%%PREFIX%%/etc/log-courier.conf"}
|
||||||
|
|
||||||
|
log_courier_cmd="%%PREFIX%%/bin/log-courier"
|
||||||
|
command="/usr/sbin/daemon"
|
||||||
|
command_args="${log_courier_cmd} -config ${log_courier_conf}"
|
||||||
|
|
||||||
|
run_rc_command "$1"
|
@ -0,0 +1,20 @@
|
|||||||
|
--- docs/examples/example-json.conf.orig 2016-06-11 14:02:51 UTC
|
||||||
|
+++ docs/examples/example-json.conf
|
||||||
|
@@ -2,12 +2,15 @@
|
||||||
|
"admin": {
|
||||||
|
"enabled": true
|
||||||
|
},
|
||||||
|
+ "general": {
|
||||||
|
+ "persist directory": "/var/lib/log-courier"
|
||||||
|
+ },
|
||||||
|
"network": {
|
||||||
|
"servers": [ "localhost:5043" ],
|
||||||
|
- "ssl ca": "./logstash.cer"
|
||||||
|
+ "ssl ca": "/usr/local/etc/logstash-forwarder.crt"
|
||||||
|
},
|
||||||
|
"files": [ {
|
||||||
|
- "paths": [ "/var/log/httpd/*/*.log" ],
|
||||||
|
+ "paths": [ "/var/log/httpd*.log" ],
|
||||||
|
"fields": {
|
||||||
|
"type": "apache"
|
||||||
|
}
|
9
sysutils/log-courier/files/pkg-message.in
Normal file
9
sysutils/log-courier/files/pkg-message.in
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
=========================================================================
|
||||||
|
If you want to run log-courier, add to /etc/rc.conf
|
||||||
|
|
||||||
|
log_courier_enable="YES"
|
||||||
|
|
||||||
|
Do not forget to edit your configuration file:
|
||||||
|
|
||||||
|
Default: ${PREFIX}/etc/log-courier.conf
|
||||||
|
=========================================================================
|
6
sysutils/log-courier/pkg-descr
Normal file
6
sysutils/log-courier/pkg-descr
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
Log Courier is a lightweight tool created to ship log files speedily and
|
||||||
|
securely, with low resource usage, to remote Logstash instances.
|
||||||
|
|
||||||
|
It is developed to be efficient, reliable, scalable, and easy to use.
|
||||||
|
|
||||||
|
WWW: https://github.com/driskell/log-courier
|
2
sysutils/log-courier/pkg-plist
Normal file
2
sysutils/log-courier/pkg-plist
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
bin/log-courier
|
||||||
|
@sample etc/log-courier.conf.example etc/log-courier.conf
|
Loading…
Reference in New Issue
Block a user