Hi splunkers,
I need to decode base64 fields before indexing them.
I found a very old post with no good proposal for this need : Solved: Re: Anybody have an idea for base64 decoding of fi... - Splunk Community
Does anybody has set base64 decode , maybe with ingest actions ?
Thank you.
Hi @_olivier_
Im not aware of a way to do this using Ingest Action (or INGEST_EVAL) specifically, but you could explore the unarchive_cmd in props.conf (https://help.splunk.com/en/splunk-enterprise/administer/admin-manual/10.0/configuration-file-referen...) which is intended to pass the data into a script/file as its ingested and can be used to unarchive tarballs (for example) but you could use a simple python script to take the input and base64 decode it, returning the decoded data to stdout for ingestion.
Is it the entire event that is base64?
You might also want to check out https://community.splunk.com/t5/Getting-Data-In/What-s-the-trick-to-get-unarchive-cmd-to-work-for-a-...
🌟 Did this answer help you? If so, please consider:
Your feedback encourages the volunteers in this community to continue contributing