Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-441

access log rotates even when rotation is disabled by "rotate" attribute

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.3.0.Beta1
    • 1.2.4.Final
    • None
    • None
    • Hide

      created

      /subsystem=undertow/server=default-server/host=default-host/setting=access-log:add()
      

      disabled rotation:

      /subsystem=undertow/server=default-server/host=default-host/setting=access-log/:write-attribute(name=rotate,value=false)
      

      performed server reload

      reload
      

      some request on server (so logfile itself is created)
      change of last modification time of the logfile in filesystem to yesterday, e.g.:

      touch -r some_propper_file logfile
      

      performed reload of the server (to reinitialize working with logfile) and request on the server again... now logfile has rotated but I expected that it won't.

      Show
      created /subsystem=undertow/server= default -server/host= default -host/setting=access-log:add() disabled rotation: /subsystem=undertow/server= default -server/host= default -host/setting=access-log/:write-attribute(name=rotate,value= false ) performed server reload reload some request on server (so logfile itself is created) change of last modification time of the logfile in filesystem to yesterday, e.g.: touch -r some_propper_file logfile performed reload of the server (to reinitialize working with logfile) and request on the server again... now logfile has rotated but I expected that it won't.

      When I disable access log rotation by setting "rotate" attribute to false:

      /subsystem=undertow/server=default-server/host=default-host/setting=access-log/:write-attribute(name=rotate,value=false)
      

      The logfile keeps rotating - how tested in "Steps to Reproduce" section.

              sdouglas1@redhat.com Stuart Douglas (Inactive)
              jstourac@redhat.com Jan Stourac
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: