IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

How to delete logs in IS using Shell script? Can anyone tell the scripting soon... Th

  • 1.  How to delete logs in IS using Shell script? Can anyone tell the scripting soon... Th

    Posted Fri October 19, 2012 03:49 AM

    How to delete logs in IS using Shell script? Can anyone tell the scripting soon… Thanq


    #webMethods-Archive
    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: How to delete logs in IS using Shell script? Can anyone tell the scripting soon... Th

    Posted Fri October 19, 2012 09:20 AM


  • 3.  RE: How to delete logs in IS using Shell script? Can anyone tell the scripting soon... Th

    Posted Fri October 19, 2012 09:31 PM

    Be carefull you may need logs in near future for some analysis, so plan how old data you want to delete.

    Login to Unix / Linux as user who is owner of webmethds installation directory
    Use “cd ”
    Use “pwd” to verify you reached correct path
    Use “ls -l” to view all files in the log folder
    Use “rm .log” to delete selected log file OR
    Use “rm *.logs” to delete all logs in the logs folder, carefull there is no recycle bin in Unix / Linix.


    #webMethods-Archive
    #webMethods
    #Integration-Server-and-ESB


  • 4.  RE: How to delete logs in IS using Shell script? Can anyone tell the scripting soon... Th

    Posted Sun October 21, 2012 05:08 PM

    A small addition to what atul_arvind wrote above

    1. Go to logs folder in IS.
    2. Run find . -type f -mtime +7 -exec rm -rf {} ; (to delete files older than 7 days. Replace 7 with no. of days of your choice)

    Guna


    #webMethods
    #webMethods-Archive
    #Integration-Server-and-ESB