-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
loki.source.windowsevent and loki.process --> stage.eventlogmessage : invalid line parsed from message #15093
Comments
Hi, the stage.eventlogmessage expects the log lines to have the format "key:value": https://github.com/grafana/alloy/blob/main/internal/component/loki/process/stages/eventlogmessage.go#L79 |
@wildum and later |
I see, that's weird because the loki.source.windowsevent is supposed to output json formated data.
|
@wildum How would you parse these timestamps?
It looks like it is a fixed length of fractions of seconds with 7 digits. And how would you format these timestamps?
The documentation is not clear for me: Do I have to use in the first example .000000000Z or .0000000Z ? --- edit 2024-12-01 --- INVALID:
VALID
Back to the eventlog topic:
I attached 3 logfiles from "live_debugging"
01_debug_direct_after_loki_source_windowsevent_security.log edit 2024-12-06@wildum any idea or more logs needed? |
hey sorry I was away, thanks for all the info, I will investigate |
Describe the bug
I want to collect windows eventlogs from german windows 10 with grafana alloy 1.5.0 and loki 3.3.0.
As a result some of my windows eventlogs with channel "security" can not be parsed correctly.
To Reproduce
I am only logged in. I do not have any specific applications running. I can not say which process triggers these issues.
I think it is enough to have a Windows 10 computer or maybe any other recent WIndows system - maybe german language and alloy installed.
Expected behavior
Should parse all the logs correctly
Environment:
Windows 10, German, Alloy 1.5.0, Loki 3.3.0
Screenshots, Promtail config, or terminal output
Example of live_debugging of "loki.process"
This is the Windows event log:
New example:
Windows Event log:
The text was updated successfully, but these errors were encountered: