Skip to content

Instantly share code, notes, and snippets.

@camilb
Forked from mcupak/enable-access-log.cli
Created December 16, 2016 14:16
Show Gist options
  • Save camilb/b1d969d5415e5322534f8afcab0bdf80 to your computer and use it in GitHub Desktop.
Save camilb/b1d969d5415e5322534f8afcab0bdf80 to your computer and use it in GitHub Desktop.
Enabling access log with Undertow on WildFly - http://mirocupak.com/logging-requests-with-undertow/
# Script for enabling access log based on Undertow on WildFly.
# Run with: $WILDFLY_HOME/bin/jboss-cli.sh --connect --file=enable-access-log.cli
batch
/subsystem=undertow/server=default-server/host=default-host/setting=access-log:add(pattern="%h %t \"%r\" %s \"%{i,User-Agent}\"",use-server-log=true)
run-batch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment