I installed ELK stack from the FreeBSD package manager.
sudo /usr/local/logstash/bin/logstash-plugin install logstash-filter-multiline
sudo: /usr/local/logstash/bin/logstash-plugin: command not found
After making the file /usr/local/logstash/bin/logstash-plugin executable
expr: illegal option -- C
expr: usage: expr [-e] expression
Content of the file
#!/bin/sh
unset CDPATH
. "$(cd `dirname $0`/..; pwd)/bin/logstash.lib.sh"
setup
# bin/logstash-plugin is a short lived ruby script thus we can use aggressive "faster starting JRuby options"
# see https://github.com/jruby/jruby/wiki/Improving-startup-time
export JRUBY_OPTS="$JRUBY_OPTS -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-noverify -X-C -Xcompile.invokedynamic=false"
ruby_exec "${LOGSTASH_HOME}/lib/pluginmanager/main.rb" "$@"