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!

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...