icon/x Created with Sketch.

Splunk Cookie Policy

We use our own and third-party cookies to provide you with a great online experience. We also use these cookies to improve our products and services, support our marketing campaigns, and advertise to you on our website and other websites. Some cookies may continue to collect information after you have left our website. Learn more (including how to update your settings) here.
Accept Cookie Policy

Accept License Agreements

This app is provided by a third party and your right to use the app is in accordance with the license provided by that third-party licensor. Splunk is not responsible for any third-party apps and does not provide any warranty or support. If you have any questions, complaints or claims with respect to this app, please contact the licensor directly.

Thank You

Downloading MIME Decoder Add-on
SHA256 checksum (mime-decoder-add-on_101.tgz) c74a62428ec50763aa9917ca12ff0c8d308f1cb4228ae878c5e1ad84ed1f357c
To install your download
For instructions specific to your download, click the Details tab after closing this window.

Flag As Inappropriate

MIME Decoder Add-on

Splunk AppInspect Passed
Admins: Please read about Splunk Enterprise 8.0 and the Python 2.7 end-of-life changes and impact on apps and upgradeshere.
Overview
Details
Splunk MIME Decoder add-on allows for decoding MIME-encoded (URL-encoded) strings. It was developped to decode field values containing ciphered email subjects as a byproduct of pass-through Cisco ESA email proxy. Add-on provides a custom search command to do this. The main advantage of this command is that it is able to decode any MIME-encoded string in any charset, not just in UTF-8 which is a limitation of standard SPL eval function `urldecode`.

Splunk MIME Decoder add-on allows for decoding MIME-encoded (URL-encoded) strings. It was developped to decode field values containing ciphered email subjects as a byproduct of pass-through Cisco ESA email proxy. Add-on provides a custom search command to do this. The main advantage of this command is that it is able to decode any MIME-encoded string in any charset, not just in UTF-8 which is a limitation of standard SPL eval function urldecode.

Originally the main purpose of of this

System Requirements

None

Installation

Install on Splunk Search Head only.

Configuration

No need to configure this app.

Usage

Use command as per example below. Input and output fields may have the same name.

Syntax:

| mimedecode <field_with_encoded_text> <field_with_decoded_text>

Example:

| makeresults count=1
| eval field1_in="=?UTF-8?Q?Alert_Google_=E2=80=93_Bank_of_England?="
| eval field2_in="=?ISO-8859-2?Q?RE=3A_Odpov=EC=EF=3A_Terasy_C1?="
| mimedecode field1_in field1_out
| mimedecode field2_in field2_out

Input StringInput MIME-encoded CharsetOutput String
=?UTF-8?Q?Alert_Google_=E2=80=93_Bank_of_England?=UTF-8Alert Google - Bank of England
=?ISO-8859-2?Q?RE=3A_Odpov=EC=EF=3A_Terasy_C1?=ISO-8859-2RE: Odpověď: Terasy C1

Testing:

Add-on was successfully tested with these charsets: UTF-8, Windows-1250, ISO-8859-2. However, it should work for many others charsets just as well.

This add-on relies on Python and its email standard library (an email and MIME handling package). You can check details at https://docs.python.org/3/library/email.header.html.

Bugs

There were some issues with Japanese charset. This has to be investigated more.

Credits

Brian Kirk

Main credit belongs to Brian Kirk who write initial core python code back in 2014.

Feedback

I am open for any feedback at tomas.moser@alef.com.

Release Notes

Version 1.0.1
July 15, 2020

Fixed minor cosmetic issue.

5
Installs
15
Downloads
Share Subscribe LOGIN TO DOWNLOAD

Subscribe Share

AppInspect Tooling

Splunk AppInspect evaluates Splunk apps against a set of Splunk-defined criteria to assess the validity and security of an app package and components.

Are you a developer?

As a Splunkbase app developer, you will have access to all Splunk development resources and receive a 10GB license to build an app that will help solve use cases for customers all over the world. Splunkbase has 1000+ apps and add-ons from Splunk, our partners and our community. Find an app or add-on for most any data source and user need, or simply create your own with help from our developer portal.

Follow Us:
© 2005-2020 Splunk Inc. All rights reserved.
Splunk®, Splunk>®, Listen to Your Data®, The Engine for Machine Data®, Hunk®, Splunk Cloud™, Splunk Light™, SPL™ and Splunk MINT™ are trademarks and registered trademarks of Splunk Inc. in the United States and other countries. All other brand names, product names, or trademarks belong to their respective owners.