Hi all,
I am new to RabbitMQ and ElasticSearch. I am trying to create a setup where
RabbitMQ collects messages from some sources and publish then in
ElasticSearch for indexing.
What I have done so far:
Installed ElasticSearch 0.9.2 on Ubuntu 12.04
Created index named rabbit2 with these mappings:
{
"settings" : {
"number_of_shards" : 5
},
"mappings" : {
"logentry" : {
"_all" : {"enabled" : false},
"Metadata" : { "type" : "string", "index" : "not_analyzed" },
"Categories" : {"type" : "string", "index" : "not_analyzed" },
"ExtendedProperties" : {
"type" : "object",
"properties" : {
"DocumentKey": {"type" : "string", "index" : "not_analyzed"},
"Message": {"type" : "string", "index" : "analyzed"},
"ErrorCode": {"type" : "integer", "store" : "yes" },
"InnerMessage": {"type" : "string", "index": "analyzed"}
}
},
"Message": {"type" : "string", "index" : "not_analyzed"},
"Timestamp": {"type" : "date", "format" : "date_time" }
}
}
}
Installed RabbitMQ river and configured it with this settings
{
"type" : "rabbitmq",
"rabbitmq" : {
"host" : "192.168.106.11",
"port" : 5672,
"user" : "guest",
"pass" : "guest",
"vhost" : "playground",
"queue" : "platform.flume.queue",
"exchange" : "platform.flume.exchange",
"routing_key" : "flume",
"exchange_declare" : false,
"exchange_type" : "direct",
"exchange_durable" : false,
"queue_declare" : false,
"queue_bind" : true,
"queue_durable" : true,
"queue_auto_delete" : false
},
"index" : {
"name": "rabbit2",
"type" : "logentry",
"bulk_size" : 100,
"bulk_timeout" : "10ms",
"ordered" : false
}
}
ES log shows no error, RabbitMQ Web UI shows that there is a consumer
connected with the IP address of the ES server
RabbitMQ exchange and queue are predefined and already existing.
I have published from RabbitMQ Web UI following message:
{ "create": { "_index": "rabbit2", "_type": "logentry", "_id": 2 }}
{"Metadata":
["PLATFORM-PL1","10.176.130.201;","Platform.CPBC.Container.exe","Platform.CPBC.Container","5584",
null,"4020","0","Error"],"Categories":
["PLATFORM-PL1.platform.cpbc.data"],"ExtendedProperties": {"DocumentKey":
"tenant-alerts_1e5d2fa7-0e7a-4f02-b91a-cf09e13e66af", "Message": "Failed to
process response: Not found", "ErrorCode": 1, "InnerMessage": "Failed to
process response: Not found" }, "Message": "Document was not found.",
"Timestamp": "2013-06-26T18:00:07.6122425Z"}
Unfortunately the message is not consumed by ES and stays as
"Unacknowledged".
My question what I am doing wrong? Did I created wrong configuration or
missed something?
Is there somthing wrong with the message that I published?
Thanks for your help in advance.
best regards,
nickolay kolev
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.