Take a look at this post:
https://answers.splunk.com/answers/49394/merge-two-fields-into-one-field.html
Take a look at this post:
https://answers.splunk.com/answers/49394/merge-two-fields-into-one-field.html
You want to merge values (concatenate values) OR each event will have single field but different name but you want to create a common name field?
I am looking to join all the names together and have them report as one name.
right now I have
name_zz_1
name_zz_2
name_zz_3
I would like to have those combined to just report as name_zz
So basically, right now you've to do like this to see all values?
...some search | table ..some fields.. name_zz_1 name_zz_2 name_zz_3
and you want to do like
...some search | table ..some fields.. name_zz
Where name_zz
will contain values of all 3 (or any number of fields) name_zz_N
fields?
It's generally easier for us if you can post some sample values and corresponding expected output.
If its the first case (multiple fields to be combined into one), try this
...some search.. | eval name_zz="" | foreach name_zz_* [| eval name_zz=coalesce('<<FIELD>>'.",","").name_zz] | fields - name_zz_*