condense telegraf.conf

This commit is contained in:
Max U 2018-06-26 13:18:43 -07:00
parent bacee88ac0
commit 41c174dc29
2 changed files with 3 additions and 8 deletions

View File

@ -1,12 +1,8 @@
[[inputs.reader]] [[inputs.reader]]
files = ["/var/log/test.log"]
files = ["/var/log/test.log"] data_format = "json"
name_override = "json_reader"
data_format = "json"
name_override = "json_reader"
[[outputs.file]] [[outputs.file]]
files = ["stdout"] files = ["stdout"]

View File

@ -17,7 +17,6 @@ func TestRefreshFilePaths(t *testing.T) {
} }
r.refreshFilePaths() r.refreshFilePaths()
//log.Printf("filenames: %v", filenames)
assert.Equal(t, len(r.Filenames), 2) assert.Equal(t, len(r.Filenames), 2)
} }
func TestJSONParserCompile(t *testing.T) { func TestJSONParserCompile(t *testing.T) {