Hi @stephens !
Sorry, i may sound dumb asking this. I have added the entries in the event_broker inside my endpoints.yml as per your blog.
event_broker:
type: "pika"
url: <url>
username: guest
password: guest
queues:
- rasa_production_events
- elk_log
the url here, is this url of the rabbit server i have installed inside my docker container on the cloud?
And my docker-compose.yml for the rabbit looks like this:
rabbit:
restart: always
image: "bitnami/rabbitmq:3.7.17"
environment:
RABBITMQ_HOST: "rabbit"
RABBITMQ_USERNAME: "guest"
RABBITMQ_PASSWORD: guest
RABBITMQ_DISK_FREE_LIMIT: "{mem_relative, 0.1}"
expose:
- "5672"
ports:
- "5672:5672"
- "15672:15672"
Here the rabbitMQ username and the password is the same as that of the one mentioned in the endpoints.yml?
And finally in the ports.conf for logstash,
input {
rabbitmq {
queue => "elk_log"
host => "<url>"
port => 15672
user => "guest"
password => "guest"
durable => true
}
}
output {
elasticsearch {
hosts => ["elasticsearch:9200"]
index => "test-elk"
}
}
filter {
if [@metadata][rabbitmq_properties][timestamp] {
date {
match => ["[@metadata][rabbitmq_properties][timestamp]", "UNIX"]
}
}
}
The host here is the same as that of the one mentioned in the event_broker configuratiion? i.e the rabbit server endpoint that i have hosted in the cloud?
My logstash returns logstash-5c4d756bbd-9lmr8logstash[2022-03-05T03:53:44,505][ERROR][logstash.inputs.rabbitmq ][main][93243bf60bab34d0677494d07601102a4c63a522d6bd14f35d119f465ab90056] RabbitMQ connection error, will retry. {:error_message=>"Connection was refused. Target host list: rabbit-15672-testbedelk-sealedhermit.cloud.okteto.net:15672, target virtual host: /, username: guest", :exception=>"MarchHare::ConnectionRefused"}
error with the following setup.
And my rasa server hosted on okteto cloud returns this error:
2022-03-05 04:05:10.26 UTCrasa-66f858d6cb-vd4gxrasa2022-03-05 04:05:10 DEBUG rasa.core.brokers.pika - Connecting to 'https://rabbit-15672-testbedelk-sealedhermit.cloud.okteto.net/' failed with error 'Port could not be cast to integer value as '//rabbit-15672-testbedelk-sealedhermit.cloud.okteto.net/:5672''. Trying again.