From 9c4b52256ddab66f696745d5e0a4d652e0cfe026 Mon Sep 17 00:00:00 2001 From: Max U Date: Thu, 21 Jun 2018 13:13:46 -0700 Subject: [PATCH] tweak metric output --- plugins/inputs/reader/reader.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/inputs/reader/reader.go b/plugins/inputs/reader/reader.go index a8bf5c468..274f22a66 100644 --- a/plugins/inputs/reader/reader.go +++ b/plugins/inputs/reader/reader.go @@ -59,6 +59,10 @@ func (r *Reader) Gather(acc telegraf.Accumulator) error { } func (r *Reader) compileParser() { + if r.DataFormat == "" { + log.Printf("E! No data_format specified") + return + } if r.DataFormat == "grok" { log.Printf("Grok isn't supported yet") return