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
Get Updates on the Splunk Community!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...