安装Logstash插件但未找到 [英] Logstash plugin installed but not found

查看:1154
本文介绍了安装Logstash插件但未找到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是logstash 2.3.2,对于我的一个项目,我必须将一些数据保存在RAM中。我问了一个关于stackoverflow的问题( 但是,当我在配置文件中使用此过滤器运行logsatsh时,出现以下错误:

<$ p $

p> :reason =>找不到任何名为'memcached'的过滤器插件。你确定这是正确的吗?试图加载memcached过滤器插件导致这个错误:没有这样的文件加载 - logstash / filters / memcached,:level =&g t;:error}

此外,当我使用命令bin / logstah-plugin list时, memcached不存在。



我不明白为什么会发生这种情况。我遵循这个讨论( https://discuss.elastic .co / t / logstash-plugin-installed-but-not-found / 24369 )但没有成功!

那么,你知道我怎么能解决这个问题?

感谢您的关注和帮助。

Joe

解决方案

这是要遵循的流程:

logstash-filter-cache-memcached.gemspec 修改此行

  s.add_runtime_dependency'logstash-core','> = 1.4.0','< 2.0.0'

  s.add_runtime_dependency'logstash-core','> = 1.4.0','< 3.0.0'



B。运行以下命令来构建您的插件

 > gem build logstash-filter-cache-memcached.gemspec 

C。在您的logstash文件夹中,安装插件:

 > bin / logstash-plugin install /path/to/logstash-filter-cache-memcached/logstash-filter-cache-memcached-0.1.1.gem 

这应该会产生这种结果:

 验证/ path / to / logstash-filter- cache-memcached / logstash-filter-cache-memcached-0.1.1.gem 
安装logstash-filter-cache-memcached
安装成功

D。验证您的插件安装正确。

 > bin / logstash-plugin列表| grep cache 
logstash-filter-cache-memcached

E。运行一个快速测试,看看是否可行:

 > bin / logstash -t -e'input {stdin {}} filter {memcached {namespace => testhost => localhost:11211key => testfield => messagettl => 60}} output {stdout {}}'

  memcached插件没有版本。这个插件并不是很好的社区支持
,并且可能没有维护者。 {:level =>:warn}
配置OK


I am using logstash 2.3.2 and for one of my project I have to save some data in RAM. I asked a question on stackoverflow (Logstash: is it possible to save documents in memory?) to get a filter for that and the most appropriate filter is memcached (even if this one is unofficial).

I downloaded the plugin, I generated the gem file (which is not empty) and I successfully installed the plugin.

However, when i run logsatsh by using this filter in my configuration file, I get the following error:

:reason=>"Couldn't find any filter plugin named 'memcached'. Are you sure this is correct? Trying to load the memcached filter plugin resulted in this error: no such file to load -- logstash/filters/memcached", :level=>:error}

Moreover, when i use the command bin/logstah-plugin list,the filter memcached is not present.

I don't understand why it is happening. I followed this discussion (https://discuss.elastic.co/t/logstash-plugin-installed-but-not-found/24369) but without success !

So, do you know how I can solve this problem ?

Thank you for your attention and your help.

Joe

解决方案

This is the process to follow:

A. In logstash-filter-cache-memcached.gemspec modify this line

s.add_runtime_dependency 'logstash-core', '>= 1.4.0', '< 2.0.0'

to

s.add_runtime_dependency 'logstash-core', '>= 1.4.0', '< 3.0.0'

B. Run the following command to build your plugin

> gem build logstash-filter-cache-memcached.gemspec  

C. In your logstash folder, install the plugin:

> bin/logstash-plugin install /path/to/logstash-filter-cache-memcached/logstash-filter-cache-memcached-0.1.1.gem 

That should yield this:

Validating /path/to/logstash-filter-cache-memcached/logstash-filter-cache-memcached-0.1.1.gem
Installing logstash-filter-cache-memcached
Installation successful

D. Verify your plugin is correctly installed

> bin/logstash-plugin list | grep cache
logstash-filter-cache-memcached

E. Run a quick test to see if that works:

> bin/logstash -t -e 'input{stdin{}} filter {memcached{namespace => "test" host => "localhost:11211" key => "test" field => "message" ttl=>60}} output {stdout{}}'

You should see this:

memcached plugin doesn't have a version. This plugin isn't well
 supported by the community and likely has no maintainer. {:level=>:warn}
Configuration OK

这篇关于安装Logstash插件但未找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆