简体   繁体   English

我们如何在没有logstash和beats的情况下通过java将数据摄取到弹性搜索

[英]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 use Kafka Sink Connector to Elastic search to move all your logs您可以使用 Kafka Sink Connector 到 Elastic 搜索来移动所有日志
  • Also, you can use UDP protocol to send(client) logs and listen(server), then implement buffer and ingest to Elastic.此外,您可以使用 UDP 协议发送(客户端)日志和监听(服务器),然后对 Elastic 实现缓冲和摄取。

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.

相关问题 如何通过Java将数据发布到弹性搜索? - How to post data to elastic search over java? 如何在不使用Elasticsearch库的情况下将数据从Java应用程序发送到Elastic Search - How to send data from a java application to elastic search without using the elasticsearch libraries 如何从Java应用程序将数据提取到BigQuery - How Ingest data to BigQuery from Java application 配置cloudwatch->通过Java代码进行弹性搜索 - Configure cloudwatch -> elastic search through java code 我们应该使用什么客户端(java或rest)来索引弹性搜索中的数据? - What client (java or rest) we should use for indexing the data in elastic search? 我们如何通过打包安装java - How can we install java through packaging 我们可以在spring数据弹性搜索中使用复合主键映射吗 - Can we use Composite Primary Key Mapping in spring data elastic search 如何通过 Java 高级 rest 客户端在 Elastic Search 中使用多个字段进行搜索 - How to search using multiple fields in Elastic Search through Java high level rest client Java-如何在弹性搜索中的两个索引之间建立内部联接? 基于索引A中的数据在索引B中查找数据 - Java - How can I do an innerjoin between 2 indexes in elastic search? Lookup data in index B based on data from index A 根据唯一的 Trace Id 组合 Filebeat 日志以传送到 Elastic Search(无 Logstash) - Combine Filebeat Logs to ship to Elastic Search based on unique Trace Id (Without Logstash)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM