#!/usr/bin/env bash

# Script to run Filebeat in foreground with the same path settings that
# the init script / systemd unit file would do.

exec /opt/freeware/share/filebeat/bin/filebeat \
  -path.home /opt/freeware/share/filebeat \
  -path.config /opt/freeware/etc/filebeat \
  -path.data /opt/freeware/var/lib/filebeat \
  -path.logs /opt/freeware/var/log/filebeat \
  "$@"
