Giter Site home page Giter Site logo

Comments (4)

zacbrown avatar zacbrown commented on May 17, 2024

I will look into this one today. It may take me a little time.

from krabsetw.

zacbrown avatar zacbrown commented on May 17, 2024

Alright - I had some success in understanding the issues you're seeing. Here's the short version:

  1. The "message" and "ex" fields you're logging aren't being logged as ANSI strings, they're being logged as Counted Strings. You need to call record.GetCountedString("message")
  2. I cannot explain why the record.Id fields are wrong but I was able to confirm that krabsetw is parsing them correctly. I pulled dumped the events in PerfView and they show the IDs to be 4 and 5 respectively, like you're seeing in krabsetw.

Long Version

For the issue of ANSI versus Counted String, this one is hard to identify without using a debug version of the Lobsters DLL (O365.Security.Native.ETW). With the debug version, it will assert under the debugger if you try to call the wrong type-getter on a field. I will open an issue to either create a debug-version of this lobsters or make a multi-configuration nuget package.

Here's an example of the assert:
typeassert

For the record ID thing, I'm not sure how to think about that. We don't use System.Diagnostics.Tracing.EventSource in our code base so this is the first time I've tried to debug one. Here's what I'm seeing under PerfView when I dump the events:

Dumped LogEvent event
dumped-info-event

Dumped LogError event
dumped-error-event

from krabsetw.

zacbrown avatar zacbrown commented on May 17, 2024

Debug version of O365.Security.Native.ETW available now as NuGet package: https://www.nuget.org/packages/O365.Security.Native.ETW.Debug/1.0.0.

This will produce the type asserts I screen-shotted above.

from krabsetw.

zacbrown avatar zacbrown commented on May 17, 2024

Please let me know if you're still having trouble. If I don't hear from you I'll close the issue on Friday.

from krabsetw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.