# 执行./logstash -f /etc/logstash/pipelines.yml 提示"Couldn't find any input plugin named 'log4j'的错误

**URL:** <https://discuss.elastic.co/t/logstash-f-etc-logstash-pipelines-yml-couldnt-find-any-input-plugin-named-log4j/133650>\
**Category:** 中文提问与讨论\
**Created:** [May 29, 2018, 9:31am UTC](https://discuss.elastic.co/t/logstash-f-etc-logstash-pipelines-yml-couldnt-find-any-input-plugin-named-log4j/133650 "2018-05-29T09:31:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jayshi1985](https://avatars.discourse-cdn.com/v4/letter/j/a698b9/32.png) [@jayshi1985](https://discuss.elastic.co/u/jayshi1985)\
**Post date:** [May 29, 2018, 9:31am UTC](https://discuss.elastic.co/t/logstash-f-etc-logstash-pipelines-yml-couldnt-find-any-input-plugin-named-log4j/133650/1 "2018-05-29T09:31:45Z")

</div>

执行./logstash -f /etc/logstash/pipelines.yml ，输出中提示"Couldn't find any input plugin named 'log4j'，这个log4j是需要单独安装的插件吗，这个如何安装

[2018-05-29T17:27:56,748][ERROR][logstash.agent] Failed to execute action {:action=\>LogStash::PipelineAction::Create/pipeline\_id:main, :exception=\>"LogStash::PluginLoadingError", :message=\>"Couldn't find any input plugin named 'log4j'. Are you sure this is correct? Trying to load the log4j input plug

---

<div class="post-metadata">

**Author:** ![medcl.net](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/medcl.net/32/4414_2.png) [@medcl.net](https://discuss.elastic.co/u/medcl.net)\
**Post date:** [June 5, 2018, 2:43pm UTC](https://discuss.elastic.co/t/logstash-f-etc-logstash-pipelines-yml-couldnt-find-any-input-plugin-named-log4j/133650/2 "2018-06-05T14:43:02Z")

</div>

> [@jayshi1985](#):
>
> input

是的，不是默认捆绑的，需要手动安装  
`bin/logstash-plugin install logstash-input-log4j`

---

<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:** [July 3, 2018, 2:43pm UTC](https://discuss.elastic.co/t/logstash-f-etc-logstash-pipelines-yml-couldnt-find-any-input-plugin-named-log4j/133650/3 "2018-07-03T14:43:12Z")

</div>

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