-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat (parser.json_v2): Support defining field/tag tables within an ob…
…ject table (#9449)
- Loading branch information
Showing
17 changed files
with
617 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.
df5c19c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With me (telegraf Telegraf 1.20.4), the output is slightly different, as the renaming of the tags failed and other fields are added (see file)
What confused me is: I created a new input file where I pasted the objects within the two input files json1 & json2 with a new array (so basically a new file containing [,] where json1 was place before the comma and json2 after the comma). Running telegraf with this new file results in the following error: "2021-11-21T16:51:00Z E! [inputs.file] Error in plugin: GJSON Path returned null
output_multiple_json_input.txt
"