ViaQ / watches-cli

:watch: CLI tool to pull statistics from Elasticsearch
Apache License 2.0
1 stars 1 forks source link

Make timestamp field configurable #28

Open lukas-vlcek opened 7 years ago

lukas-vlcek commented 7 years ago

Currently the option -t, --timestamp adds date/time value to data into field with hardcoded name timestamp. Making this field name configurable can help. For example when Fluentd uses Logstash format then the time_key defaults to @timestamp field name.

Suggestions is to change:

-t, --timestamp

to

-t=FIELD_NAME    [default @timestamp]
richm commented 7 years ago

rfc 3339 format with microsecond resolution