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

Align malformed data handling with splunkd #36096

Open
splunkericl opened this issue Oct 30, 2024 · 4 comments
Open

Align malformed data handling with splunkd #36096

splunkericl opened this issue Oct 30, 2024 · 4 comments
Labels
enhancement New feature or request help wanted Extra attention is needed receiver/splunkhec Stale

Comments

@splunkericl
Copy link
Contributor

Component(s)

receiver/splunkhec

Is your feature request related to a problem? Please describe.

When ingesting data into splunkhecreceiver via /services/collector/event endpoint, the behavior is different than splunkd if the payload is malformed.

For example:
payload:

{"@timestamp":"2023-09-13T21:36:46.456Z","tailed_path":"/cfp/logs/archive/dldl/clientlogrepository/20230913/E866004.log","source":"gtidatabus","fluentd_utc_timestamp":"2023-09-13T21:36:29.028898541Z","deployment_id":"1234","@version":"1","env":"test","app_id":"123","application_name":"jhffdjhkfd","event":"2023-09-14 03:06:22,214 +05:30 [INFO] [1323] [ContainerApi] [StatsCollector] Skipped frame stats entry for statsCounter={} 720","tags":["_dateparsefailure"],"host":"jkgfdjkhgfdjhk","app_resolver_grp":"d2bnrgojpmm","seal_id":"1231213","os_resolver_grp":"jhgvjhkgfjkdf","s_sourcetype":"fkfjkfjf", "sourcetype": "nb:hec:event"}

splunkhecreceiver accepts the data but has significant payload difference
splunkd would return No Data with code 5

Describe the solution you'd like

align the behavior of splunkhecreceiver if the data is malformed. Return response of {"text":"No data", "code":5} instead

Describe alternatives you've considered

No response

Additional context

No response

@splunkericl splunkericl added enhancement New feature or request needs triage New item requiring triage labels Oct 30, 2024
Copy link
Contributor

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@atoulme atoulme removed the needs triage New item requiring triage label Nov 1, 2024
@atoulme
Copy link
Contributor

atoulme commented Nov 1, 2024

Sure, do you want to work on this?

@splunkericl
Copy link
Contributor Author

Hey @atoulme . This seems like a lower priority item so we don't have to work on it yet. Can we keep this up for tracking purposes? We might get to it one day when this becomes more urgent.

@atoulme atoulme added the help wanted Extra attention is needed label Nov 2, 2024
Copy link
Contributor

github-actions bot commented Jan 2, 2025

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@github-actions github-actions bot added the Stale label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed receiver/splunkhec Stale
Projects
None yet
Development

No branches or pull requests

2 participants