Getting Data In

WARN LineBreakingProcessor

jadengoho
Builder

Hi All, 
I have a log with 3 event inside of it, ( you can see it on the screenshot, I paste the sample logs here : https://regex101.com/r/EvmMeR/1

  • 1st Event -  Short event 
  • 2nd Event - Short event and multi-line
  • 3rd Event - VERY LONG and multi-line, need to be dropped as per the client.

jadengoho_0-1637740603378.png

I manage to DROP the 3rd event by finding the LOGS that are greater than 2000 characters.

The problem is , I dropped the event but Splunk still raise the issue:
11-24-2021 08:02:57.049 +0000 WARN LineBreakingProcessor [6453 parsing] - Truncating line because limit of 2000 bytes has been exceeded with a line length >= 55179 - data_source="SAMPLETOSHARE.txt", data_host="5bfd55dbdcdd", data_sourcetype="sample"

jadengoho_1-1637740993087.png

 

Is there a way to stop splunk from flagging issue for those logs that  was dropped ? 

Tags (2)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Line breaking happens before any transforms that might discard events so the log message has already been written by the time the event is dropped.  There's no way to avoid that, except by using a third-party tool like Cribl to discard events before they reach the indexer.

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

View solution in original post

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Line breaking happens before any transforms that might discard events so the log message has already been written by the time the event is dropped.  There's no way to avoid that, except by using a third-party tool like Cribl to discard events before they reach the indexer.

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

jadengoho
Builder

Thanks @richgalloway 

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...