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.

Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...