Changing hostname for logstash
When you make changes to the hostname and service name for logstash, they are not pushed to the internal PostgreSQL container. For example, you might want to change the logstash hostname to bdlogstash because you're using logstash for another purpose and you now want to write PostgreSQL logs to bdlogstash; make the following changes:
-
In
blackduck-config.envchange logstash to bdlogstashHUB_LOGSTASH_HOST=bdlogstash. -
Edit
docker-compose.ymland change logstash to bdlogstash.bdlogstash:
image: blackducksoftware/blackduck-logstash:1.0.9 volumes: ['log-volume:/var/lib/logstash/data'] env_file: [blackduck-config.env] -
Add
env_file: [blackduck-config.env]to the postgres container definition indocker-compose.ymlso that it reads the hostname change.env_file: [blackduck-config.env]
