Fix case of timezone/grok_timezone options. (#4799)

This commit is contained in:
Daniel Nelson
2018-10-03 12:58:21 -07:00
committed by Greg
parent 8500d9345f
commit c3bab78ea8
3 changed files with 5 additions and 5 deletions

View File

@@ -1442,7 +1442,7 @@ func getParserConfig(name string, tbl *ast.Table) (*parsers.Config, error) {
if node, ok := tbl.Fields["grok_timezone"]; ok {
if kv, ok := node.(*ast.KeyValue); ok {
if str, ok := kv.Value.(*ast.String); ok {
c.GrokTimeZone = str.Value
c.GrokTimezone = str.Value
}
}
}