Getting Data In

HOW TO USE LINE_BREAKER 3?

DuXa
New Member

Hello, I have logs with some events. My events start from:"main: number of bytes received: " and finish to:"msgsnd_w_retry [dst task: COMMSINT, time: 27/03/2011 09:48:31.0157]: Send msg to queue 34504712". I use line Line breaker: "LINE_BREAKER= (^.)*+Send\s+msg\s+to\s+queue\s+\d* (\n)* (^.)*+\v*+\s*+main+:+\s*+number+\s*+of+\s*+bytes+\s*+received+:+\s*+\d" and I want to see only my event . But It doesn't not work. Help mу pls.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

The LINE_BREAKER statement is an unquoted regex string that defines the text that comes between events. A capturing group is required and the contents of that group will be discarded. You probably want something like:

LINE_BREAKER = ([\r\n])main:
---
If this reply helps you, Karma would be appreciated.
0 Karma

DuXa
New Member

Yes, I want this, but i don't how how to write?

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Use a site like regex101.com to find a regex string that finds the separators between your events. Put that regex string in your local/props.conf file under the appropriate stanza. Restart Splunk for the change to take effect.

---
If this reply helps you, Karma would be appreciated.
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 ...