mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-05 01:55:52 +00:00
ebc8e584cb
Changes since 7.9.1: * Breaking changes - Affecting all Beats - Autodiscover doesn’t generate any configuration when a variable is missing. Previously it generated an incomplete configuration. * Bugfixes - Affecting all Beats - Explicitly detect missing variables in autodiscover configuration, log them at the debug level. - Fix libbeat.output.write.bytes and libbeat.output.read.bytes metrics of the Elasticsearch output. - Filebeat - Provide backwards compatibility for the set processor when Elasticsearch is less than 7.9.0. - Fix an error updating file size being logged when EOF is reached. - Fix error when processing AWS Cloudtrail Digest logs. - Metricbeat - The Kibana collector applies backoff when errored at getting usage stats - The elasticsearch/index metricset only requests wildcard expansion for hidden indices if the monitored Elasticsearch cluster supports it. - Fix panic index out of range error when getting AWS account name. - Handle missing counters in the application_pool metricset. - Functionbeat - Do not need Google credentials if not required for the operation. - Fix dependency issues of GCP functions. * Added - Affecting all Beats - Add container ECS fields in kubernetes metadata. FreeBSD notes: - Fixed PRs: - bug #248499 - bug #244627 - bug #228785 - Fix paths in various (mostly example) files Release Notes: https://www.elastic.co/guide/en/beats/libbeat/current/release-notes-7.9.2.html PR: 249912 Submitted by: Juraj Lutter <juraj@lutter.sk>
45 lines
1.3 KiB
Bash
45 lines
1.3 KiB
Bash
#!/bin/sh
|
|
# $FreeBSD$
|
|
|
|
# PROVIDE: packetbeat
|
|
# REQUIRE: DAEMON
|
|
# BEFORE: LOGIN
|
|
# KEYWORD: shutdown
|
|
|
|
# Add the following lines to /etc/rc.conf to enable packetbeat
|
|
#
|
|
# packetbeat_enable (bool): Set to YES to enable packetbeat
|
|
# Default: NO
|
|
# packetbeat_flags (str): Extra flags passed to packetbeat
|
|
# packetbeat_config (str): packetbeat configuration directory
|
|
# Default: ${PREFIX}/etc/beats
|
|
# packetbeat_conffile (str): packetbeat configuration file
|
|
# relative to ${packetbeat_conf}
|
|
# Default: packetbeat.yml
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="packetbeat"
|
|
rcvar=${name}_enable
|
|
load_rc_config $name
|
|
|
|
: ${packetbeat_enable:="NO"}
|
|
: ${packetbeat_config:="%%ETCDIR%%"}
|
|
: ${packetbeat_conffile:="packetbeat.yml"}
|
|
: ${packetbeat_home:="%%DATADIR%%/packetbeat"}
|
|
: ${packetbeat_logs:="/var/log/beats"}
|
|
: ${packetbeat_data:="/var/db/beats/packetbeat"}
|
|
|
|
# daemon
|
|
start_precmd=packetbeat_prestart
|
|
command=/usr/sbin/daemon
|
|
pidfile="/var/run/${name}"
|
|
command_args="-frP ${pidfile} %%PREFIX%%/sbin/${name} ${packetbeat_flags} --path.config ${packetbeat_config} --path.home ${packetbeat_home} --path.data ${packetbeat_data} --path.logs ${packetbeat_logs} -c ${packetbeat_conffile}"
|
|
|
|
packetbeat_prestart() {
|
|
# Have to empty rc_flags so they don't get passed to daemon(8)
|
|
rc_flags=""
|
|
}
|
|
|
|
run_rc_command "$1"
|