Skip to content

can I use both auto_extract_timestamp and timestamp_key in splunk_hec_logs #22919

Answered by pgollangi
shamj asked this question in Q&A
Discussion options

You must be logged in to vote

If you use timestamp_key then auto_extract_timestamp ignored by splunk. Vector does nothing wrong here because if you set timestamp_key vector pass extract it and send it as time in the msgs, similarly vector just pass auto_extract_timestamp to splunk API. But splunk ignore auto_extract_timestamp if it detect time in the message/URL

This is what splunk HEC API doc says:

Sends timestamped events to HTTP Event Collector using the Splunk platform JSON event protocol when auto_extract_timestamp is set to "true" in the /event URL.

  • An example of a timestamp is: 2017-01-02 00:00:00.
  • If there is a timestamp in the event's JSON envelope, Splunk honors that timestamp first.
  • If there is no timesta…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by pront
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
sink: splunk_hec Anything `splunk_hec` sink related
3 participants