Dashboards & Visualizations

How to retrieve strings divided by commas in a csv file?

KalebeRS
Explorer

Hello,

I'm kinda blocked on how to retrieve data from a csv file. Need to get each value from a line to be shown in a dropdown filter. But don't know how Exactly to retrieve the strings.

For example:

KalebeRS_0-1686570024196.png

Each line has a different set of tags that I have to show in the filter.
How can I retrieve each of these values individually to show in the filter?

Labels (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| inputlookup lookup.csv
| eval PR_Tags=split(PR_Tags,",")
| mvexpand PR_Tags
| table PR_Tags
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 ...