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!

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!

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

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...