Support exec input plugin legacy behavior

This commit is contained in:
Cameron Sparr
2016-02-10 11:50:05 -07:00
parent ef20f05221
commit 28664fedb2
3 changed files with 8 additions and 5 deletions

View File

@@ -611,7 +611,10 @@ func buildParser(name string, tbl *ast.Table) (parsers.Parser, error) {
}
}
if c.DataFormat == "" {
// Legacy support, exec plugin originally parsed JSON by default.
if name == "exec" && c.DataFormat == "" {
c.DataFormat = "json"
} else if c.DataFormat == "" {
c.DataFormat = "influx"
}