Last active
August 29, 2015 14:01
-
-
Save mp911de/9380f69690a881b93172 to your computer and use it in GitHub Desktop.
add-gelf-logger.cli
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/subsystem=logging/custom-handler=GelfLogger/:add(module=biz.paluch.logging,class=biz.paluch.logging.gelf.jboss7.JBoss7GelfLogHandler,properties={ \ | |
host="<Your Logstash Host>", \ | |
extractStackTrace=true, \ | |
filterStackTrace=true, \ | |
mdcProfiling=true, \ | |
facility="JBoss AS7/AS8", \ | |
additionalFields="Environment=Test", \ | |
mdcFields="remoteAddr,remoteUser,sessionId,requestUri,requestMethod" \ | |
},level=INFO) | |
/subsystem=logging/root-logger=ROOT/:write-attribute(name=handlers,value=["CONSOLE","FILE", "GelfLogger"]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment