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!

Best Practices: Splunk auto adjust pipeline queue

When you enable autoAdjustQueue in Splunk, maxSize should be understood as the queue size Splunk starts with ...

Laser Bananas and Edge Hubs: Exploring Operational Technology (OT) Data Through a ...

  OT is a different environment to traditional IT and can have interesting challenges when interfacing the ...

Event Series: Mastering AI Tokenomics and Splunk Agent Observability

Beyond the Black Box: Correlating AI Performance and Tokenomics with Splunk Agent Observability   As ...