Skip to content

Instantly share code, notes, and snippets.

@mp911de
Last active August 29, 2015 14:01
Show Gist options
  • Save mp911de/9380f69690a881b93172 to your computer and use it in GitHub Desktop.
Save mp911de/9380f69690a881b93172 to your computer and use it in GitHub Desktop.
add-gelf-logger.cli
/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