Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timestamp should not be included as field in JSON parser #4950

Closed
danielnelson opened this issue Nov 2, 2018 · 0 comments · Fixed by #4951
Closed

Timestamp should not be included as field in JSON parser #4950

danielnelson opened this issue Nov 2, 2018 · 0 comments · Fixed by #4951
Labels
bug unexpected problem or unintended behavior

Comments

@danielnelson
Copy link
Contributor

Relevant telegraf.conf:

[[inputs.file]]
  files = ["test"]
  json_time_key = "timestamp"
  json_time_format = "unix"
  data_format = "json"

System info:

Telegraf 1.9 master

Steps to reproduce:

Input data:

{
    "timestamp": 1541183052,
    "value": 42
}
  1. telegraf --test

Expected behavior:

file value=42 1541183052000000000

Actual behavior:

file timestamp=1541183052,value=42 1541183052000000000
@danielnelson danielnelson added the bug unexpected problem or unintended behavior label Nov 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant