Solved

How do I reset Default Web Site to default logging after being set to ODBC System DSN?

Posted on 2010-11-23
3
350 Views
Last Modified: 2012-05-10
How do I reset Default Web Site to default logging after being set to ODBC System DSN?  Looking for a way of removing and or reset logging to defaults by using appcmd.exe or .Net by editing applicationhost.config file.  Whenever I change to use another System DSN or reset logging to default, does not work.  Leaves remnants of prior ODBC logging in applicationhosts.config file.  How do I reset website logging to defaults or rest in applicationhost.config file?
0
Comment
Question by:bcoturbo
  • 3
3 Comments
 
LVL 42

Expert Comment

by:sedgwick
ID: 34276940
how do u change it to ODBC System DSN?
0
 
LVL 42

Expert Comment

by:sedgwick
ID: 34276943
i meant to which logging the default web set is changed?
the default is W3C as far as i know...
0
 
LVL 42

Accepted Solution

by:
sedgwick earned 500 total points
ID: 34276948
to reset the logging to its default (W3C and daily scheduled) you can use the appcmd.exe:

appcmd.exe set config -section:system.applicationHost/log /centralLogFileMode:"CentralW3C" /commit:apphost

appcmd.exe set config -section:system.applicationHost/log /centralW3CLogFile.period:"Daily" /commit:apphost
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

706 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now