Splunk Search

REST command is not including all columns from CSV

Mary666
Communicator

Hello Splunk Community 

I have managed to use REST to add some columns from my CSV files. However, not all the columns are uploaded. I am using the below script: 

| rest /servicesNS/-/-/data/lookup-table-files search="*_Weather.Lookups.csv"

But the issue is that I am not getting all the fields associated with *_Weather.Lookups.csv anybody out there  know how I can het all the fields or a specific field from the lookup ? Thanks in advance. 

Labels (2)
Tags (1)
0 Karma
1 Solution

Mary666
Communicator

I was able to figure it out, so basically:

| rest /servicesNS/-/-/data/lookup-table-files search="*_Weather_Report.csv"| inputlookup  append=t New_Jersey_Weather_Report.csv 


I just needed to add the append=t to have the lookup show me everything in it while still having the rest command. 

View solution in original post

0 Karma

Mary666
Communicator

I was able to figure it out, so basically:

| rest /servicesNS/-/-/data/lookup-table-files search="*_Weather_Report.csv"| inputlookup  append=t New_Jersey_Weather_Report.csv 


I just needed to add the append=t to have the lookup show me everything in it while still having the rest command. 

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Free Professional Services for .conf26 Attendees

This year at .conf26, we are doing something a little different. We are bringing the best minds from ...

Defend at Machine Speed: Your Guide to Security Sessions at .conf26

Splunk .conf26   With threats moving at machine speed and attack surfaces expanding across hybrid ...

Where Innovation Takes Flight: The Splunk4Aviation Flight Sim Lands at .conf26

If you hear someone at .conf26 shouting "gear down, GEAR DOWN" across the show floor, you have found us.  The ...