WLST Script -> wlst-online-01-changeAccessLogBuffer.py

def changeAccessLogBuffer():
                connect('weblogic', 'Password', 't3://host:port')
                edit()
                startEdit()
                cd('/Servers')
                redirect('/dev/null','false')
                servers=ls(returnMap='true')
                redirect('/dev/null','true')
                for svr in servers:   
                    cd('/Servers/'+svr+'/WebServer/'+svr+'/WebServerLog/'+svr)
                    cmo.setBufferSizeKB(0)
                    save()
                activate()
                print('ACTIVATION: DONE')
                print("BUFFER SIZE CHANGED TO '0' FOR ALL SERVERS")
                disconnect()
def main():
    
        changeAccessLogBuffer()
main()

wlst-online-01-changeAccessLogBuffer

Execution Logs ->

[machine-1]$ java weblogic.WLST wlst-online-01-changeAccessLogBuffer.py

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

Connecting to t3://: with userid weblogic ...
 Successfully connected to Admin Server "AdminServer" that belongs to domain "my_domain".

Warning: An insecure protocol was used to connect to the
 server. To ensure on-the-wire security, the SSL port or
 Admin port should be used instead.

Location changed to edit tree. This is a writable tree with
 DomainMBean as the root. To make changes you will need to start
 an edit session via startEdit().

For more help, use help('edit')

Starting an edit session ...
 Started edit session, please be sure to save and activate your
 changes once you are done.
 ACTIVATION: DONE
 BUFFER SIZE CHANGED TO '0' FOR ALL SERVERS
 [machine-1]$