Re: EIF Trace Log with distributed application
From: Mike Hayton [MS] (mikehayt__at_online.microsoft.com)
Date: 07/28/04
- Next message: Mike Hayton [MS]: "RE: I implemanted Custom Event Schema, Custom Event Sink and I have a problem"
- Previous message: Mike Hayton [MS]: "Re: Using EIF with Biztalk 2004"
- In reply to: Samuel P Ludlow: "Re: EIF Trace Log with distributed application"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 28 Jul 2004 01:36:14 GMT
No worries :)
--------------------
Dear Mike
|
| Thank you for your response.
|
| You have saved me some time.
|
| I thought that the Trace Windows Services could maybe talk to each other
but
| I was being silly.
|
| Cheers
|
| Samuel
|
| "Mike Hayton [MS]" <mikehayt_@online.microsoft.com> wrote in message
| news:LZ7TLy2cEHA.1540@cpmsftngxa10.phx.gbl...
| > Windows Event Tracing only logs onto the local hard disk (for
performance
| > reasons). You'll need to move the log files into a central place.
| >
| > I'd reccommend that you use the following script to roll over the log
| files
| > and then take these log files and put them into a central location.
| >
| > Cheers
| >
| > Mike
| >
| > wscript.echo "Script started ..."
| >
| > dtNow = Now
| > sNow = Year(dtNow) & Right("0" & Month(dtNow),2) & Right("0" &
| > Day(dtNow),2) & "T" & Right("0" & Hour(dtNow),2) & Right("0" &
| > Minute(dtNow),2) & Right("0" & Second(dtNow),2)
| >
| > Set traceSettings =
| >
|
CreateObject("Microsoft.EnterpriseInstrumentation.Configuration.TraceSetting
| > s")
| >
| > strTraceConfigFile = traceSettings.GetConfigFileLocation()
| > traceSettings.load(strTraceConfigFile)
| >
| > Set colTraceSessions = traceSettings.TraceSessions
| >
| > For Each traceSession In colTraceSessions
| >
| > wscript.echo "Trace Session Name: " & traceSession.Name
| > wscript.echo "Trace Session Log Name: " & traceSession.FileName
| > wscript.echo "Trace Session Status: " & traceSession.Enabled
| >
| > If traceSession.Enabled Then
| > path = Left( traceSession.FileName, InStrRev( traceSession.FileName, "\"
| > ) )
| > traceSession.FileName = path & traceSession.Name & "_" & sNow & ".log"
| > wscript.echo "New Trace Session Log Name: " & traceSession.FileName
| > End If
| >
| > Next
| >
| > 'Since the trace session.config file has been changed we need to save it
| >
| > If traceSettings.IsDirty Then
| > wscript.echo "Saving configuration changes"
| > traceSettings.Save
| > End If
| >
| > wscript.echo "Script terminated."
| >
| >
| > --------------------
| > |
| > | Dear Group
| > |
| > | I am using the EIF to write to the trace log.
| > |
| > | My application is distrubuted over several servers.
| > |
| > | I am only interested in using the standard built in Trace Event Sink.
| > |
| > | How do I configure all my servers to write to the Trace Log on only
one
| > | machine?
| > |
| > | Is this possible, or do I need a seperate application that will
collect
| > the
| > | info from the seperate machines?
| > |
| > | Cheers
| > |
| > | Samuel
| > |
| > |
| > |
| >
| > --
| >
| > This posting is provided "AS IS" with no warranties, and confers no
| rights.
| > Use of included script samples are subject to the terms specified at
| > http://www.microsoft.com/info/cpyright.htm
| >
|
|
|
-- This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm
- Next message: Mike Hayton [MS]: "RE: I implemanted Custom Event Schema, Custom Event Sink and I have a problem"
- Previous message: Mike Hayton [MS]: "Re: Using EIF with Biztalk 2004"
- In reply to: Samuel P Ludlow: "Re: EIF Trace Log with distributed application"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|