Getting Data In

Line breaking

DuXa
New Member

How can I set the start and end of events in the source selection. To output only my event . I use MUST_BREAK_AFTER and Line breaking and BREAK_ONLY_BEFORE.How to use LINE_BREAKER? For example my event start: main: "number of bytes received" and finish: Send msg to queue.

Tags (2)
0 Karma

woodcock
Esteemed Legend

Generally you do 1 of 2 things; either:

1: Modify the linbreaker to consume all variations of your inter-event garbage (including newlines) with:

LINE_BREAKER=MyRegExForInterEventJunk
SOULD_LINEMERGE = false

2: Allow the junk to be part of the end of each event and tell Splunk were to break

BREAK_ONLY_BEFORE=MyRegExForWhereToBreak
SHOULD_LINEMERGE = true

Generally, the latter is preferable.

0 Karma

lguinn2
Legend

This question is impossible to answer. Please give some examples of your data.

Also, usually you use only one of these settings: MUST_BREAK_AFTER, BREAK_ONLY_BEFORE, and LINE_BREAKER.

You don't use all three of them at once, only the setting that works best for your data.

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...