Details
-
Improvement
-
Resolution: Fixed
-
Minor
-
None
-
None
-
None
Description
At the moment if we use HOSTNAME in our logback.xml, it is a short version of hostname. The problem with it, we've got two environments testing and production.
In testing env we've got the server webservice-01.ipc00.pro00.eu.firm.com, on the other hand in production we've got webservice-01.ipc00.tst00.eu.firm.com . When the both sever write some logs in our kibana we can't make out, which server logs, because the hostname for both is webservice-01
If you would take for HOSTNAME InetAddress.html#getCanonicalHostName it would much better.
PS. I know I can define PropertyDefiner and inject what I want, but it quite silly that the HOSTNAME variable doesn't work properly in logback