Getting Data In

How to remove index-time field extractions from an index, but still keep the _raw data?

splunk_zen
Builder

We need to remove a list of index-time extracted fields while keeping the _raw data, is this possible?

The reason this came to be was we were previously using the search-time json extraction

KV_MODE=JSON

until we went for the 6.2 recommended approach,
index-time field extraction

INDEXED_EXTRACTIONS=json

obviously as soon as we set KV_MODE=none at the search head for this sourcetype (to get rid of the duplicated fields)
this only started adding the metadata for the new events coming in since that change,
guaranteeing we lost search capability over those fields (keeping spath out of the discussion) in the historical data until then.

We have to revert to the previous behaviour (search time extraction) as that historical data didn't have those fields at the time.

Help is welcome.

0 Karma

briang67
Communicator

Once data is indexed you cannot surgically remove fields. You would need to dump the data and then re-index with the correct extraction.

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!

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...