Changing the trace log filter - Websphere

This is a discussion on Changing the trace log filter - Websphere ; Does Websphere 6.0.2.17 supports dynamic change in the trace filter level? I have modified from *=info to *=info:com.ibm.ws.Transaction.*=all:com.ibm.ws.j2c .*=all: com.ibm.ws.jtaextensions.*=all:net.sf.*=all but its not getting reflected. Do I need to restart the server(This will make me mad)? Please help....

+ Reply to Thread
Results 1 to 3 of 3

Thread: Changing the trace log filter

  1. Changing the trace log filter

    Does Websphere 6.0.2.17 supports dynamic change in the trace filter level? I have modified from *=info to
    *=info:com.ibm.ws.Transaction.*=all:com.ibm.ws.j2c .*=all: com.ibm.ws.jtaextensions.*=all:net.sf.*=all but its not getting reflected. Do I need to restart the server(This will make me mad)?

    Please help.


  2. Re: Changing the trace log filter

    It depends on how you are changing the trace filter details...if you are
    doing it through the Admin Console you will need to make sure you make
    that change on 'Runtime' tab _not_ the 'Configuration' tab. If you are
    doing this using wsadmin, I believe you will need to make the change via
    AdminControl _not_ AdminConfig. WebSphere has supported changing the
    trace filter level without restarting the server since at least v5.

    Regards,
    David Brauneis
    IBM Rational Build Forge Architecture & Development


    mod_kp@yahoo.com wrote:
    > Does Websphere 6.0.2.17 supports dynamic change in the trace filter level? I have modified from *=info to
    > *=info:com.ibm.ws.Transaction.*=all:com.ibm.ws.j2c .*=all: com.ibm.ws.jtaextensions.*=all:net.sf.*=all but its not getting reflected. Do I need to restart the server(This will make me mad)?
    >
    > Please help.
    >
    >



  3. Re: Changing the trace log filter

    On Apr 25, 9:32 am, wrote:
    > Does Websphere 6.0.2.17 supports dynamic change in the trace filter level? I have modified from *=info to
    > *=info:com.ibm.ws.Transaction.*=all:com.ibm.ws.j2c .*=all: com.ibm.ws.jtaextensions.*=all:net.sf.*=all but its not getting reflected. Do I need to restart the server(This will make me mad)?
    >
    > Please help.


    Try this JACL script.


    set traceSpec [lindex $argv 0]
    set wasnd [lindex $argv 1]
    set nodeName [lindex $argv 2]
    set processName [lindex $argv 3]

    if { $wasnd=="false" } {
    set nodeName [$AdminControl getNode]
    set processName server1
    }

    set ts [$AdminControl completeObjectName type=TraceService,process=
    $processName,node=$nodeName,*]
    set currentTraceSpec [$AdminControl getAttribute $ts
    traceSpecification]

    puts [format "Current trace specification is: %s" $currentTraceSpec]
    puts [format "Setting trace specification to: %s" $traceSpec]

    # Set the runtime trace level
    $AdminControl setAttribute $ts traceSpecification $traceSpec

    # Set the configuration trace level (will be persisted upon appserver
    restart)
    set server [$AdminConfig getid /Cell:[$AdminControl getCell]/Node:
    $nodeName/Server:$processName/]
    set tc [$AdminConfig list TraceService $server]
    $AdminConfig modify $tc[list[list startupTraceSpecification
    $traceSpec]]

    # Save changes
    $AdminConfig save
    puts "Successfully set trace level"


+ Reply to Thread