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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...