cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2080
Views
0
Helpful
1
Replies

Search Logs for Specific Attachment

Mike Kwilosz
Beginner
Beginner

I'm in need of searching my mail logs to find when and what email was sent in that contained a specific file.  I tried doing a grep on the mail logs with the regular expression being just the name of the file with no luck.  Is it possible to do a search like this?  If so could someone provide me with an example of the regular expression criteria to do so?  I just wanted to be able to scan the mail logs for specific file names.

Thanks,

Mike

1 Reply 1

RYAN KIM
Beginner
Beginner

Mike,

I don't believe this is available without some minor customization.  You'll want to create a message or content filter that adds an x-header with the filename, example:

Add_Attachment-Header: if (attachment-filename == "^.+$") { insert-header("x-attachment-name", "$filenames"); }

this will search for the attachment filename(s), and then add it as an x-header. 

After you've done that, you'll need to setup logging to add the x-header to the log:

logconfig -> logheaders (add the x-attachment-name header so that it'll start to log).

Hope this helps,

Ryan

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Recognize Your Peers