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!

Prove Your Splunk Prowess at .conf25—No Prereqs Required!

Your Next Big Security Credential: No Prerequisites Needed We know you’ve got the skills, and now, earning the ...

Splunk Observability Cloud's AI Assistant in Action Series: Observability as Code

This is the sixth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...

Splunk Answers Content Calendar, July Edition I

Hello Community! Welcome to another month of Community Content Calendar series! For the month of July, we will ...