Splunk Search

Is it possible to assign a entire lookup to a single field

Vignesh-107
Path Finder

I have a lookup i want to assign it to a single field 

Example:

This is my lookup table with values

Messge 00100
Messge 11311
Messge 211000
Messge 31000
Messge 49500
Messge 51100
Messge 61100
Messge 70100

 

 

i want to get entire value of lookup to a single field

eval myfield="Messge 0 0 1 0 0
Messge 1 1 3 1 1
Messge 2 11 0 0 0
Messge 3 1 0 0 0
Messge 4 9 5 0 0
Messge 5 1 1 0 0
Messge 6 1 1 0 0
Messge 7 0 1 0 0""

Labels (1)
0 Karma

Vardhan
Contributor

Hi,

I am not sure how this will help you. But you can try with the below syntax which will assign all of your lookup values to a single field.

eval newfield = fieldname1 + fieldname2 + fieldname3 + fieldname4 + fieldname5

0 Karma

richgalloway
SplunkTrust
SplunkTrust

What problem are you trying to solve by doing that?

---
If this reply helps you, Karma would be appreciated.
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...