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
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...