- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
bcarr12
Path Finder
07-05-2017
11:42 AM
Hi all,
I am working with a log that can sometimes have the same field in one log entry more than one time, but with multiple values.
Examples:
Ex 1:
100=A
Ex 2:
100=A 100=B 100=C
Ex 3:
100=D
Ex 4:
100=A 100=D
As I've seen discussed before, Splunk only seems to pull the first value out whenever the field is repeated. What would be the best way to tell Splunk at searchtime that I want to pull all "100" values from the log and not just the first one?
1 Solution
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

DalJeanis
Legend
07-05-2017
11:48 AM
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

cpetterborg

SplunkTrust
07-05-2017
11:51 AM
If you just want to get the values in the same field as a multivalve field, then this type search should work:
| makeresults | eval _raw="100=A 100=B 100=C" | rex field=_raw max_match=10 "100=(?P<field100>\w+)"
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
bcarr12
Path Finder
07-05-2017
11:53 AM
Thanks for the suggestion!
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

DalJeanis
Legend
07-05-2017
11:48 AM
Try this -
| rex field=_raw "100=(?<my100>\w+)" max_match=0
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
bcarr12
Path Finder
07-05-2017
11:53 AM
Thanks, this worked perfectly!
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
xlash911
Explorer
12-19-2019
10:44 AM
Saved my life, thanks!
