cancel
Showing results for 
Search instead for 
Did you mean: 
mbagheryan
Level 12

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

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

8 Replies
McAfee Employee

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

That looks familiar

roybad
Level 7

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

Just needs a fancy cron job to say "if space looks like it is filling up "DELETE" "DELETE"

got one up your sleeve Jon?

McAfee Employee

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

Thats where it gets a little tricky....

What if your organization requires that you keep log files? And say MWG is failing to push them elsewhere, and therefore not deleting them...

I say the pushing problem should be fixed first.

If it's something like connection traces, rule tracing or some other debugging option I could see it being more viable to delete them without worry, however it would still require manual intervention (without extra unsupported wizardry) to disable the setting.

In the techtalk coming up next week, I will be discussing such problems and how to avoid them. My discussion will not discuss such automation, however it will discuss good options for being alerted with actionable next steps.

Best Regards,

Jon

0 Kudos
mbagheryan
Level 12

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

Hi Jon,

Can you send me the link to attend?

M.B.M

0 Kudos
McAfee Employee

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

Hey ,

See link below for details:

Best Regards,

Jon

mbagheryan
Level 12

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

Hi Jon,

Thanks for the link but I Just missed it.

I was in my customer side when they were ruined their ssl scanner.

BTW, Would you please to send me the records if there is?

Appreciating before.

M.B M

0 Kudos
McAfee Employee

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

Hi MBM,

My topic is covered here:

I'll post the recording there when it is converted.

Best Regards,

Jon

mbagheryan
Level 12

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

Many Thanks.

0 Kudos