Getting Data In

How do I remove field data before indexing?

SathyaNarayanan
Path Finder

Hi Team,

I need to remove a field data before the data gets indexed to Splunk.

The field that needs to be removed is in between the log and it has several lines.

sample data:

dv_u_business_duration_in_seconds="",closed_by="",sys_created_by="",sys_domain_path="/",dv_business_duration="",dv_work_notes="2018-08-05 09:46:09 - *******



active="true",dv_made_sla="true",additional_assignee_list="",delivery_task=""

field name in work_Notes

Note: I tried the null

In Props.conf

[sourcetype:test_task]
TRANSFORMS-null= tasknull

transforms.conf

[tasknull]
FIELDS = work_Notes
DEST_KEY = queue
FORMAT = nullQueue

Thanks in advance.

0 Karma

mstjohn_splunk
Splunk Employee
Splunk Employee

hi @SathyaNarayanan

Did the answer below solve your problem? If so, please resolve this post by approving it!
If your problem is still not solved, keep us updated so that someone else can help ya. Thanks for posting!

0 Karma

ddrillic
Ultra Champion

These name value pairs are extracted at search time, not index time.

Btw, props.conf might have been -

[<sourcetype name>]
TRANSFORMS = tasknull

Suppressing the name value pairs extraction at search time can be done via the explanations at Disable Automatic Field Extraction or How to avoid extracting fields from quoted values?

Unfortunately, it requires disabling the extractions by KV_MODE=none in props.conf in the search heads and creating your own extractions.

0 Karma

493669
Super Champion

You can replace the other portion of the events with blank during index time, so only the necessary information gets logged.
http://docs.splunk.com/Documentation/Splunk/6.2.4/Data/Anonymizedatausingconfigurationfiles#Anonymiz...

0 Karma
Get Updates on the Splunk Community!

Index This | What goes away as soon as you talk about it?

May 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this month’s ...

What's New in Splunk Observability Cloud and Splunk AppDynamics - May 2025

This month, we’re delivering several new innovations in Splunk Observability Cloud and Splunk AppDynamics ...

Getting Started with Splunk Artificial Intelligence, Insights for Nonprofits, and ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...