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
8
plugins/parsers/json_v2/testdata/multiple_arrays_in_object/expected.out
vendored
Normal file
8
plugins/parsers/json_v2/testdata/multiple_arrays_in_object/expected.out
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
file,title=The\ Lord\ Of\ The\ Rings author="Tolkien",chapters="A Long-expected Party",name="Bilbo",random=1,species="hobbit"
|
||||
file,title=The\ Lord\ Of\ The\ Rings author="Tolkien",chapters="The Shadow of the Past",name="Bilbo",random=1,species="hobbit"
|
||||
file,title=The\ Lord\ Of\ The\ Rings author="Tolkien",chapters="A Long-expected Party",name="Frodo",random=1,species="hobbit"
|
||||
file,title=The\ Lord\ Of\ The\ Rings author="Tolkien",chapters="The Shadow of the Past",name="Frodo",random=1,species="hobbit"
|
||||
file,title=The\ Lord\ Of\ The\ Rings author="Tolkien",chapters="A Long-expected Party",name="Bilbo",random=2,species="hobbit"
|
||||
file,title=The\ Lord\ Of\ The\ Rings author="Tolkien",chapters="The Shadow of the Past",name="Bilbo",random=2,species="hobbit"
|
||||
file,title=The\ Lord\ Of\ The\ Rings author="Tolkien",chapters="A Long-expected Party",name="Frodo",random=2,species="hobbit"
|
||||
file,title=The\ Lord\ Of\ The\ Rings author="Tolkien",chapters="The Shadow of the Past",name="Frodo",random=2,species="hobbit"
|
24
plugins/parsers/json_v2/testdata/multiple_arrays_in_object/input.json
vendored
Normal file
24
plugins/parsers/json_v2/testdata/multiple_arrays_in_object/input.json
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"book": {
|
||||
"title": "The Lord Of The Rings",
|
||||
"chapters": [
|
||||
"A Long-expected Party",
|
||||
"The Shadow of the Past"
|
||||
],
|
||||
"author": "Tolkien",
|
||||
"characters": [
|
||||
{
|
||||
"name": "Bilbo",
|
||||
"species": "hobbit"
|
||||
},
|
||||
{
|
||||
"name": "Frodo",
|
||||
"species": "hobbit"
|
||||
}
|
||||
],
|
||||
"random": [
|
||||
1,
|
||||
2
|
||||
]
|
||||
}
|
||||
}
|
11
plugins/parsers/json_v2/testdata/multiple_arrays_in_object/telegraf.conf
vendored
Normal file
11
plugins/parsers/json_v2/testdata/multiple_arrays_in_object/telegraf.conf
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
# Example getting nested fields with duplicate names
|
||||
# Example taken from: https://github.com/influxdata/telegraf/issues/1363
|
||||
|
||||
[[inputs.file]]
|
||||
files = ["./testdata/multiple_arrays_in_object/input.json"]
|
||||
data_format = "json_v2"
|
||||
[[inputs.file.json_v2]]
|
||||
[[inputs.file.json_v2.object]]
|
||||
path = "book"
|
||||
tags = ["title"]
|
||||
disable_prepend_keys = true
|
Loading…
Add table
Add a link
Reference in a new issue