Splunk Search

transform field in sha256 before indexation

splunkLPN
Path Finder

is there a way to transform a field in sha256 before indexation? in the sourcetype ?

I can do that after using

| eval n=sha256 (getCanvasPrint)

but the field exceed 10000 and I want to reduce his size in a unique hash before to be truncated if possible.

thanks for you help.

0 Karma

cpetterborg
SplunkTrust
SplunkTrust

It isn't possible to run a function like sha256 on a value before indexing, unless you do it before it gets to the forwarder or the HEC. My suggestion would be to do this function before it gets touched by Splunk if you want to save that much licensing, or the data itself isn't that important.

Now if the data isn't needed at all you can remove it completely before indexing using a SEDCMD in your props.conf.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

A Four-Part Event Series: Full Stack Observability For the AI Era

As AI reshapes applications, infrastructure, and the way teams operate, the traditional boundaries of ...

SOC4Kafka - New Kafka Connector Powered by OpenTelemetry

The new SOC4Kafka connector, built on OpenTelemetry, enables the collection of Kafka messages and forwards ...

Event Series: Level up your SOC: Advancing with Splunk Enterprise Security

AI has fundamentally raised the stakes for security operations, and this three-part series is your guide to ...