Re: EIF Trace Log with distributed application

From: Samuel P Ludlow (Samuel.Ludlow_at_NoSpam.AuberginePrint.NoSpam.co.uk)
Date: 07/27/04

  • Next message: Ravinder Jain: "Application Logging Block"
    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
    >


  • Next message: Ravinder Jain: "Application Logging Block"

    Relevant Pages

    • Re: EIF Trace Log with distributed application
      ... | I thought that the Trace Windows Services could maybe talk to each other ... You'll need to move the log files into a central place. ... |> 'Since the trace session.config file has been changed we need to save it ... Use of included script samples are subject to the terms specified at ...
      (microsoft.public.vsnet.enterprise.tools)
    • call traces in logfiles
      ... is it normal that i get several entries "call trace" in my log files ... after starting sysreport? ...
      (Fedora)
    • Re: Res: Res: RE: Problems changing from 1.30 to 1.42
      ... > I used trace() but still cannot figure out what is happening, but still dont ... > I'm sending attached the log files and the program. ... This aspect of the change log for 2.9002 applies: ...
      (perl.dbi.users)
    • Trace
      ... I can't seem to get Trace to write to a file unless I explicitly call ... Trace.Closeat the end of my app. ... My log files don't flush until I ...
      (microsoft.public.dotnet.framework)