Splunk Search

how can i modify multivalued field?

sfatnass
Contributor

hi,
how can i change the content of multivalued field using regex.

i have a multivalued field and i try to modify the values, but nothing match with my regex.

how can i do?

thx

0 Karma

woodcock
Esteemed Legend

I always use rex. It will run against all values. For example, try this to replace all spaces with underscores in all values of field MyField.

... | rex field=MyField mode=sed "s/ /_/g"

Richfez
SplunkTrust
SplunkTrust

Hi, sfatnass,

Can you provide

  • an example of the multivalued field
  • the command you are trying to run against it
  • a description of what you are trying to do

Thanks!

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...