icon/x Created with Sketch.

Splunk Cookie Policy

We use our own and third-party cookies to provide you with a great online experience. We also use these cookies to improve our products and services, support our marketing campaigns, and advertise to you on our website and other websites. Some cookies may continue to collect information after you have left our website. Learn more (including how to update your settings) here.
Accept Cookie Policy

We are working on something new...

A Fresh New Splunkbase
We are designing a New Splunkbase to improve search and discoverability of apps. Check out our new and improved features like Categories and Collections. New Splunkbase is currently in preview mode, as it is under active development. We welcome you to navigate New Splunkbase and give us feedback.

Accept License Agreements

This app is provided by a third party and your right to use the app is in accordance with the license provided by that third-party licensor. Splunk is not responsible for any third-party apps and does not provide any warranty or support. If you have any questions, complaints or claims with respect to this app, please contact the licensor directly.

Thank You

Downloading App for REST Lookup
SHA256 checksum (app-for-rest-lookup_101.tgz) 111163b2eab5e6db5aee84ae735f1b076a14805e2e78eb9dec0a113978039270 SHA256 checksum (app-for-rest-lookup_100.tgz) 0b154e0b8933a8063f6af798161d48dfceb45477a8ebca6379d86b860d7d9c6c
To install your download
For instructions specific to your download, click the Details tab after closing this window.

Flag As Inappropriate

splunk

App for REST Lookup

This app is NOT supported by Splunk. Please read about what that means for you here.
Overview
Details
This app provides a safe way to make custom REST lookup calls.

This app contains the search command "dbdata", which polls data from secure REST API. Please use app setup screen to store encrypted credential before using them
© 2018 Manish Sharma

Contact: sharmama@dnb.com
Source: NA

Syntax

| dbdata <url> <method>? <paramMap>? <output>? <timeout>? <headers>? <realm>? <useAppCre>? <data>? <ref>?

Option TYPE: pattern

url string: https://my_rest_api/endpoint

method string: get || post (default: get)

paramMap string: param1=val1, param2=val2

output string: json || text (default: json)

timeout int: 0..∞

headers json: {'option1': 'val1', 'option2': 'val2'}

realm string: realm1

ref string: callref

useAppCre boolean: True || False (default: True)

data string: data

Examples

| dbdata url="https://reqres.in/api/users"
-- Returns the data from the endpoint as json

| dbdata url="https://api.github.com/user" realm="realm1" output=text
-- Basic login at the Github API with reponse as plain text

| dbdata url="https://influx:3000/api/datasources/proxy/1/query" paramMap="db=statsdemo, q=show tag keys" headers="{'Authorization': 'Bearer <token>'}"
-- Access rest link with token

Release Notes

Version 1.0.1
Oct. 17, 2018

fixed file permissions

Version 1.0.0
Oct. 15, 2018

Subscribe Share

Are you a developer?

As a Splunkbase app developer, you will have access to all Splunk development resources and receive a 10GB license to build an app that will help solve use cases for customers all over the world. Splunkbase has 1000+ apps from Splunk, our partners and our community. Find an app for most any data source and user need, or simply create your own with help from our developer portal.

Follow Us:
Splunk, Splunk>,Turn Data Into Doing, Data-to-Everything, and D2E are trademarks or registered trademarks of Splunk Inc. in the United States and other countries. All other brand names,product names,or trademarks belong to their respective owners.