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!

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...