简体   繁体   English

Logstash 输入插件:Redis vs Elasticsearch

[英]Logstash input plugin: Redis vs Elasticsearch

I was wondering about which input plugin would be a better choice for a middle-sized application.我想知道哪个输入插件更适合中型应用程序。 I'm currently using the service for logging everything in my app, using Monolog's Redis handler over PHP server.我目前正在使用该服务记录我的应用程序中的所有内容,在 PHP 服务器上使用 Monolog 的 Redis 处理程序。 There are dozens of possibilities, but both Redis and Elasticsearch are more accessible to me so far.有几十种可能性,但到目前为止,Redis 和 Elasticsearch 对我来说都更容易使用。 The points I'd consider to be important are:我认为重要的几点是:

  • performance表现
  • scalability可扩展性
  • maintenance维护
  • pricing价钱

Regarding performance, I've chosen Redis due to its own transfer protocol, which make the data traffic way simpler and faster.关于性能,我选择Redis是因为它有自己的传输协议,这使得数据传输方式更简单、更快。 However, I have seen many people opting for the Elasticsearch API.但是,我看到很多人选择了 Elasticsearch API。

I'd be thankful to have any suggestion about this topic or discuss about a better data input method.如果您对此主题有任何建议或讨论更好的数据输入方法,我将不胜感激。

Thanks in advance!提前致谢!

The horizontal scalability of ElasticSearch is there for quite some time, versus Redis Cluster which is new. ElasticSearch 的水平可扩展性已经有一段时间了,而 Redis Cluster 是新的。

Also ElasticSearch allows you rich full text queries, Redis does not.此外,ElasticSearch 允许您进行富全文查询,而 Redis 则不允许。

Also Logstash is from the same company which made ElasticSearch. Logstash 也来自制作 ElasticSearch 的同一家公司。

(My 2 cents from skimming through ElasticSearch book and using Redis in production for quite some time (which was better for my needs, no full text search and no more than one shard)). (我通过浏览 ElasticSearch 书籍并在生产中使用 Redis 很长一段时间获得了 2 美分(这更适合我的需求,没有全文搜索并且不超过一个分片))。

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

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