How to reduce the size of logging database OR How to purge the old data from Logging Database

WSS logging database grows very fast and it cause the storage problem most of the time in sharepoint server 2010.

To reduce the size of the logging database or to purge the old data from the logging database we can these steps.

To find the Logging Database Name go to following path:-

Login to Central Administration -> Monitoring -> Configure Usage and health data collection->

The Logging database stores the following things:-

  • ULS Logs from 14 Hive\LOGS
  • Raw Resource Usage Data

This data is used by Web Analytics in Sharepoint. Two timer jobs Microsoft SharePoint Foundation Usage Data Import and Microsoft SharePoint Foundation Usage Data Processing are used for importing and processing the raw data in the web analytics database.

By Default the system retains 14 days of Usage data in this database. By following PowerShell command we can check and change the value of retention days of this database. Get-spusagedefinition and Set-SPUsageDefinition

Try  Get-SPUsageDefinition

Now you need to find which table is taking most of the space inside the WSS logging Database.

You Can check the same from the SQL Server

Login to Sharepoint Management Studio -> Select your logging Database (Right Click) -> Reports- > Standard Reports -> Disk Usage by Top Tables.

Say RequestUsage* is taking most of the space inside WSS Logging database so  you can bring down the retention period of  Page Request Event.

Or if you want you can bring down the retention period for all the Events for any number of days from 14 to 1.

Use the following command to do so.

Set-SPUsageDefinition -Identity "Page Requests" -DaysRetained 3

Run the same Power Shell command again to cross check "Get-SPUsageDefinition" and check the Retention period is changed or not.

After that we need to run the two timer jobs to clean the old data ‘Microsoft SharePoint Foundation Usage Data Import‘ and ‘Microsoft SharePoint Foundation Usage Data Processing‘.

Go to Sharepoint Central Administration -> Monitoring -> Configure Usage and health data collection-> Log Collection Schedule.

And it will take you to the timer jobs.

Now Click on both the Job Definitions one by one and hit ‘Run Now‘ to run the timer jobs

Once the timer jobs is run you can check and confirm database has released the space.

http://blogs.msdn.com/b/manhar/archive/2012/04/17/how-to-reduce-the-size-of-logging-database-or-how-to-purge-the-old-data-from-logging-database.aspx

How to reduce the size of logging database OR How to purge the old data from Logging Database

时间: 2024-10-31 03:21:43

How to reduce the size of logging database OR How to purge the old data from Logging Database的相关文章

On the development of a new generation of large data distributed relational database initiative

Li Wanhong The modern era has entered the age of big data, while the NoSQL database to support SQL and things not to force, therefore, the development of a new generation of large data distributed relational database is around the corner, this is a n

1342. Reduce Array Size to The Half

Given an array arr.  You can choose a set of integers and remove all the occurrences of these integers in the array. Return the minimum size of the set so that at least half of the integers of the array are removed. Example 1: Input: arr = [3,3,3,3,5

【leetcode】1338. Reduce Array Size to The Half

题目如下: Given an array arr.  You can choose a set of integers and remove all the occurrences of these integers in the array. Return the minimum size of the set so that at least half of the integers of the array are removed. Example 1: Input: arr = [3,3

unity, reduce android size

参考: https://www.youtube.com/watch?v=TYSmf_zgtZo http://stackoverflow.com/questions/41087220/how-to-use-stripping-level-il2cpp-option-in-android-player-settings-unity http://gamedev.stackexchange.com/questions/116027/armv7-vs-fat-in-unity-android-buil

Instance Two: Insert Data to Mysql database

#!/usr/bin/env python #--*-- coding:utf-8 --*-- __author__ = 'Kevin' import MySQLdb as mdb import sys con = mdb.connect('localhost','root','redhat','test') try: with con: cur = con.cursor() cur.execute("CREATE TABLE IF NOT EXISTS Writers(Id INT PRIMA

P6 EPPM Manual Installation Guide (Oracle Database)

Contents Oracle Database Manual Configuration Overview ,,★★5 Oracle Database Installation ,,★★6 Creating the Database Structure for Oracle and Loading Application Data ,,★★7 Creating the P6 EPPM Database Structure for Oracle ,,★★7 Copying the Script

Hive编程指南_学习笔记01

第四章: HQl的数据定义 1:创建数据库 create database financials; create database  if not exists financials; 2: 查看数据库 show databases; 模糊查询数据库 show databases like 'h.*' ; 3:创建数据库改动数据库的默认位置 create database financials localtion '/my/preferred/directory' 4:添加数据库的描写叙述信息

Oracle corrupt block(坏块) 详解

转自:http://blog.csdn.net/tianlesoftware/article/details/5024966 一. 坏块说明 1.1 相关链接 在看坏块之前,先看几个相关的链接,在后面的说明中,会用到链接中的一些内容. ORA-600 各个参数含义说明 http://blog.csdn.net/tianlesoftware/article/details/6645809 Oracle 不同故障的恢复方案 http://blog.csdn.net/tianlesoftware/ar

做一个分布式、跨语言、跨平台、敏捷 需要那些技术做支撑?

做了7年的开发了,时间越久越是发现自己需要一个像标题写的那样的一个架构做为整个平台的支撑. 我的技术种类又是.net开发,总觉得.net技术人才容易出现瓶颈:其实这种瓶颈更像是这种环境造成的.简单快捷的开发本来就是.net所追求的,而这种追求导致整个语言平台在技术上都喜欢用最直接简单的方法解决问题,至于架构,可维护,持续升级,还是等项目上线或是出了问题之后再说.成熟.稳健并被公认的技术架构似乎每个做技术的都是见仁见智,都有自己独立的理解,而像java一样ssh等成熟公认的架构在业界基本寥寥无几,