Closed
Description
After updating to the most recent version of Telegraf, applying timestamp_format
leads to no output.
I tried by commenting out the timestamp_format
and testing against the previous version.
Config:
[[inputs.file]]
interval = "6h"
precision = "1s"
name_override = "savageNumbers"
files = ["debug.json"]
data_format = "json_v2"
[[inputs.file.json_v2]]
[[inputs.file.json_v2.object]]
path = "@this"
timestamp_key = "timestamp"
timestamp_format = "2006-01-02T15:04:05.9999999Z"
timestamp_zone = "UTC"
[inputs.file.json_v2.object.fields]
price = "float"
price_tag = "string"
volume = "int"
[inputs.file.tags]
product = "hackback"
exchange = "atlantis"
Input data:
[{"timestamp": "2022-01-31T09:04:31.1680000Z", "price": 822.42, "price_tag": "bB", "volume": 3}, {"timestamp": "2022-02-01T09:17:23.7590000Z", "price": 753.5, "price_tag": "bB", "volume": 15}, {"timestamp": "2022-02-02T09:04:09.1340000Z", "price": 753.27, "price_tag": "bB", "volume": 2}, {"timestamp": "2022-02-03T09:06:57.5730000Z", "price": 749.21, "price_tag": "", "volume": 10}, {"timestamp": "2022-02-04T10:20:07.4480000Z", "price": 784.9, "price_tag": "bB", "volume": 2}, {"timestamp": "2022-02-07T09:48:46.5190000Z", "price": 808.91, "price_tag": "bB", "volume": 7}, {"timestamp": "2022-02-08T09:08:35.6910000Z", "price": 813.23, "price_tag": "bB", "volume": 4}]
Expected output (with 1.21.2):
> savageNumbers,exchange=atlantis,host=rechenknecht,product=hackback price=822.42,price_tag="bB",volume=3i 1643619871000000000
> savageNumbers,exchange=atlantis,host=rechenknecht,product=hackback price=753.5,price_tag="bB",volume=15i 1643707044000000000
> savageNumbers,exchange=atlantis,host=rechenknecht,product=hackback price=753.27,price_tag="bB",volume=2i 1643792649000000000
> savageNumbers,exchange=atlantis,host=rechenknecht,product=hackback price=749.21,price_tag="",volume=10i 1643879218000000000
> savageNumbers,exchange=atlantis,host=rechenknecht,product=hackback price=784.9,price_tag="bB",volume=2i 1643970007000000000
> savageNumbers,exchange=atlantis,host=rechenknecht,product=hackback price=808.91,price_tag="bB",volume=7i 1644227327000000000
> savageNumbers,exchange=atlantis,host=rechenknecht,product=hackback price=813.23,price_tag="bB",volume=4i 1644311316000000000
Output with newest version (1.21.3):
None
May be associated with latest change in #10413?
Can anyone reproduce this behavior?