Home > Midmarket CIO Tips > Data centers and infrastructure for the midmarket > How to automatically purge Exchange-related logs
CIO Midmarket Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

DATA CENTERS AND INFRASTRUCTURE FOR THE MIDMARKET

How to automatically purge Exchange-related logs


Serdar Yegulalp, Contributor
05.25.2006
Rating: --- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


This tip originally appeared on SearchExchange.com, a sister site of SearchSMB.com.

Please let others know how useful this tip is via the rating scale at the end of it. Do you have a useful Exchange or Outlook tip, timesaver or workaround to share? Submit it to SearchExchange.com. If we publish it, we'll send you a nifty thank-you gift.


Given how cheap storage has become, it's now possible to keep detailed logs for most of your services going back months or even years.

But if you aren't fortunate enough to have a lot of free disk space on hand, you may only want to keep logs you absolutely need, so you don't negatively impact performance.

Performance considerations become doubly important if you use third-party utilities to analyze logs and report results; if you're allowing those programs to search all available logs, the analysis will slow to a crawl.

There are a couple of ways to deal with a backlog of logs:

  1. Go through them by hand and manually delete the old ones.
    This is probably more of an investment of time and energy than most system administrators want to put in.

  2. Have a script or program purge them when they're more than a certain age.
    This is probably the most useful, since the interval can usually be adjusted freely.

Exchange Server expert Jim McBee has drafted a set of scripts to do exactly that: one for purging HTTP logs, another for SMTP logs, and a third for the UCE Archive (i.e., Microsoft Exchange's spam trap).

In each script, there are three parameters to be modified:

  • The folder that contains the log files you want to purge
  • A folder to generate a logfile of script actions
  • The number of days files are to be kept

These parameters are fairly well-documented within each script. So if you have a familiarity with VBScript, it shouldn't be difficult to customize them.

NOTE: Files deleted with these scripts are hard-deleted. They are not sent to the Recycle Bin and cannot be recovered, except perhaps through specialized undelete tools, so use them with care.

About the author: Serdar Yegulalp is editor of the Windows Power Users Newsletter.

Do you have comments on this tip? Let us know.

Related information from SearchExchange.com:

  • Tip: Free log reporting tool for HTTP and Exchange Server
  • Tip: Exchange Server diagnostics -- an introduction to application and system logs
  • Reference Center: Exchange Server monitoring and logging tips

    Rate this Tip
    To rate tips, you must be a member of SearchCIO-Midmarket.com.
    Register now to start rating these tips. Log in if you are already a member.




    Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



    RELATED CONTENT
    Data centers and infrastructure for the midmarket
    10 tips for renegotiating your virtualization licensing contracts
    Management tools for virtualized servers: A look at the options
    Virtual server management vs. physical servers: What's the difference?
    Virtualization technology use spreading into desktops and storage
    Laying the groundwork for cloud computing services adoption in 6 steps
    Cloud computing tips for getting started with next-gen IT capabilities
    What do you know about data center outsourcing?
    Pricing out Windows Server 2008 for virtualization cost efficiency
    Data center strategy starts with the business
    Desktop and application virtualization: Lessons learned

    VoIP and unified messaging for the midmarket
    Midmarket data center management guides: Tips and best practices
    FAQ: What is unified communications, and why would I want it?
    Mobile unified communications options for the midmarket
    Fixed-mobile convergence saves firms costly mobile phone charges
    Unified communications plans should tap CIO
    CIOs grapple with tying Wi-Fi, VoIP into unified communications plan
    Unified communications: Savvy business move or security meltdown?
    Unified communications: Securing access to OCS
    Unified communications security: How safe is it?
    CIO Joseph Edward: In-house app ties parishes together

    RELATED RESOURCES
    2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
    Search Bitpipe.com for the latest white papers and business webcasts
    Whatis.com, the online computer dictionary

    DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



  • Mid-market CIO Business Solutions on Data Integrity, Unified Communications, and Virtualization
    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    SEARCH 
    TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Site Map




    All Rights Reserved, Copyright 2007 - 2009, TechTarget | Read our Privacy Policy
      TechTarget - The IT Media ROI Experts