Splunk Search

Multi Value Field with Auto Extracted Field

msettipane
Splunk Employee
Splunk Employee

Can Splunk be configured to create a multi value field with auto extracted "name=value" fields.

11/2/11 08:03:00 field-one=who, field-one=what, field-one=where, field-one=why, field-one=when

field_one = who,what,where,why,when

sdwilkerson
Contributor

Matty,

I just stumbled onto this and had the same issue last week. I saw a solution posted by Nick here: http://splunk-base.splunk.com/answers/10708/how-do-i-combine-mv-fields-into-a-new-field?page=1&focus...

I took that solution and wrapped it into a macro so I could call it at will from the CLI like this:

eventtype=data | `combine_two_fields(field1,field2,final_field)`

This worked splendidly and is definitely "a keeper."

0 Karma

Ayn
Legend

Without having tested it myself, perhaps mvcombine can do the trick?

0 Karma

msettipane
Splunk Employee
Splunk Employee

Nope. Tried all of the mvs. Everything will work if you use a rex with max_match; however, cannot get it working with auto extracted fields.

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.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 ...