Other Usage

Windows event log Splunk HF with truncation

sarvananth
Explorer

sarvananth_0-1706451087963.png

We are using Splunk Universal Forwarder (UF) to forward logs from a Windows server to a Splunk Heavy Forwarder (HF). However, when the Splunk HF receives logs of a specific type as multiline, an issue arises. In this case, when attempting to forward these logs from the Splunk HF to a syslog server (a Linux server with rsyslog configuration), the logs are getting truncated. How can we address and resolve this issue?

0 Karma

tscroggins
Influencer

Hi @sarvananth,

Have you reviewed rsyslog documentation for maximum message length and line endings? If you're forwarding using a syslog output over UDP, the transport itself has a limit of 65,535 bytes per datagram (subtract headers for maximum payload length). You may also want to transform the events by replacing line endings with an escape sequence of your choosing (or one required by the consumer).

richgalloway
SplunkTrust
SplunkTrust

The screenshot shows an untruncated event.  What makes you believe the logs are getting truncated?  Please show a sanitized sample truncated event.

Why are the events going from a Splunk HF to a syslog server instead of to a Splunk indexer?

---
If this reply helps you, Karma would be appreciated.
0 Karma

sarvananth
Explorer

please check the truncated event from syslog server 

sarvananth_0-1706482345395.png

We are attempting to send logs to both the Splunk indexer and the syslog server because different teams handle distinct log types. My team manages the system security logs specifically for SOC team monitoring.

0 Karma

JunYamaguchi
Splunk Employee
Splunk Employee

This can be caused by syslog not supporting newlines(\n).
The following settings on the HF will improve this.

props.conf

[your-sourcetype]
TRANSFORMS-◯◯ = transname

transforms.conf

[transname]

INGEST_EVAL = _raw=replace(_raw, "\n", " ")
0 Karma
Get Updates on the Splunk Community!

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...