Getting Data In

How to index data using Rest API in splunk?

kiran331
Builder

HI I have a below curl command, What is the best way to ingest data into Splunk?

curl -u "abc:123" -H "X-Requested-With: Curl" -X "POST" -d "action=list&show_attributes=ALL" "https://qualysapi.qualys.com/api/2.0/fo/asset/group/"

Tags (2)
0 Karma

micahkemp
Champion

"Best" depends on many factors, but potential solutions could be:

  1. Append the results to a file monitored by a [monitor:///] stanza (and handle log rotation, etc)
  2. Create a modulear input that fetches that URL and indexes the results
  3. Scripted input
0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...