[inputs.input_name.tags] configuration doesn't seem to do anything #2582
Closed
Description
Bug report
Relevant telegraf.conf:
[[inputs.logparser]]
files = ["/var/applogs/app.log"]
from_beginning = false
[inputs.logparser.grok]
patterns = ["%{APP_LOG}"]
measurement = "metrics_logs"
custom_patterns = '''
APP_LOG \[%{TIMESTAMP_ISO8601:logdate}\] \[%{DATA:hostname:tag}\] \[%{DATA:thread}\] %{LOGLEVEL:logLevel:tag} %{DATA:class:tag} %{DATA:method:tag} \- %{GREEDYDATA:message}
'''
[inputs.logparser.tags]
bname = "beatles"
[[inputs.procstat]]
pid_file = "/var/run/myapp/myapp.pid"
[inputs.procstat.tags]
bname = "beatles"
System info:
root@cherrybomb ~ # uname -a
Linux cherrybomb.localdomain 4.9.13-guest #2 SMP Mon Feb 27 14:58:18 CET 2017 x86_64 x86_64 x86_64 GNU/Linux
root@cherrybomb ~ # lsb_release -a
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.7 (Final)
Release: 6.7
Codename: Final
root@cherrybomb ~ # telegraf --version
Telegraf v1.2.1 (git: release-1.2 3b6ffb344e5c03c1595d862282a6823ecb438cff)
Steps to reproduce:
- Add a
tags
definition to any input - restart telegraf with new config file
- watch as no new keys are created in a influxdb output
Expected behavior:
I have a new tag in my measurement, named bname
, with value beatles
.
Actual behavior:
I don't have a new tag in my measurement, named bname
, with value beatles
.
😢
Additional info:
On reload, /var/log/telegraf/telegraf.log
:
2017/03/28 16:02:16 Seeked /var/applogs/app.log - &{Offset:0 Whence:2}
I would have enjoyed to look into it myself, but i'm still strugling with go. Could someone help?
Metadata
Assignees
Labels
No labels