condense telegraf.conf
This commit is contained in:
parent
e450b266ec
commit
001658af30
|
@ -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"]
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue