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
fixed file permissions
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.