Splunk Search

Lookup question

Ip_Man5
Explorer

Hi,
I would like to know how to create a lookup for translating or replacing a field result into results from a csv file.

Transform

[category-lookup]

filename = category.csv

props

[business-category]

LOOKUP-lookup_category = category-lookup category OUTPUT category-test

Thanks,

Tags (1)
0 Karma
1 Solution

Ip_Man5
Explorer

It works thanks for the help

View solution in original post

0 Karma

Ip_Man5
Explorer

It works thanks for the help

0 Karma

Ip_Man5
Explorer

Thanks, I will try it out and let you know if it works

0 Karma

Ayn
Legend

Which field? category-test? (You should probably use _ instead of - there, if you're not seeing a field it might be because of that issue)

0 Karma

Ip_Man5
Explorer

The field result still come back as numeric, instead of whast listed in the csv file.

0 Karma

Ayn
Legend

Well that looks OK syntax-wise. What's the problem?

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...