Cannot install multiline filter on FreeBSD 11

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" "$@"

The multiline filter has been deprecated, so I would recommend handling multiline processing either at the source (if not Logstash) or using the multiline codec instead.

yeah I am using the codec now. but the error here seems to be something else.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.