Deployment Architecture

when i send multiple data in json format.I am getting error like this {"text":"No data","code":5}

arunprasath93
Explorer

my json data

            {"event":"edge log","target":"mnm"}


        </Payload>

my data is not logged in Http event collector.I am getting error like this {"text":"No data","code":5}

Tags (1)
0 Karma

sdchakraborty
Contributor

Hi,

"target":"mnm" is part of your event? then you need to put it inside "event". something like below,

curl -k http://localhost:8088/services/collector -H "Authorization:Splunk d4661317-2829-48c5-a1c6-e3aa2ff5f792" -d "{"sourcetype": "_json","event": {"a": "value1", "b": ["value1_1", "value1_2"]}}"

Sid

0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...