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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...