Splunk Search

How to combine two field values into one field from a .csv file?

cdson
Explorer

Hello! 

I have a csv file where there are two fields called "Customers First Name" and "Customers Last Name".  I was wondering if there is a way to combine the values of each field in the same row into one new field.

 

Thank you! 🙂 

 

Labels (1)
Tags (2)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

There are a few ways to do that.  The simplest is the concatenation operator '.'.

| eval CustomerName = 'Customers First Name' . 'Customers Last Name'
---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

There are a few ways to do that.  The simplest is the concatenation operator '.'.

| eval CustomerName = 'Customers First Name' . 'Customers Last Name'
---
If this reply helps you, Karma would be appreciated.

cdson
Explorer

Thank you very much! Have a good day!

0 Karma
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 ...