Splunk Search

Combining events into one

echalex
Builder

We're experiencing a problem with having indexed data with the default MAX_EVENTS value of 256. While this can be fixed in the configuration for new events, is there any way of combining e.g. a java stack trace of say 2000+ lines, which has been split up into tens of events, when searching?

Since we have already indexed a whole lot of logs, I'd hate to re-index it all again.

Tags (2)
1 Solution

hazekamp
Builder

echalex,

Unfortunately, If you have indexed data based on non-optimal or incorrect line breaking, there is not much that can be done via search to reliably reconstruct your data. You may be able to use the "transaction" command to create a single event as long as each event matches the criteria you are using to build the transaction.

For instance if you wanted to create a single event from multiple events from the same source, same time, and had some type of additional identifier like java_id:

| transaction _time,source,java_id 

View solution in original post

hazekamp
Builder

echalex,

Unfortunately, If you have indexed data based on non-optimal or incorrect line breaking, there is not much that can be done via search to reliably reconstruct your data. You may be able to use the "transaction" command to create a single event as long as each event matches the criteria you are using to build the transaction.

For instance if you wanted to create a single event from multiple events from the same source, same time, and had some type of additional identifier like java_id:

| transaction _time,source,java_id 

echalex
Builder

I noticed I hadn't thanked you for the informative answer.
So thank you. 🙂 (Better late than never, eh?)

0 Karma

merugu448
Engager

Thank you!!

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

SOK it to Me: Top 3 Benefits of Using Splunk Operator on Kubernetes that’ll Make ...

    Thursday, July 9, 2026  |  11:00AM–12:00PM PDT Duration: 1 hour (includes Q&A) Managing can feel like a ...

Upgrade Prep for 10.4, Network Observability Deep Dives, and More from Splunk Lantern

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...

Splunk Developer Day announcements: AI agents, MCP tools, Forecasting, and Custom ...

Splunk Developer Day was packed with product and platform updates for developers building in the AI ...