Add micro and nanosecond unix timestamp support to JSON parser (#5149)
This commit is contained in:
@@ -41,8 +41,8 @@ ignored unless specified in the `tag_key` or `json_string_fields` options.
|
||||
## metric.
|
||||
json_time_key = ""
|
||||
|
||||
## Time format is the time layout that should be used to interprete the
|
||||
## json_time_key. The time must be `unix`, `unix_ms` or a time in the
|
||||
## Time format is the time layout that should be used to interprete the json_time_key.
|
||||
## The time must be `unix`, `unix_ms`, `unix_us`, `unix_ns`, or a time in the
|
||||
## "reference time". To define a different format, arrange the values from
|
||||
## the "reference time" in the example to match the format you will be
|
||||
## using. For more information on the "reference time", visit
|
||||
@@ -70,8 +70,9 @@ time using the JSON document you can use the `json_time_key` and
|
||||
document.
|
||||
|
||||
The `json_time_key` option specifies the key containing the time value and
|
||||
`json_time_format` must be set to `unix`, `unix_ms`, or the Go "reference
|
||||
time" which is defined to be the specific time: `Mon Jan 2 15:04:05 MST 2006`.
|
||||
`json_time_format` must be set to `unix`, `unix_ms`, `unix_us`, `unix_ns`, or
|
||||
the Go "reference time" which is defined to be the specific time:
|
||||
`Mon Jan 2 15:04:05 MST 2006`.
|
||||
|
||||
Consult the Go [time][time parse] package for details and additional examples
|
||||
on how to set the time format.
|
||||
|
||||
Reference in New Issue
Block a user