# Couldn't find any filter plugin named 'multiline' Error: NameError Name

**URL:** <https://discuss.elastic.co/t/couldnt-find-any-filter-plugin-named-multiline-error-nameerror-name/83843>\
**Category:** Logstash\
**Created:** [April 27, 2017, 11:12am UTC](https://discuss.elastic.co/t/couldnt-find-any-filter-plugin-named-multiline-error-nameerror-name/83843 "2017-04-27T11:12:15Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![manopmk](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@manopmk](https://discuss.elastic.co/u/manopmk)\
**Post date:** [April 27, 2017, 11:12am UTC](https://discuss.elastic.co/t/couldnt-find-any-filter-plugin-named-multiline-error-nameerror-name/83843/1 "2017-04-27T11:12:15Z")

</div>

Hi Buddy  
im using logstash 5.3.1 , im unable to use multiline in logstash of my version, help me out

**my conf**

input {  
file {  
path =\> ["/Users/Downloads/logs/\*.log"]  
start\_position =\> "beginning"  
}  
}  
filter {

```
multiline {
	pattern => "^%{TIMESTAMP_ISO8601}"
	negate => true
	what => previous
	
}

```

}  
output {  
elasticsearch {  
hosts =\> "10.10.10.10:9200"  
protocol =\> "http"  
}  
stdout { codec =\> rubydebug }  
}

error that im getting is

Problems loading a plugin with {:type=\>"filter", :name=\>"multiline", :path=\>"logstash/filters/multiline",  
:error\_message=\>"NameError", :error\_class=\>NameError, :error\_backtrace=\>["C:/pratik/Digital/softwares/kibana/logstash-5.3.1/logstash-core/lib/logstash/plugins/registry.rb  
:221:in `namespace_lookup'", "C:/pratik/Digital/softwares/kibana/logstash-5.3.1/logstash-core/lib/logstash/plugins/registry.rb:157:in`legacy\_lookup'", "C:/pratik/Digital/  
softwares/kibana/logstash-5.3.1/logstash-core/lib/logstash/plugins/registry.rb:133:in `lookup'", "C:/pratik/Digital/softwares/kibana/logstash-5.3.1/logstash-core/lib/logst ash/plugins/registry.rb:175:in`lookup\_pipeline\_plugin'", "C:/pratik/Digital/softwares/kibana/logstash-5.3.1/logstash-core/lib/logstash/plugin.rb:137:in `lookup'", "C:/pra tik/Digital/softwares/kibana/logstash-5.3.1/logstash-core/lib/logstash/pipeline.rb:88:in`plugin'", "(eval):12:in `initialize'", "org/jruby/RubyKernel.java:1079:in`eval'"  
, "C:/pratik/Digital/softwares/kibana/logstash-5.3.1/logstash-core/lib/logstash/pipeline.rb:60:in `initialize'", "C:/pratik/Digital/softwares/kibana/logstash-5.3.1/logstas h-core/lib/logstash/pipeline.rb:139:in`initialize'", "C:/pratik/Digital/softwares/kibana/logstash-5.3.1/logstash-core/lib/logstash/agent.rb:277:in `create_pipeline'", "C: /pratik/Digital/softwares/kibana/logstash-5.3.1/logstash-core/lib/logstash/agent.rb:95:in`register\_pipeline'", "C:/pratik/Digital/softwares/kibana/logstash-5.3.1/logstash  
-core/lib/logstash/runner.rb:264:in `execute'", "C:/pratik/Digital/softwares/kibana/logstash-5.3.1/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:67:in`run  
'", "C:/pratik/Digital/softwares/kibana/logstash-5.3.1/logstash-core/lib/logstash/runner.rb:183:in `run'", "C:/pratik/Digital/softwares/kibana/logstash-5.3.1/vendor/bundle /jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:132:in`run'", "C:\pratik\Digital\softwares\kibana\logstash-5.3.1\lib\bootstrap\environment.rb:71:in `(root)'"]}  
16:17:44.202 [LogStash::Runner] **ERROR logstash.agent - Cannot load an invalid configuration {:reason=\>"Couldn't find any filter plugin named 'multiline'. Are you sure this**  
\*\* is correct? Trying to load the multiline filter plugin resulted in this error: Problems loading the requested plugin named multiline of type filter. Error: NameError Name\*\*  
**Error"}**

---

<div class="post-metadata">

**Author:** ![Xavy](https://avatars.discourse-cdn.com/v4/letter/x/e0b2c6/32.png) [@Xavy](https://discuss.elastic.co/u/Xavy)\
**Post date:** [April 27, 2017, 2:40pm UTC](https://discuss.elastic.co/t/couldnt-find-any-filter-plugin-named-multiline-error-nameerror-name/83843/2 "2017-04-27T14:40:43Z")

</div>

Hi there:

I'm afraid that multiline filter was removed on 5.x series from default installation:

[https://www.elastic.co/guide/en/logstash/5.0/breaking-changes.html:](https://www.elastic.co/guide/en/logstash/5.0/breaking-changes.html:)  
There were 17 plugins removed from 5.0 default bundle. These plugins can still be installed manually for use:

```
logstash-codec-oldlogstashjson
logstash-input-eventlog
logstash-input-log4j
logstash-input-zeromq
logstash-filter-anonymize
logstash-filter-checksum
logstash-filter-multiline
logstash-output-email
logstash-output-exec
logstash-output-ganglia
logstash-output-gelf
logstash-output-hipchat
logstash-output-juggernaut
logstash-output-lumberjack
logstash-output-nagios_nsca
logstash-output-opentsdb
logstash-output-zeromq

```

Have you manually installed such a filter?

---

<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:** [April 27, 2017, 4:18pm UTC](https://discuss.elastic.co/t/couldnt-find-any-filter-plugin-named-multiline-error-nameerror-name/83843/3 "2017-04-27T16:18:38Z")

</div>

The multiline filter plugin was deprecated. You should instead use the [multiline codec filter](https://www.elastic.co/guide/en/logstash/current/plugins-codecs-multiline.html).

---

<div class="post-metadata">

**Author:** ![manopmk](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@manopmk](https://discuss.elastic.co/u/manopmk)\
**Post date:** [April 28, 2017, 5:50am UTC](https://discuss.elastic.co/t/couldnt-find-any-filter-plugin-named-multiline-error-nameerror-name/83843/4 "2017-04-28T05:50:33Z")

</div>

No buddy .i didnit install any plugin.  
1\> is possible install multiline plugin in logstash 5.3.1 ?  
2\> how can i achieve multiline i searched some website they suggested add in codec  
i tried by addling like this but still i couldn't get  
input {  
file {  
path =\> ["C:/pratik/Digital/softwares/logs/search.log"]  
start\_position =\> "beginning"  
codec =\> multiline {  
pattern =\> "^%{TIMESTAMP\_ISO8601} "  
negate =\> true  
what =\> previous  
}  
}  
}  
output {  
elasticsearch {  
hosts =\> "localhost:9200"  
}  
stdout { codec =\> rubydebug }  
}

---

<div class="post-metadata">

**Author:** ![manopmk](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@manopmk](https://discuss.elastic.co/u/manopmk)\
**Post date:** [April 28, 2017, 5:57am UTC](https://discuss.elastic.co/t/couldnt-find-any-filter-plugin-named-multiline-error-nameerror-name/83843/5 "2017-04-28T05:57:24Z")

</div>

with the reference u gave  
i worked on by updating my conf  
input {  
file {  
path =\> ["C:/pratik/Digital/softwares/logs/search.log"]  
start\_position =\> "beginning"  
codec =\> multiline {  
pattern =\> "^%{TIMESTAMP\_ISO8601} "  
negate =\> true  
what =\> previous  
}  
}  
}  
output {  
elasticsearch {  
hosts =\> "localhost:9200"  
}  
stdout { codec =\> rubydebug }  
}

BUT STILL NOT Worked as expected it shows

Could not find log4j2 configuration at path /pratik/Digital/softwares/kibana/logstash-5.3.1/config/log4j2.properties. Using default config which logs to console  
16:19:49.036 [[main]-pipeline-manager] INFO logstash.outputs.elasticsearch - New Elasticsearch output {:class=\>"LogStash::Outputs::ElasticSearch", :hosts=\>[#\<URI::Generic  
:0x330f19a3 URL://localhost:9200\>]}  
16:19:49.049 [[main]-pipeline-manager] INFO logstash.pipeline - Starting pipeline {"id"=\>"main", "pipeline.workers"=\>4, "pipeline.batch.size"=\>125, "pipeline.batch.delay"  
=\>5, "pipeline.max\_inflight"=\>500}  
16:19:49.872 [[main]-pipeline-manager] INFO logstash.pipeline - Pipeline main started  
16:19:50.272 [Api Webserver] INFO logstash.agent - Successfully started Logstash API endpoint {:port=\>9600}  
^CTerminate batch job (Y/N)? 16:22:05.019 [SIGINT handler] WARN logstash.runner - SIGINT received. Shutting down the agent.  
16:22:05.030 [LogStash::Runner] WARN logstash.agent - stopping pipeline {:id=\>"main"}

I DIDNT GET ANY JSON Generated in logstash [console.ie](http://console.ie)(not loaded log into elastic search also it didt get any errors)  
can you help

---

<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:** [April 28, 2017, 6:30am UTC](https://discuss.elastic.co/t/couldnt-find-any-filter-plugin-named-multiline-error-nameerror-name/83843/6 "2017-04-28T06:30:58Z")

</div>

If you have tried to process the file before, you may need to clear the [sincedb file](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-file.html#plugins-inputs-file-sincedb_path) in order for it to get picked up again.

---

<div class="post-metadata">

**Author:** ![manopmk](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@manopmk](https://discuss.elastic.co/u/manopmk)\
**Post date:** [April 28, 2017, 7:22am UTC](https://discuss.elastic.co/t/couldnt-find-any-filter-plugin-named-multiline-error-nameerror-name/83843/7 "2017-04-28T07:22:22Z")

</div>

hi buddy  
i cleared files inside sincedb.i loaded conf again its seems showing same  
Could not find log4j2 configuration at path /pratik/Digital/softwares/kibana/logstash-5.3.1/config/log4j2.properties. Using default config which logs to console  
16:19:49.036 [[main]-pipeline-manager] INFO logstash.outputs.elasticsearch - New Elasticsearch output {:class=\>"LogStash::Outputs::ElasticSearch", :hosts=\>[#\<URI::Generic  
:0x330f19a3 URL://localhost:9200\>]}  
16:19:49.049 [[main]-pipeline-manager] INFO logstash.pipeline - Starting pipeline {"id"=\>"main", "pipeline.workers"=\>4, "pipeline.batch.size"=\>125, "pipeline.batch.delay"  
=\>5, "pipeline.max\_inflight"=\>500}  
16:19:49.872 [[main]-pipeline-manager] INFO logstash.pipeline - Pipeline main started  
16:19:50.272 [Api Webserver] INFO logstash.agent - Successfully started Logstash API endpoint {:port=\>9600}  
^CTerminate batch job (Y/N)? 16:22:05.019 [SIGINT handler] WARN logstash.runner - SIGINT received. Shutting down the agent.  
16:22:05.030 [LogStash::Runner] WARN logstash.agent - stopping pipeline {:id=\>"main"}

nothing changed.

---

<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:** [May 26, 2017, 7:27am UTC](https://discuss.elastic.co/t/couldnt-find-any-filter-plugin-named-multiline-error-nameerror-name/83843/8 "2017-05-26T07:27:58Z")

</div>

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