Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ridingintraffic
Last active October 5, 2018 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ridingintraffic/ba53e9a7690162281cd3add568aaffd6 to your computer and use it in GitHub Desktop.
Save ridingintraffic/ba53e9a7690162281cd3add568aaffd6 to your computer and use it in GitHub Desktop.
$ curl -u admin:changme https://<yoursplunkIP>:8089/servicesNS/nobody/system/data/inputs/http/?output_mode=json \
-d name=test_thing2 \
-d sourcetype=testing \
-d index=default \
--insecure -X POST | jq .entry[0].content.token -r
$ 38985917-f6c1-xxxx-xxxx-2c4e8c77798d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment