Comments (4)
I will look into this one today. It may take me a little time.
from krabsetw.
Alright - I had some success in understanding the issues you're seeing. Here's the short version:
- 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")
- 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:
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:
from krabsetw.
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.
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)
- How to get the user mode call stack
- Parsing .NET EventSource HOT 1
- The object_manager_provider does not support DuplicateHandle events HOT 1
- [Help] i use c++ 11 and i create a payload filter then failed , status = ERROR_NOT_FOUND
- Add out type for the property (_TDH_OUT_TYPE) HOT 1
- need support vs2022
- Errors in file code
- No proper explanation for kernel_trace vs user_trace? HOT 3
- Correct way for copying every info related to a given event in my event callback and passing it to another thread? HOT 1
- Benefits and drawbacks of using a kernel_trace vs a user_trace for consuming an event which is in both? HOT 5
- Ability to control EVENT_FILTER_DESCRIPTOR HOT 1
- Expose ExtendedData HOT 1
- Does krabs c++ library support c++11? What about v120 platform toolset? HOT 1
- Possible ways to protect ETW trace sessions from getting stopped? HOT 1
- Why Service Control Manager provider doesn't generate any event id? HOT 2
- Can't query providers infomation using logman when setup a kernel trace using krabs::kernel::virtual_alloc_provider provider. HOT 1
- Does krabs etw handle trace closure in case of program crash? Can it cause a problem in enabling and starting the same session again? HOT 2
- both Windows XP and Windows 2008 support ETW. Why not support these two systems? HOT 1
- Couldn't installed KrabsETW nuget package via Visual Studio 2022
- NuGet feeds are not compliant with NuGet feed security requirements HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from krabsetw.