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
Originally the main purpose of of this
Install on Splunk Search Head only.
No need to configure this app.
Use command as per example below. Input and output fields may have the same name.
| mimedecode <field_with_encoded_text> <field_with_decoded_text>
| 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 String||Input MIME-encoded Charset||Output String|
|=?UTF-8?Q?Alert_Google_=E2=80=93_Bank_of_England?=||UTF-8||Alert Google - Bank of England|
|=?ISO-8859-2?Q?RE=3A_Odpov=EC=EF=3A_Terasy_C1?=||ISO-8859-2||RE: Odpověď: Terasy C1|
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
There were some issues with Japanese charset. This has to be investigated more.
Main credit belongs to Brian Kirk who write initial core python code back in 2014.
I am open for any feedback at firstname.lastname@example.org.
Fixed minor cosmetic issue.
Splunk AppInspect evaluates Splunk apps against a set of Splunk-defined criteria to assess the validity and security of an app package and components.
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.