condense telegraf.conf
This commit is contained in:
parent
bacee88ac0
commit
41c174dc29
|
@ -1,12 +1,8 @@
|
||||||
|
|
||||||
[[inputs.reader]]
|
[[inputs.reader]]
|
||||||
|
|
||||||
files = ["/var/log/test.log"]
|
files = ["/var/log/test.log"]
|
||||||
|
|
||||||
data_format = "json"
|
data_format = "json"
|
||||||
|
|
||||||
name_override = "json_reader"
|
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