[英]How can we ingest data to elastic search through java without logstash and beats
How can we ingest data to elastic search through java without logstash and beats is there any option like kafka or something like using only java without any tools我们如何在没有logstash和beats的情况下通过java将数据摄取到弹性搜索是否有像kafka这样的选项或类似只使用java而不使用任何工具的选项
I am not sure why you dont want to consider Filebeats --> Elastic.我不确定您为什么不想考虑 Filebeats --> Elastic。 But yes, there are other ways to send your logs to Elastic search.但是,是的,还有其他方法可以将您的日志发送到 Elastic 搜索。
Also, you did not mention whats the source, whether you want to insert app logs, database.另外,您没有提及来源是什么,是否要插入应用程序日志,数据库。 Assuming you want to send microservices logs also, and below options holds good for sending other data too.假设您还想发送微服务日志,并且以下选项也适用于发送其他数据。
As you dont want to use Filebeat, you should add custom code to collect, refine, format and publish the logs.由于您不想使用 Filebeat,您应该添加自定义代码来收集、提炼、格式化和发布日志。
you can develop a commons lib which holds all this code and use in all your java applications.您可以开发一个包含所有这些代码的公共库,并在所有 java 应用程序中使用。
Simple udp client server code - https://github.com/suren03/udp-server-client简单的 udp 客户端服务器代码 - https://github.com/suren03/udp-server-client
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.