Splunk Cloud Platform

curl post event to Splunk Cloud - where do they go?

splunk_su
Explorer

Hi
Just starting to try Splunk with https://docs.splunk.com/Documentation/Splunk/8.0.2/Data/UsetheHTTPEventCollector#Configure_HTTP_Even...

when I do a

curl -k https://input-xyz.cloud.splunk.com:8088/services/collector/event -H "Authorization: Splunk blah" -d ' { "index": "summary", "event": "blah blah blah ","sourcetype": "_json" } '

I get
{"text":"Success","code":0}

but the "Data Summary" shows nothing except "Waiting for results...
"
Thanks

Labels (1)
Tags (1)
0 Karma
1 Solution

splunk_su
Explorer

Thanks for your answers.
index = "summary" returned nothing.
Settings -> Data Inputs -> HTTP Event Collector -> Token / input was set to "Default"; I changed it to summary, curl-ed again. But still nothing 😞

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Have you searched index=_internal source="*splunkd.log"?

---
If this reply helps you, Karma would be appreciated.
0 Karma

splunk_su
Explorer

index=_internal source="*splunkd.log" shows:

ERROR JsonLineBreaker - JSON StreamId:1 had parsing error:Unexpected character while looking for value: 'b' - data_source="http:ABCS", data_host="input-xxxx.cloud.splunk.com:8088", data_sourcetype="_json"

when I change the data to
-d '{"event": "hello world"}'
I get
ERROR JsonLineBreaker - JSON StreamId:0 had parsing error:Unexpected character while looking for value: 'h' - data_source="http:ABC", data_host="input-xxx.cloud.splunk.com:8088", data_sourcetype="_json"

0 Karma

amiracle
Splunk Employee
Splunk Employee

According to your curl command, you specified the index as "summary," however you can also look at the token you created and see which index it is associated with. (Go to Settings -> Data Inputs -> HTTP Event Collector -> Token / input) and you should see the index associated there.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Does index=summary return results?

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...