Hi all,
I'm coupling PubSub with a Logstash custom image running on GCP Cloud Run, this image will output messages to an Elastic Cloud configuration.
I'm currently hitting some errors on Cloud Run which I can't seem to fix related to:
Failed to find a usable hardware address from the network interfaces
The Dockerfile looks like this:
FROM docker.elastic.co/logstash/logstash:7.9.0
ADD pipeline/ /usr/share/logstash/pipeline/
ADD config/ /usr/share/logstash/config/
RUN bin/logstash-plugin install logstash-input-google_pubsub
RUN chown -R logstash:root /usr/share/logstash/config
RUN ls -al /usr/share/logstash/config/
EXPOSE 5000
The config file looks like this:
input {
google_pubsub {
project_id => "${PROJECT_ID}"
topic => "${PUBSUB_TOPIC}"
subscription => "logstash-sub"
create_subscription => false
}
}
output {
elasticsearch {
hosts => "${HOSTS}"
user => "${USERNAME}"
password => "${PASSWORD}"
index => "${INDEX}"
}
stdout {
}
}
If anyone helping with this requires any other data please let me know. I'm new to handling Logstash.
A little extra info on what I see happening:
The Container spins up fine, sets up a pipeline that already fetches the input from Pub/Sub, then after about a minute the aforementioned error comes up and I get a [logstash.runner ] SIGTERM received. Shutting down. message before the container deployment fails.