Solved

Cleaning up spiceworks logs

Posted on 2014-12-17
6
226 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
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 
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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
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…
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 teach you the basics of configuring your computer to improve its speed. It will also teach you how to disable programs that are running in the background simultaneously. This will be demonstrated using Windows 7 operating…

830 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