Skip to content

Instantly share code, notes, and snippets.

@ycyr
Created September 8, 2017 14:36
Show Gist options
  • Save ycyr/73a6d2cfc10b8161d165facd535d284d to your computer and use it in GitHub Desktop.
Save ycyr/73a6d2cfc10b8161d165facd535d284d to your computer and use it in GitHub Desktop.
filebeat.sh custom centos5
#!/bin/bash
# Script to run {.beat_name} in foreground with the same path settings that
# the init script / systemd unit file would do.
/usr/local/filebeat/filebeat \
-path.home /usr/local/filebeat \
-path.config /etc/filebeat \
-path.data /var/lib/filebeat \
-path.logs /var/log/filebeat \
$@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment