Getting Data In

How do I fix AWS Lambda HEC error when parsing?

lavster
Path Finder

I wonder if someone can help, we are getting the following error when trying to send data into Splunk, this previously worked but now we cant seem to get it working at all,  I have tried to curl the event manually and it succeeds, which is even stranger. The error message is

token name=xxxxchannel=********* source_IP=******reply=6events_processed=0http_input_body_size=101493parsing_err="While expecting event object to start: Unexpected character while looking for value: 'E', totalRequestSize=101493"

the event we are trying to send looks like this

{
    "time": 1663679182,
    "host": "test-sandbox",
    "source": "aws/lambda",
    "sourcetype": "aws:lambda",
    "index": "xxx-xxx",
    "event": {
        "message": "2022/09/20 14:06:22 node=test-sandbox Starting to move cantabm_testfile-9.zip from c21-metadata-dropzone-sandbox to c21-metadata-dest-sandbox/Metadata/cantabm_testfile-9.zip\n",
        "account": "11111111111"
    }
}

Labels (1)
0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...