Splunk Search

Index time extraction

bhavneeshvohra9
New Member

Hi all,
I have 10 events containing events from events 1,event2,event 3,....event 10.
I need to cobine events2,3,4 and events 7,8 into one event each i.e one event for 2,3,4 and one event for 7,8.
Rest all i dont need to index(send to null queque)
How can we do this on index time.

Please help

Tags (1)
0 Karma

woodcock
Esteemed Legend

Like this:

SHOULD_LINEMERGE = false
LINE_BREAKER = ((?:^event1RegExHere[\r\n]+)|(?:event5RegExHere[\r\n]+event6RegExHere[\r\n]+)|(?:event9RegExHere[\r\n]+event10RegExHere[\r\n]*$))
0 Karma

to4kawa
Ultra Champion

porps.conf

should_linemerge = false
line_breaker = ([\r\n]+)event5
transforms-null = null

transforms.conf

[null]
REGEX = [event1|event5|event6|event9|event10]
DEST_KEY = queue
FORMAT = nullQueue
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Introducing Splunk 10.0: Smarter, Faster, and More Powerful Than Ever

Now On Demand Whether you're managing complex deployments or looking to future-proof your data ...

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...