You can configure custom logs through the wsadmin command with the $AdminConfig create, modify, and remove commands. Custom log configuration is handled through the ruleset configuration objects. Validation is limited to type checking. More thorough validation is performed during an on demand router (ODR) startup by issuing runtime exceptions to SystemOut.
The custom log must be configured at the wsadmin command line.
You can list the attributes for the configuration object as follows:
Outputs the ODR for creating a ruleset:
TestClusterA(cells/dabtcCell01/dynamicclusters/TestClusterA/servers/TestClusterA|server.xml#Server_1224275288921) TestClusterA_dabtcNode01(cells/dabtcCell01/nodes/dabtcNode01/servers/TestClusterA_dabtcNode01|server.xml#Server_1224346718671) TestClusterA_dabtcNode01_1(cells/dabtcCell01/nodes/dabtcNode01/servers/TestClusterA_dabtcNode01_1|server.xml#Server_1224597699515) dmgr(cells/dabtcCell01/nodes/dabtcCellManager01/servers/dmgr|server.xml#Server_1)dmgr(cells/dabtcCell01/nodes/dabtcCellManager07/servers/dmgr| server.xml#Server_1)nodeagent(cells/dabtcCell01/nodes/dabtcNode01/servers/nodeagent|server.xml#Server_1120677326772) odr1(cells/dabtcCell01/nodes/dabtcNode01/servers/odr1|server.xml#Server_1224344819218) server1(cells/dabtcCell01/nodes/dabtcNode01/servers/server1|server.xml#Server_1224273173203)
MySampleRuleset(cells/dabtcCell01/nodes/dabtcNode01/servers/odr1/ruleset/MySampleRuleset|ruleset.xml#Ruleset_1225376443265)
wsadmin>$AdminConfig create Rule (cells/dabtcCell01/nodes/dabtcNode01/servers/odr1/ruleset/MySampleRuleset|ruleset.xml #Ruleset_1225376443265) {{name MySampleRule} {priority 0} {expression "virtualhost <> 'badvhost'"}}
MySampleAction(cells/dabtcCell01/nodes/dabtcNode01/servers/odr1/ruleset/MySampleRuleset|ruleset.xml#Action_1225376719437)
"GET /A/ServerInfo HTTP/1.1" 62 localhost 9.26.168.190 dabtcCell01/dabtcNode01/TestClusterA_dabtcNode01 "GET /A/ServerInfo HTTP/1.1" 16 localhost 9.25.129.176 dabtcCell01/dabtcNode01/TestClusterA_dabtcNode01_1 "GET /A/ServerInfo HTTP/1.1" 16 localhost 9.23.172.192 dabtcCell01/dabtcNode01/TestClusterA_dabtcNode01 "GET /A/ServerInfo HTTP/1.1" 0 localhost 9.24.142.193 dabtcCell01/dabtcNode01/TestClusterA_dabtcNode01_1 "GET /A/ServerInfo HTTP/1.1" 16 localhost 9.23.122.191 dabtcCell01/dabtcNode01/TestClusterA_dabtcNode01 "GET /A/ServerInfo HTTP/1.1" 16 localhost 9.27.138.119 dabtcCell01/dabtcNode01/TestClusterA_dabtcNode01_1
"GET /A/ServerInfo HTTP/1.1" 200 "GET /A/ServerInfo HTTP/1.1" 200 "GET /A/ServerInfo HTTP/1.1" 200 "GET /A/ServerInfo HTTP/1.1" 200 "GET /A/ServerInfo HTTP/1.1" 200 "GET /A/ServerInfo HTTP/1.1" 200