Getting Data In

break events each 6lines

CarolinaHB
Explorer

Hello, 

I'm having issues with line break for some reason. I'm looking to break an event every 6 lines. Any suggestions?

Log Example:

Total Operations
Currents/sec:Max/sec:Success:Failed
2
144
184469195
201
Key Generate
Current/sec:max/sec:Success:Failed
0
0
0
0
Key Version Generate
Currect/sec:Max/sec:Success:Failed
0
0
0
0
Key Version Generate
Currect/sec:Max/sec:Success:Failed
0
0
0
0

 

0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Perhaps someone with better regex-fu than me can come with an expression that matches exactly 6 lines.  In the meantime, this may work for you.  It puts a break between a number and a word.

LINE_BREAKER = \d+([\r\n]+)\w
---
If this reply helps you, Karma would be appreciated.

View solution in original post

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Perhaps someone with better regex-fu than me can come with an expression that matches exactly 6 lines.  In the meantime, this may work for you.  It puts a break between a number and a word.

LINE_BREAKER = \d+([\r\n]+)\w
---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Splunk Enterprise Security(ES) 7.3 is approaching the end of support. Get ready for ...

Hi friends!    At Splunk, your product success is our top priority. With Enterprise Security (ES), we're here ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk, and empower your SOC to reach new heights! Duration: 1 hour  Prepare to ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...