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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...