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!

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...

Auto-Injector for Everything Else: Making OpenTelemetry Truly Universal

You might have seen Splunk’s recent announcement about donating the OpenTelemetry Injector to the ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...