Splunk Search

Merge Multiple Events into a Single Event

skoelpin
SplunkTrust
SplunkTrust

In Splunk, I have a Delivery Schedule call which lists the date and gives a true or false to see if its available for delivery. Each call takes up 4 lines and there are 200 lines total for each event (50 calls per event). When using a different sourcetype, this call only has 4 lines per event and will list 50 different events. How can I merge all 50 events/calls into 1 event with a linecount=200? Would I have to modify my Props.conf file?

Example:

EVENT 1

<a:DeliveryRange i:type="a:DeliveryDate">
        <a:IsAvailableForDelivery>false</a:IsAvailableForDelivery>
        <a:Date>2015-05-03T01:00:00-04:00</a:Date>
      </a:DeliveryRange>

EVENT 2

<a:DeliveryRange i:type="a:DeliveryDate">
        <a:IsAvailableForDelivery>false</a:IsAvailableForDelivery>
        <a:Date>2015-05-04T01:00:00-04:00</a:Date>
      </a:DeliveryRange>

WHAT I WANT (Merge the events together)

<a:DeliveryRange i:type="a:DeliveryDate">
        <a:IsAvailableForDelivery>false</a:IsAvailableForDelivery>
        <a:Date>2015-05-03T01:00:00-04:00</a:Date>
      </a:DeliveryRange>
<a:DeliveryRange i:type="a:DeliveryDate">
        <a:IsAvailableForDelivery>false</a:IsAvailableForDelivery>
        <a:Date>2015-05-04T01:00:00-04:00</a:Date>
      </a:DeliveryRange>
Tags (1)
0 Karma
1 Solution

harshal_chakran
Builder

Try using this in your props.cong file:
SHOULD_LINEMERGE=true
SHOULD_BREAK_BEFORE=Q@W#E$

View solution in original post

harshal_chakran
Builder

Try using this in your props.cong file:
SHOULD_LINEMERGE=true
SHOULD_BREAK_BEFORE=Q@W#E$

Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...