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!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...