简体   繁体   English

流利的config agent-td发送请求到Webservice

[英]fluentd, config agent-td send request to webservice

I 'm new for fluentd. 我是流利的新手。 I wonder is it support send a request in fluentd-agentd. 我想知道它是否支持以流利的方式发送请求。

Example: when fluent have new log (from apache/nginx/rails). 例如:流利的时候有新的日志(来自apache / nginx / rails)。 I want call a request http with body is log text to specify url ( http://my_service.com/api/get_log ) 我想以正文为日志文本的形式调用请求HTTP以指定url( http://my_service.com/api/get_log

Is it possible? 可能吗?

Yes, it's possible. 是的,有可能。 I just did a simple test using the following output plugin: 我只是使用以下输出插件进行了简单的测试:

https://github.com/ento/fluent-plugin-out-http https://github.com/ento/fluent-plugin-out-http

You can install it with '$ gem install fluent-plugin-out-http' and proceed with the configuration schema proposed on the github repository. 您可以使用'$ gem install fluent-plugin-out-http'安装它,并继续进行github仓库中建议的配置模式。

Happy Logging! 祝您伐木愉快!

If you are using td-agent then use td-agent-gem to install it. 如果您使用的是td-agent,请使用td-agent-gem进行安装。 So to install that plugin type: td-agent-gem install fluent-plugin-out-http 因此要安装该插件类型:td-agent-gem install fluent-plugin-out-http

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM