Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-2139

JSONLayout ability to rename keys in log output - particularly locationInfo "source"

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Layouts
    • Labels:

      Description

      We ran into a problem when setting locationInfo to true when ingesting logs into Kibana. The problem had to do with a conflict with another existing key named "source" of type String, and the fact that locationInfo produces an Object called "source".

      So it would be nice to have a way to supply a different Object name. Perhaps this could be broadened so that other key names could also be renamed?

      Maybe there is a way to do this already?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                dankirkd Daniel Kirkdorffer
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: