title: Spring Boot - Getting the hostname in application.properties for Spring-Kafka client Id
body: <p>I am working on a project with Spring-Kafka and Boot and am wanting to get the hostname in the application.properties for the property spring.kafka.consumer.client-Id so that each of my consumers can be distinguished in the server side logs should there be an issue. </p>
  
  <p>Is there a way i could do that? I check on the spring boot reference guide and java.lang.System class but could not find fruitful pointers.</p>