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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...