Adding upstream version 1.34.4.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
e393c3af3f
commit
4978089aab
4963 changed files with 677545 additions and 0 deletions
2
plugins/parsers/json_v2/testdata/multiple_timestamps/expected.out
vendored
Normal file
2
plugins/parsers/json_v2/testdata/multiple_timestamps/expected.out
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
file name="fire" 1555745371450794118
|
||||
file name="flood" 1555745371450794118
|
12
plugins/parsers/json_v2/testdata/multiple_timestamps/input.json
vendored
Normal file
12
plugins/parsers/json_v2/testdata/multiple_timestamps/input.json
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"events": [
|
||||
{
|
||||
"name": "fire",
|
||||
"time": "1555745371410"
|
||||
},
|
||||
{
|
||||
"name": "flood",
|
||||
"time": "1555745371410"
|
||||
}
|
||||
]
|
||||
}
|
10
plugins/parsers/json_v2/testdata/multiple_timestamps/telegraf.conf
vendored
Normal file
10
plugins/parsers/json_v2/testdata/multiple_timestamps/telegraf.conf
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
# Example taken from: https://github.com/influxdata/telegraf/issues/5940
|
||||
|
||||
[[inputs.file]]
|
||||
files = ["./testdata/multiple_timestamps/input.json"]
|
||||
data_format = "json_v2"
|
||||
[[inputs.file.json_v2]]
|
||||
[[inputs.file.json_v2.object]]
|
||||
path = "events"
|
||||
timestamp_key = "time"
|
||||
timestamp_format = "unix_ms"
|
Loading…
Add table
Add a link
Reference in a new issue