Re: EIF Trace Log with distributed application
From: Samuel P Ludlow (Samuel.Ludlow_at_NoSpam.AuberginePrint.NoSpam.co.uk)
Date: 07/27/04
- Previous message: Mike Hayton [MS]: "RE: event viewer synchronization"
- In reply to: Mike Hayton [MS]: "RE: EIF Trace Log with distributed application"
- Next in thread: Mike Hayton [MS]: "Re: EIF Trace Log with distributed application"
- Reply: Mike Hayton [MS]: "Re: EIF Trace Log with distributed application"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 27 Jul 2004 10:36:25 +0100
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
>
- Previous message: Mike Hayton [MS]: "RE: event viewer synchronization"
- In reply to: Mike Hayton [MS]: "RE: EIF Trace Log with distributed application"
- Next in thread: Mike Hayton [MS]: "Re: EIF Trace Log with distributed application"
- Reply: Mike Hayton [MS]: "Re: EIF Trace Log with distributed application"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|