Getting Data In

Why is Windows event log message data being truncated and only the first 2 lines are getting forwarded?

andrefriedmann
New Member

Hi

I am having a strange issue where some of the message or 'EventData' is missing from the forwarded Windows event logs.

The majority of the event gets forwarded correctly, however, the message only gets the first 2 lines, then chops the rest off!

If I use renderXml = 1 in the inputs, then it works and I can see the full event as I do in Windows. However, I really would rather not have the events forwarded in the XML format!

Any ideas?

Thanks

0 Karma
1 Solution

wkupersa
Path Finder

Thank you for all the help. I finally figured out what was going on and it was on the windows side. The box in question is an event collector. Apparently I needed to modify the format of the forwarded events with the following statement

wecutil ss "subscription Name" /cf:Events

where "wecutil es" will list all the subscription names

View solution in original post

wkupersa
Path Finder

Thank you for all the help. I finally figured out what was going on and it was on the windows side. The box in question is an event collector. Apparently I needed to modify the format of the forwarded events with the following statement

wecutil ss "subscription Name" /cf:Events

where "wecutil es" will list all the subscription names

wkupersa
Path Finder

More on this. Making the change above allowed me to see what was going on and get the rest of the event. What I saw was that it was dropping at "message=" because the tool that I was logging wasn't installed on my event collector. When I installed that tool, I ended up having to change the event format back to RenderedText (wecutil ss "subscription name" /cf:RenderedText" in order to get everything to parse correctly. Quite the adventure.

0 Karma

ryandg
Communicator

That's an interesting nuance with your Windows Event Logs, thanks for sharing the fix!

0 Karma

ryandg
Communicator

you are sending this over TCP right and not UDP? The fact that it chops it off at 2 lines to me doesn't look like a truncation issue on the props and transforms but more like the data is getting split into small segments like a UDP connection would do for Windows events.

0 Karma

wkupersa
Path Finder

Thanks for the response. I should have been more clear. I my case, the log message is being truncated after 14 lines. All my log entries end with "message ="

I am using tcp.

I've turned on DEBUG for TailingProcessor, WatchedFile, TailReader, and the WinEventLog options on the forwarder and I am reviewing the splunkd.log but so far, I haven't seen anything useful.

0 Karma

ryandg
Communicator

Is the forwarder sending straight to the indexer tier or is it going to a heavy forwarder?

0 Karma

javiergn
SplunkTrust
SplunkTrust

If you search in your internal logs for truncated lines, can you see anything there at all?

index=_internal truncated

Are all your events getting the message field truncated? If not, do those events have anything in common?
Can you run btool to identify which settings are applying and if other apps are conflicting?

0 Karma

wkupersa
Path Finder

In my case, I see all sorts of notifications regarding things being truncated in the _internal index and splunkd.log, but nothing talking about the ForwardedEvents file that I am concerned about.

Btools only shows me the config from inputs.conf
[WinEventLog://ForwardedEvents]
current_only = 0
disabled = 0
evt_dc_name =
evt_dns_name =
index = FEvents

The default section has nothing defined.

0 Karma

wkupersa
Path Finder

Having same problem

0 Karma
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...