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

Default timestamps for splunkhecexporter #965

Closed
nebffa opened this issue Sep 7, 2020 · 4 comments
Closed

Default timestamps for splunkhecexporter #965

nebffa opened this issue Sep 7, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@nebffa
Copy link
Contributor

nebffa commented Sep 7, 2020

Is your feature request related to a problem? Please describe.
Metrics sent to the Splunk HEC in some cases have a timestamp of 0 - Splunk accepts these timestamps without modification and consequently it is impossible to analyse these metrics meaningfully.

Describe the solution you'd like
In the case of metrics that have a 'zero' timestamp (i.e. beginning of Unix Epoch time), omit the timestamp field so that Splunk automatically sets it at ingestion time.

Describe alternatives you've considered
Splunk has options available to override the timestamps (https://docs.splunk.com/Documentation/Splunk/8.0.6/Data/Configuretimestamprecognition) in events, but despite repeated attempts these options have not worked. I think it's something special related to the way the HEC itself works.

Additional context
An example SignalFx Smart Agent monitor that publishes metrics without timestamps is https://docs.signalfx.com/en/latest/integrations/agent/monitors/telegraf-win_services.html, which is how I uncovered this behaviour.

@keitwb
Copy link
Contributor

keitwb commented Oct 1, 2020

@nebffa When you say you are ingesting into Splunk, do you mean you are using the splunk HEC exporter?

@nebffa
Copy link
Contributor Author

nebffa commented Oct 1, 2020

@keitwb yep - I am using the splunk HEC exporter

@nebffa nebffa changed the title Default timestamps for signalfx receiver Default timestamps for splunkhecexporter Oct 25, 2020
@atoulme
Copy link
Contributor

atoulme commented Dec 8, 2020

@nebffa Is this issue now resolved? OK to close?

@nebffa
Copy link
Contributor Author

nebffa commented Dec 8, 2020

@atoulme yes this issue is now resolved. I suppose I can close it with this comment? Let me try...

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

No branches or pull requests

4 participants