Closed
Description
Component(s)
What happened?
Description
Splunk HEC allows time
to be nanosecond, microsecond, millisecond and in second. splunk to log/metric converters assumes all time is in seconds:
The receiver should not assume all incoming time is in second and cause overflow by trying to convert time
to nanosecond before confirming the time unit.
Steps to Reproduce
- run otel with splunkhecreceiver
- curl -X POST http://localhost:8088/services/collector -d '{"time":1732604863241,"event":"data","source":"test","sourcetype":"test","host":"test","index":"main"}'
- timestamp for the event is now 9223372036854774
Expected Result
1732604863241000000
Tuesday, November 26, 2024 7:07:43.241 UTC
Actual Result
9223372036854774
Friday, April 11, 2262 11:47:16.854 UTC
Collector version
1.0.9
Environment information
Environment
Debian Bookworm
go 1.22
OpenTelemetry Collector configuration
receivers:
splunk_hec:
endpoint: 8088
splitting: false
Log output
No response
Additional context
No response