Splunk Search

convert two values same name


I have two field names from different sourcetype with the desired value that I want to put in a table with the same name how do i assign the same name to both fields?

Tags (3)
0 Karma


For different sourcetypes you can use eval name = coalesce(field1, field2)and combining different field names to single field you use the above mentioned by Takajian eval name = mvappend(field1, field2, ...)it can combine multiple fields to single.

0 Karma


eval command is useful to combine filed. Can you try following command and confirm if this work for your case?

... | eval same_name=mvappend(field1, field2)

Get Updates on the Splunk Community!

Security Highlights: September 2022 Newsletter

 September 2022 The Splunk App for Fraud Analytics (SFA) is now Splunk SupportedUse your existing Splunk ...

Platform Highlights | September 2022 Newsletter

 September 2022 What’s New in 9.0 and How to UpgradeGet a walk through of what is new Splunk Enterprise 9.0 ...

Observability Highlights | September 2022 Newsletter

 September 2022 Splunk Observability SuiteAccess to "Classic" SignalFx Interface Will be Removed on Sept 30, ...