Reporting

Can Splunk be used to sort through emails?

marykyeung
Engager

Can emails be sent directly to a Splunk server so it can go through and alert on emails of interest?

Tags (1)

jpass
Contributor

If what you are after is a general idea of whether you can index and search larger blocks of text like e-mails, then yes. I have a few hundred thousand emails indexed. But I do it a little differently. I store the data in a database and use a scripted input to format the content in a way that makes it easy to create fields in transforms.conf

edit: I would add, like the commenter above, it's probably not the best tool for this kind of job though.

0 Karma

jtrucks
Splunk Employee
Splunk Employee

There are people who have indexed maildir directory trees or individual files using Splunk. Because there are datestamps in the file, it's not too bad at figuring out the timestamp. However, you might have to futz with the header fields to make subject et al. searchable.

Search Splunk-Base for "maildir" to find more examples.

--
Jesse Trucks
Minister of Magic
0 Karma

okrabbe_splunk
Splunk Employee
Splunk Employee

You can't send it directly to splunk but I guess you could send it to an account on a server and index the mbox file on the server.

However, I am not sure this is the best technology fit. Usually people use Splunk to monitor everything at the mail server rather than sending messages directly to it to index.

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!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...