All Apps and Add-ons

Using the REST API Modular Input to get weather data

sc0tt
Builder

I would like to get weather info from the OpenWeatherMaps api

http://api.openweathermap.org/data/2.5/forecast?q=NY,US&units=metric

I don't need the data indexed, I just want it available when I use it in a search.
Is using the REST API Modular the best way to accomplish this?

If so, can I pass in variables for the city and country? For example,

http://api.openweathermap.org/data/2.5/forecast?q=$city,$country&units=metric

Thanks.

Tags (1)
1 Solution

Damien_Dallimor
Ultra Champion

Modular Inputs index data.

If you don't want to index data then you will need to create your own custom generating search command or an external scripted lookup.

View solution in original post

Damien_Dallimor
Ultra Champion

Modular Inputs index data.

If you don't want to index data then you will need to create your own custom generating search command or an external scripted lookup.

sc0tt
Builder

Thanks for the info. I'll look into those options.

0 Karma

anilchaithu
Builder

Any luck in the implementation?

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 ...