Getting Data In

Break Large Events into Many Small Events

willial
Communicator

I've run back and forth through the props.conf documentation and done a few circuits of Answers, but I haven't found anything that actually works yet, so here we are.

I have these large multi-line events coming into splunk with source=tcp-raw. They look kind of like this:

@@@
-> section 1
*bunch of stuff here*
@@@
-> section 2
*bunch of stuff here*
@@@

and so on. The "@@@" is what I want to break the events up on, since it's an obvious delimiter. So I tried adding the following to props.conf

[source::tcp-raw]
SHOULD_LINEMERGE = false
DATETIME_CONFIG = current
LINE_BREAKER = @@@

The result was splunk either not indexing the data at all, or throwing it out somehow. Whenever I'd send a new report with that stanza in place, nothing would show up. Removed it, and the data appeared in its normal unbroken form.

What am I doing wrong?

Tags (1)
0 Karma

willial
Communicator

I've solved my own problem. The stanza now looks like:

BREAK_ONLY_BEFORE = @@@
SHOULD_LINEMERGE = true

It's now splitting properly.

0 Karma

willial
Communicator

Since I'm doing this in a test environment I'm able to throw a new batch of data at it on demand, which should then be indexed under the new rules. I'm following this process: change props.conf in /local, restart splunk server, send new data, check result, repeat.

0 Karma

linu1988
Champion

Did you re-index all the data or are you looking at the same data? It needs to be re-indexed.

0 Karma

willial
Communicator

OK, that fixed the problem of splunk throwing out the incoming data, but it's still not breaking up the events.

0 Karma

somesoni2
Revered Legend

Try "BREAK_ONLY_BEFORE = @@@" instead of "LINE_BREAKER = @@@"

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 ...