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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...