简体   繁体   English

如何配置Elasticsearch从Amazon SQS提取消息

[英]How to configure Elasticsearch to pull messages from Amazon SQS

In my current scenario , i am having ElasticSearch on a ubuntu 14.04 machine and a amazon SQS queue holding some ".json" messages in the queue. 在当前情况下,我在Ubuntu 14.04机器上具有ElasticSearch,并且在队列中包含一些“ .json”消息的亚马逊SQS队列。 I want to pull the messages from amazon SQS via ES so that it can use the .json messages to index it. 我想通过ES从亚马逊SQS中提取消息,以便它可以使用.json消息对其进行索引。

What should i be looking for, how exactly should i be proceeding? 我应该寻找什么,应该如何进行? I am looking for something in lines of python's boto code. 我正在寻找python boto代码行中的某些内容。

NOTE: I am not interested in using logstash for this 注意:我对此不感兴趣使用logstash

Amazon SQS provides an API to receive messages: http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSGettingStartedGuide/ReceiveMessage.html Amazon SQS提供了一个用于接收消息的API: http : //docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSGettingStartedGuide/ReceiveMessage.html

ElasticSearch provides an API to index messages: https://www.elastic.co/guide/en/elasticsearch/client/java-api/current/index-doc.html ElasticSearch提供了一个用于对消息进行索引的API: https ://www.elastic.co/guide/en/elasticsearch/client/java-api/current/index-doc.html

I am not sure if ES can automatically receive messages from SQS, but one feasible solution is a simple broker between SQS and ES to receive and index. 我不确定ES是否可以自动从SQS接收消息,但是一个可行的解决方案是SQS和ES之间的简单代理以接收和编制索引。

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

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