简体   繁体   English

从logstash插件发送“ json_event”到JAVA

[英]Send “json_event” from logstash plugin to JAVA

I was trying to make a logstash, I was looking for a way to send the complete "event" to JAVA, so that I can do complete processing in my java project. 我试图创建一个logtash,我正在寻找一种将完整的“事件”发送给JAVA的方法,以便可以在Java项目中完成处理。

I was able to send individual "string" but how to send the complete "event_json" 我能够发送单独的“字符串”,但是如何发送完整的“ event_json”

You may try and use the exec output to run a script that will do this for you and send the @message field to the needed destination. 您可以尝试使用exec输出来运行脚本来为您执行此操作,并将@message字段发送到所需的目的地。

http://logstash.net/docs/1.4.2/outputs/exec http://logstash.net/docs/1.4.2/outputs/exec

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

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