Skip to content

Commit

Permalink
Add JSON logging instructions [MC-2844] (#327)
Browse files Browse the repository at this point in the history
* Add JSON logging instructions [MC-2844]

* add a note about json templates

* Update docs/modules/deploy-manage/pages/logging.adoc

Co-authored-by: rebekah-lawrence <[email protected]>

* remove OOTB

---------

Co-authored-by: rebekah-lawrence <[email protected]>
  • Loading branch information
emrberk and rebekah-lawrence authored Jun 4, 2024
1 parent bcfb7f1 commit 2d1b69d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/modules/deploy-manage/pages/logging.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,19 @@ rootLogger.appenderRef.stdout.ref=STDOUT
rootLogger.appenderRef.rolling.ref=RollingFile
----

To enable JSON logging, you can activate `json-logging` profile by starting Management Center with the following parameter:
----
-Dspring.profiles.active=json-logging
----
By default, Management Center uses a JSON logging template compliant with link:https://www.elastic.co/guide/en/ecs/current/ecs-reference.html[Elastic Common Schema (ECS) specification].
You can change the logging template by providing a JSON logging template file as follows:
----
-Dlogging.json.template=<json-file-path>
----
NOTE: To use a custom JSON logging template, you must activate the `json-logging` profile as described above.

For more information about the JSON logging templates, see the link:https://logging.apache.org/log4j/2.x/manual/json-template-layout.html[Log4j2 JSON Layout documentation].

== Audit Logging

To make it easier to examine suspicious activity and troubleshoot issues, you can use audit logging to keep a record of events that happen in Management Center such as user logins.
Expand Down

0 comments on commit 2d1b69d

Please sign in to comment.