8 Replies Latest reply on May 23, 2015 5:04 PM by M Bagheryan M

    How to Get Rid of any files which may be filling the disk

    M Bagheryan M

      Commands to delete any files which may be filling the disk:

      ### Access logs & User defined logs:
      # Show space used by access logs
      du -ch /opt/mwg/log/user-defined-logs/access.log | grep total
      # Show space used by all user-defined logs
      du -ch /opt/mwg/log/user-defined-logs | grep total

      ### Rule traces:
      # Show space used on disk
      du -ch /opt/mwg/log/debug/ruleengine_tracing | grep total
      # To delete
      cd /opt/mwg/log/debug/ruleengine_tracing
      find . -type f -name '*.xml' -delete

      ### Connection traces (To disable go to Configuration > Troubleshooting):
      # Show space used on disk
      du -ch /opt/mwg/log/debug/connection_tracing | grep total
      # To delete
      cd /opt/mwg/log/debug/connection_tracing
      find . -type f -name '*.txt' -delete

      ### Coordinator message traces (To disable go to Configuration > Troubleshooting):
      # Show space used on disk
      du -ch /opt/mwg/log/debug/message_tracing | grep total
      # To delete
      cd /opt/mwg/log/debug/message_tracing
      find . -type f -name 'mwg-coordinator_messages.*' -delete

      ### Auth debugging logs (To disable go to Configuration > Troubleshooting):
      # Show space used on disk
      du -ch /opt/mwg/log/debug/mwg-core__Auth* | grep total
      # To delete
      cd /opt/mwg/log/debug
      find . -type f -name 'mwg-core__Auth*' -delete

      ### MWG temp files (to delete you must restart services):
      du -ch /opt/mwg/temp | grep total
      # To delete (will cause interuption)
      service mwg restart



      Cheers

      M.Bagheryan M