Getting Data In

Remove or replace multivalue field before to index

DanielSp
Explorer

Hello,

I have a .json that contains any multivalue fields.

I would like to avoid that any multivalue field be indexed, because It contais a lot of data that I want to avoid index.

Is there any way to do It?

I have try other options like replace all multivalue text by a character, with the follow command ( | rex field="changelog.histories{}.history" mode=sed "s/(^.+)/x/g" )in a search, and I am able to change:
asderdas
asd34sdas
asdaserwerw
by 
x
x
x

although I have tried with SEDCMD-xyz = s/"changelog.histories{}.history"=^.+/x/g in "Add data"-"Set sourcetype" window- Advanced and I don't achieve It.
I would like to avoid index "changelog.histories{}.history" or change:
asderdas
asd34sdas
asdaserwerw
by
x
(changing all multivalue values for only a character(x for example)

Is It possible?

Thanks a lot and regards

Daniel

Labels (4)
0 Karma

scelikok
SplunkTrust
SplunkTrust

Hi @DanielSp,

Props.conf SEDCMD command works on _raw data. That is why your regex must be able to capture patterns from raw data. 

 

If this reply helps you an upvote is appreciated.

If this reply helps you an upvote and "Accept as Solution" is appreciated.
0 Karma
Get Updates on the Splunk Community!

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...

Real-Time Fraud Detection: How Splunk Dashboards Protect Financial Institutions

Financial fraud isn't slowing down. If anything, it's getting more sophisticated. Account takeovers, credit ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...