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

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...