Splunk Search

Combining two field into one output

kteng2024
Path Finder

Hi,

Below is the query which generates the table output.

index=abc sourcetype=report | table company_id , company_name

OUTPUT

company_id company_name

published1 microsoft
published3 google
Published4 apple

Can someone please help me on how can I get the company_id , company_name is one field. something like below:

Result
published1,microsoft
published23,google
published4,apple

0 Karma

HiroshiSatoh
Champion

Try this!

(your search)|eval company_join=company_id+company_name|table company_join
published1microsoft

(your search)|eval company_join=company_id+":"+company_name|table company_join
published1:microsoft

Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...