Splunk Search

Specific Alert

geantver0000
Engager

Hi,

I would like to Know if it is possible !
I want to send an email on the adress mail content on my log .

For example:

Index=mail
Result :
log1 : "message information category status Ip data [email protected]"
log2 : "message information category status Ip data [email protected]"
log3 : "message information category status Ip data [email protected]"

Is that possible for the Log1 to send the content of Log1 and send this to the address email on the log ?
For example, to send "message information category status Ip data [email protected]" to the email on this log : [email protected] ?

Same for the Log2, it contains information about the [email protected] and i want to send a mail with the information to [email protected] ect

Thanks in advance
Steve

Tags (1)
0 Karma

vinod94
Contributor

You can try this,

| makeresults | eval data="log1:message information category status Ip data [email protected],
log2:message information category status Ip data [email protected],
log3:message information category status Ip data [email protected]" | makemv delim="," data | mvexpand data | eval abc=case(like(data, "log1%"),  "[email protected]", like(data, "%log2%"),  "[email protected]", like(data, "%log3%"),  "[email protected]") |  eval content=case(like(data, "%log1%"),  data, like(data, "%log2%"),  data, like(data, "%log3%"),  data)  |sendemail to=abc message=content
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 ...