Splunk Search

Use Kafka Streams to perform Splunk Transaction

zineddine
New Member

Hello,

My client uses an email solution that produces a log for each step in email processing, hence, we have a variable number of logs for each email sent or received.

In order to work with the received data and build queries around it, we use the transaction command of Splunk to aggregate logs by email ID.

The problem is that this is extremely heavy computational task and searches on long timeranges cannot be executed.

I'm thinking of using Kafka Streams to aggregate the logs by email ID before sending them to Splunk, I started by coding and understanding the Java code offered by Apache and I have some difficulties:

  1. First, is this feasible? Has anybody here successfully achieved that?
  2. How can I assign the extracted email ID from the log as key in a KTable?
  3. How can I manage 'windowing' the time to wait for logs with same email ID?

I find the Apache examples a bit short and I'm having hard time figuring out where to start to learn and build my own Java Kafla Stream app, if anyone can help me with this, it would be highly appreciated.

Thank you very much for your time.

Best regards.
Zineddine.

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!

Agentic SOC Triage: Investigating Splunk ES Notables with MCP Server and a Local LLM

The Problem: Too Many Alerts, Too Little Context Security operations teams running Splunk Enterprise Security ...

All Work and No Play? Not at .conf26! Unwind at These Evening Events

Between hands-on technical sessions, keynote reveals, and diving into live architectures, .conf26 is packed ...

Join the Hackathon at .conf26 and build a No-Code AI agent

Join us for the AI Agent Buildathon, an in-person, three-hour hands-on Hackathon where you’ll use Splunk Agent ...