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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...