Solved

Cleaning up spiceworks logs

Posted on 2014-12-17
6
223 Views
Last Modified: 2014-12-17
Looking for a simple way way to remove the logs left behind from spiceworks. A one click option that blows them all away or a script that deletes everything from these two folders. The log directory and httpd\log folder fills up fast or just turn them off would be nice to. Spiceworks runs on Windows 7 desktop.
0
Comment
Question by:stlhost
  • 2
  • 2
  • 2
6 Comments
 
LVL 50

Expert Comment

by:jcimarron
ID: 40504914
stlhost --
Close Spiceworks \Delete the folder C:\Program Files\Spiceworks\Log.
This assumes you make no backup of the Log and really want to remove, irretrievably, the Log.
0
 
LVL 2

Author Comment

by:stlhost
ID: 40504925
It takes almost an hour to start up spiceworks probably should have noted that. Was hoping for a bat script that I can just click to delete everything in that folder. When I try del c:\folder location it says specific path is not found
0
 
LVL 19

Accepted Solution

by:
Peter Hutchison earned 500 total points
ID: 40504934
I use a script called LogCleaner which can be run every month and deletes logs older than x days old.
You can get it from here: http://community.spiceworks.com/scripts/show/884-iis-log-cleanup-script
0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
LVL 50

Expert Comment

by:jcimarron
ID: 40504935
stlhost--
"It takes almost an hour to start up spiceworks "
Maybe I misunderstand.  You are doing "Close Spiceworks \Delete the folder C:\Program Files\Spiceworks\Log" .  So Spiceworks is not running.  Everything is done within Windows.  Log could be a hidden folder, so:
To really show all hidden folders and files
1) In Explorer, click Organize in ToolBar|click "Folder and Search Options"|View|uncheck "Hide protected operating system files"|Yes|Apply|OK.  
2) And if not already done, under "Hidden Files and Folders", check "Show hidden files, folders,..." and uncheck "Don't show hidden files, folders...".
0
 
LVL 19

Expert Comment

by:Peter Hutchison
ID: 40504940
Additional note:
Note that the LogCleaner script can be modified to apply to any log folder or types of logs, not just IIS logs.
0
 
LVL 2

Author Closing Comment

by:stlhost
ID: 40504977
Worked perfectly. Thank you very much.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
On some Windows 7 (SP1) computers, Windows Update becomes super slow even the computer is reasonably fast.  There's one solution that seemed to have worked well for me (after trying a few other suggested solutions).
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question