- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

dominiquevocat

SplunkTrust
08-04-2011
02:15 AM
We have many legacy scripts that send status messages by email. We strongly prefer not to modify the scripts and instead look for a way to index the emails.
I had the idea of sending the mails also to a mailbox on a unix server, idealy the machine running a splunk indexer and have the indexer index also the unix-style mailbox file so we can search all the messages.
Is this a) possible, b) sensible and how would i do it? (I guess index the path but yeah).
Thanks
1 Solution
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

fk319
Builder
08-05-2011
12:17 PM
Interesting, it can be done, but there is a bit of work.
First, you will need to Splunk to use the mailbox as a source of logs (input.config). Then you will heve to teach Splunk to parse an mbox file so that each message is a single record (props.config and transform.config), LINEBREAKER I think it is called may be of value.
Is it sensable, that is up to you, it realy is not that hard, just getting splunk to understand mbox format, which is well defiend.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

fk319
Builder
08-05-2011
12:17 PM
Interesting, it can be done, but there is a bit of work.
First, you will need to Splunk to use the mailbox as a source of logs (input.config). Then you will heve to teach Splunk to parse an mbox file so that each message is a single record (props.config and transform.config), LINEBREAKER I think it is called may be of value.
Is it sensable, that is up to you, it realy is not that hard, just getting splunk to understand mbox format, which is well defiend.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

dominiquevocat

SplunkTrust
08-24-2011
02:33 AM
will give it a try. i mark it as solved, thanks.
