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!

CX Day is Coming!

Customer Experience (CX) Day is on October 7th!! We're so excited to bring back another day full of wonderful ...

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...