Saturday, June 16

How to rotate the log files(Zero Out) without having to restart the services:

Syntax: date > logfile

This will 'empty' the file and insert as the first line the output from the date command. If you want a completely empty file, don't enter date

just > logfile This works great on apache and other web server logs, without ever stopping the service

2 comments:

  1. Kindly update the log file locations in weblogic server and in 11g forms and reports server..

    Regards
    Paja

    ReplyDelete
    Replies
    1. If you want the log file location. just use "find " command to check the location it will display the all logs location.

      pf -ef | grep "*.log"

      Delete