Splunk Search

how to do a external lookup with http get

dapolly
Loves-to-Learn Lots

Hi, guys

I want use external lookup to query with the http api.

I can use curl to get the response.

 curl 'http://hq.sinajs.cn/list=sh601006'

How to get the response with search command.

Such as: 

| stats count by num | eval num='sh601006' | lookup test  list AS num output response AS res

I have tried this script,but doesn`t work.

https://community.splunk.com/t5/Splunk-Search/Example-of-doing-an-external-lookup-using-HTTP-GET-or-...

Labels (1)
0 Karma

gjanders
SplunkTrust
SplunkTrust
0 Karma

niketn
Legend

@dapolly have you checked out the following documentation: https://docs.splunk.com/Documentation/Splunk/latest/Knowledge/DefineanexternallookupinSplunkWeb#Exte...

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma
Get Updates on the Splunk Community!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...