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

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 Curl Command
SHA256 checksum (curl-command_101.tgz) b8c5972e09935c3e5d41927f7819f142114401d9a4843a19e94f4655a2f78227 SHA256 checksum (curl-command_100.tgz) f16dac1eacb1e827e7af302b7c0da18ca4e21bb0b363dffd722c33e0f46674d3
To install your download
For instructions specific to your download, click the Details tab after closing this window.

Flag As Inappropriate

Curl Command

Splunk AppInspect Passed
Admins: Please read about Splunk Enterprise 8.0 and the Python 2.7 end-of-life changes and impact on apps and upgradeshere.
This app contains the search command "curl", which polls data from a REST API.

Splunk | curl command

This app contains the search command "curl", which polls data from a REST API. The syntax is as follows, with the question mark indicating the optional Options.

| curl url paramMap? output? timeout? auth? headers? proxies? unsetProxy?

Options in detail

Option Type Value
url string http://my_rest_api/endpoint
paramMap string param1=val1, param2=val2
output string json OR text (default: json)
timeout int 0..∞
auth string Basic, User, Password
headers json {'option1': 'val1', 'option2': 'val2'}
proxies string http_proxy, https_proxy
unsetProxy bool true OR false (default: false)


Returns the data from the endpoint as json

| curl url="https://reqres.in/api/users"

Basic login at the Github API with reponse as plain text

| curl url="https://api.github.com/user" auth="basic, user, password" output=text

Access InfluxDB with token

| curl url="http://influx:3000/api/datasources/proxy/1/query" paramMap="db=statsdemo, q=show tag keys" headers="{'Authorization': 'Bearer token'}"

Source: https://github.com/bmacher/splunk-curl-command
Copyright © 2018 Benjamin Macher

Release Notes

Version 1.0.1
Nov. 14, 2018

Version 1.0.0
Sept. 11, 2018

Curl command with basic functionality.


Subscribe Share

AppInspect Tooling

Splunk AppInspect evaluates Splunk apps against a set of Splunk-defined criteria to assess the validity and security of an app package and components.

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 and add-ons from Splunk, our partners and our community. Find an app or add-on for most any data source and user need, or simply create your own with help from our developer portal.

Follow Us:
© 2005-2020 Splunk Inc. All rights reserved.
Splunk®, Splunk>®, Listen to Your Data®, The Engine for Machine Data®, Hunk®, Splunk Cloud™, Splunk Light™, SPL™ and Splunk MINT™ are trademarks and 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.