Telegraf: field corresponding to `timezone' is not defined in `*logparser.GrokConfig'

Hi,

after the last telegraf update on my raspberry pi, the telegraf process died with the following error message:

Sep 29 20:20:51 beckberry systemd[1]: telegraf.service: Failed with result ‘exit-code’.
Sep 29 20:20:51 beckberry systemd[1]: telegraf.service: Unit entered failed state.
Sep 29 20:20:51 beckberry systemd[1]: telegraf.service: Main process exited, code=exited, status=1/FAILURE
Sep 29 20:20:51 beckberry telegraf[13191]: 2018/09/29 20:20:51 E! Error parsing /etc/telegraf/telegraf.d/fhem_fritz_adatper.conf, line 7: field corresponding to timezone' is not defined in*logparser.GrokConfig’

My config worked until the update to telegraf Version 1.8.0-1

[[inputs.logparser]]
files = ["/opt/fhem/log/FBDECT_fb1_08761_0453247-*.log"]
from_beginning = false
[inputs.logparser.grok]
patterns = ["%{POWER}"]
measurement = “fhem”
timezone = "Europe/Berlin"
custom_patterns = ‘’’
POWER %{DATA:timestamp:ts-“2006-01-02_15:04:05”} %{DATA:room:tag} power: %{NUMBER:power:float}
‘’’
I asked google for *timezone’ is not defined in `logparser.GrokConfig’ and found a source on gitlab.

The short version :slight_smile:

I changed timezone = “Europe/Berlin” to TimeZone = "Europe/Berlin"

Now telegraf works properly.

Has something changed in the code of telegraf or used libs?

Regards

Frank

This is a bug, can you open an issue on the Telegraf github?

Done :slight_smile: