Splunk Search

convert two values same name

hartfoml
Motivator

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

kamaleshwarn
Explorer

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

Takajian
Builder

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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...