This content has been marked as final.
Show 1 reply
-
1. Re: Mask Specific text in Jboss server.log
abhijithumbe Feb 1, 2020 5:11 AM (in response to pratiksc)In EAP 6.1.1 onwards, filter expressions are introduced, use
<filter-spec> to remove specific logging messages from server.log/console log. With below CLI command you can skip log messages with string "
JBAS000000|JBAS000001|JBAS000002|JBAS000003
" from being captured in console log. Similar to this you can configure filter for any handler.CLI command:
~~~
/subsystem=logging/console-handler=CONSOLE:write-attribute(name=filter-spec,value=not(match("Set name after initialization|JBAS000000|JBAS000001|JBAS000002|JBAS000003")))
~~~
XML:
~~~
<filter-spec value="match("Set name after initialization|JBAS000000|JBAS000001|JBAS000002|JBAS000003")"/>
~~~