# Cannot install multiline filter on FreeBSD 11

**URL:** <https://discuss.elastic.co/t/cannot-install-multiline-filter-on-freebsd-11/106929>\
**Category:** Logstash\
**Created:** [November 8, 2017, 8:31pm UTC](https://discuss.elastic.co/t/cannot-install-multiline-filter-on-freebsd-11/106929 "2017-11-08T20:31:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pdna](https://avatars.discourse-cdn.com/v4/letter/p/3bc359/32.png) [@pdna](https://discuss.elastic.co/u/pdna)\
**Post date:** [November 8, 2017, 8:31pm UTC](https://discuss.elastic.co/t/cannot-install-multiline-filter-on-freebsd-11/106929/1 "2017-11-08T20:31:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [November 8, 2017, 9:38pm UTC](https://discuss.elastic.co/t/cannot-install-multiline-filter-on-freebsd-11/106929/2 "2017-11-08T21:38:29Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![pdna](https://avatars.discourse-cdn.com/v4/letter/p/3bc359/32.png) [@pdna](https://discuss.elastic.co/u/pdna)\
**Post date:** [November 8, 2017, 9:42pm UTC](https://discuss.elastic.co/t/cannot-install-multiline-filter-on-freebsd-11/106929/3 "2017-11-08T21:42:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 6, 2017, 9:43pm UTC](https://discuss.elastic.co/t/cannot-install-multiline-filter-on-freebsd-11/106929/4 "2017-12-06T21:43:08Z")

</div>

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