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

We are working on something new...

A Fresh New Splunkbase
We are designing a New Splunkbase to improve search and discoverability of apps. Check out our new and improved features like Categories and Collections. New Splunkbase is currently in preview mode, as it is under active development. We welcome you to navigate New Splunkbase and give us feedback.

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 for Cisco ESA
SHA256 checksum (mime-decoder-add-on-for-cisco-esa_108.tgz) aa9c6037647d2c75b6dc76defa524086652fac283829068c985656b12e3e8f36 SHA256 checksum (mime-decoder-add-on-for-cisco-esa_107.tgz) 75739ea7baa3e423484c7e7466691c4303e3ea31a2d3b8a8fcd7ada4e91eb08e SHA256 checksum (mime-decoder-add-on-for-cisco-esa_106.tgz) 899b7f34e28da337fac0bc692e10b2d23499e7fadbb6c8194737cbd469d66348 SHA256 checksum (mime-decoder-add-on-for-cisco-esa_104.tgz) 5361695b48e3d3384002fff51084b44e0e7fcfa0d8ce26eae62e730b019f6f0a SHA256 checksum (mime-decoder-add-on-for-cisco-esa_103.tgz) b6d43c81145225317a4a278bbfe37564981cffae3dac39a3aedad339659aed04 SHA256 checksum (mime-decoder-add-on-for-cisco-esa_102.tgz) ce3e4f991a65a82f6441c1102219fe94187a75a27f0cc8c06682237cd5d30160
To install your download
For instructions specific to your download, click the Details tab after closing this window.

Flag As Inappropriate

splunk

MIME Decoder Add-on for Cisco ESA

Overview
Details
### Let me know any feedback ###

Splunk MIME Decoder add-on allows for decoding MIME-encoded (URL-encoded) strings. It was developed to decode field values containing ciphered email subjects as a by-product of an email going 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 developed to decode field values containing ciphered email subjects as a by-product of an email going 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.

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 other 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 tomik.moser@gmail.com.

Release Notes

Version 1.0.8
June 2, 2024

Regenerated in Splunk Add-on Builder 4.2 to comply with the most recent Splunk Cloud AppInspect vetting checks.

Version 1.0.7
Oct. 5, 2023

Regenerated in Splunk Add-on Builder 4.1.3 to comply with the most recent Splunk Cloud AppInspect vetting checks.

Version 1.0.6
Oct. 16, 2022
  • fixed an issue: decoding function was failing on strings beginning with "space" after '?Q?' sequence
  • upgrade: upgraded Splunk Python SDK to version 1.7.2
Version 1.0.4
May 21, 2021

Bug fix: Upgraded Splunk python SDK to version 1.6.15 to fix a bug SPL-194426.

Version 1.0.3
March 10, 2021

Fixed bug: Command failed in Splunk 8.1.x with error "apps/Alef_TA_MIMEDecoder/bin/MIMEdecode.py", line 43 : module 'email' has no attribute 'Errors'"

Version 1.0.2
Sept. 4, 2020

Bug fix: SPL command failed when an event didn't contain a field being decoded.


Subscribe Share

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 from Splunk, our partners and our community. Find an app for most any data source and user need, or simply create your own with help from our developer portal.

Follow Us:
Splunk, Splunk>,Turn Data Into Doing, Data-to-Everything, and D2E are trademarks or registered trademarks of Splunk LLC in the United States and other countries. All other brand names,product names,or trademarks belong to their respective owners.