Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-1280

${HOSTNAME} as FQDN

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.0-alpha1
    • Component/s: None
    • Labels:
      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

        Attachments

          Activity

            People

            Assignee:
            ceki Ceki Gülcü
            Reporter:
            rti Roman T
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: