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!

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...

Fun with Regular Expression - multiples of nine

Fun with Regular Expression - multiples of nineThis challenge was first posted on Slack #regex channel ...