- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
wealot
Explorer
07-15-2022
07:38 AM
Hi all,
I have events coming in that have multivalue fields, but not always the same fields are multivalue. I want all the fields in the events resulting from a search to be concatenated to single value field.
Example:
Result now shows:
dest xyz
fff
Result should show:
dest xyz [delimiter] fff
Just to be sure that everyone understand using dest here is an example it should be a query that I can run that would actually change every multivalue field regardless of field name.
Cheers,
1 Solution
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ITWhisperer

SplunkTrust
07-15-2022
07:56 AM
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ITWhisperer

SplunkTrust
07-15-2022
07:56 AM
| foreach *
[| eval <<FIELD>>=mvjoin(<<FIELD>>,",")]
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
wealot
Explorer
07-18-2022
12:05 AM
Mind blown! I did not know that foreach existed in Splunk, thanks!
