Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different formatting when hec_endpoint_type=Event ? #23

Open
eisraeli opened this issue Jun 28, 2023 · 0 comments
Open

Different formatting when hec_endpoint_type=Event ? #23

eisraeli opened this issue Jun 28, 2023 · 0 comments

Comments

@eisraeli
Copy link

eisraeli commented Jun 28, 2023

Hi,
Shouldn't the logs be formatted differently if "hec_endpoint_type" is set to Event instead of the default Raw ?

I got the following error when I set my configuration to Event

The data is not formatted correctly. To see how to properly format data for Raw or Event HEC endpoints, see Splunk Event Data (http://dev.splunk.com/view/event-collector/SP-CAAAE6P#data). HecServerErrorResponseException{serverRespObject=HecErrorResponseValueObject{text=Invalid data format, code=6, invalidEventNumber=0}, httpBodyAndStatus=HttpBodyAndStatus{statusCode=400, body={"text":"Invalid data format","code":6,"invalid-event-number":0}}, lifecycleType=EVENT_POST_NOT_OK, url=https://44.194.107.82:443, errorType=RECOVERABLE_DATA_ERROR, context=event_post}

Can anyone confirm it works with hec_endpoint_type set to Event ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant