Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error parsing /etc/telegraf/telegraf.conf, Invalid data format: grok #4449

Closed
APenketh opened this issue Jul 21, 2018 · 3 comments
Closed

Error parsing /etc/telegraf/telegraf.conf, Invalid data format: grok #4449

APenketh opened this issue Jul 21, 2018 · 3 comments
Labels
discussion Topics for discussion

Comments

@APenketh
Copy link

APenketh commented Jul 21, 2018

Relevant telegraf.conf:

[[inputs.tail]]
  name_override = "nginx_access"
  files = ["/var/log/nginx/access.log"]
  from_beginning = false
  watch_method = "inotify"
  pipe = false
  data_format = "grok"
  grok_patterns = ["%{COMMON_LOG_FORMAT}"]

System info:

Telegraf v1.7.1
OS: CentOS 7.5

Steps to reproduce:

  1. Add the configuration into the telegraf configuration file
  2. Restart the telegraf service

Expected behavior:

Service To Start Up Succesfully

Actual behavior:

Get the following error:

Jul 21 13:32:44 telegraf: 2018/07/21 13:32:44 E! Error parsing /etc/telegraf/telegraf.conf, Invalid data format: grok
@glinton
Copy link
Contributor

glinton commented Jul 23, 2018

I believe the grok parser was introduced in 1.7.2 are you able to get the latest version of telegraf and try again?

@danielnelson
Copy link
Contributor

Actually this feature is in the development branch only, and will be in the 1.8 release. You can use the nightly builds to access this, or with the released version you would can use the logparser plugin.

@danielnelson danielnelson added the discussion Topics for discussion label Jul 23, 2018
@xor-gate
Copy link

I was also lost, found this issue. It works like a charm with build of develop! Thanks all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Topics for discussion
Projects
None yet
Development

No branches or pull requests

4 participants