exam questions

Exam SPLK-1003 All Questions

View all questions & answers for the SPLK-1003 exam

Exam SPLK-1003 topic 1 question 149 discussion

Actual exam question from Splunk's SPLK-1003
Question #: 149
Topic #: 1
[All SPLK-1003 Questions]

What is the correct curl to send multiple events through HTTP Event Collector?

  • A.
  • B.
  • C.
  • D.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Zeo312
1 month, 1 week ago
Selected Answer: B
B matches the right data header format
upvoted 1 times
...
shesky17
7 months, 2 weeks ago
Selected Answer: B
B. curl "https://mysplunkserver.example.com:8088/services/collector" \ -H "Authorization: Splunk DF469ZE4-3G38-65F5-H708-6284GG91PF67" \ -d '{"event": "Hello World"}{"event": "Hola Mundo"}{"event": "Hallo Welt", "nested": {"key1": "value1"}}' See: https://docs.splunk.com/Documentation/Splunk/9.2.1/Data/HECExamples#:~:text=world!%22%2C%20%22sourcetype%22%3A%20%22manual%22%7D%27-,Example%202%3A%20Send%20multiple%20events%20to%20HEC,-This%20example%20demonstrates curl "https://mysplunkserver.example.com:8088/services/collector" \ -H "Authorization: Splunk CF179AE4-3C99-45F5-A7CC-3284AA91CF67" \ -d '{"event": "Pony 1 has left the barn"}{"event": "Pony 2 has left the barn"}{"event": "Pony 3 has left the barn", "nested": {"key1": "value1"}}'
upvoted 4 times
...
MartinCaplan
9 months ago
Selected Answer: C
C suppose to be : To send multiple events through HTTP Event Collector (HEC) using cURL, you would typically use a command similar to the following: bash Copy code curl -k $SPLUNK_HEC_URL \ -H "Authorization: Splunk $SPLUNK_HEC_TOKEN" \ -d '{"event": "your_event_data1", "sourcetype": "your_sourcetype1", "source": "your_source1"}' \ -d '{"event": "your_event_data2", "sourcetype": "your_sourcetype2", "source": "your_source2"}' Replace $SPLUNK_HEC_URL with your HEC endpoint URL and $SPLUNK_HEC_TOKEN with your HEC token. This example sends two events, each specified with -d option containing JSON data. Adjust the event, sourcetype, and source fields as needed for your events. You can continue adding -d options for additional events. Make sure each JSON data object is separated by a space.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago