Hello,
I want to parse a Logfile and send it to the influxdb, but when I test the config it Shows no Output.
###------------------------------------------------------
INPUT PLUGINS
###------------------------------------------------------
– input from telegraf internal
[[inputs.logparser]]
files = ["/var/log/jboss/kams/ti-performance.log"]
from_beginning = false
[inputs.logparser.grok]
measurement = “egkonline_log”
#patterns = [’^<%{ONLINE_LOG_TIME:time}> .*time[%{NUMBER:value:int}] .tag[%{WORD:name}].']
patterns = ['^<%{ONLINE_LOG_TIME:timestamp:ts-rfc3339}> .*time\[%{NUMBER:value:int}\] .*tag\[%{WORD:name:tag}\].*’]
custom_patterns = ‘’’
ONLINE_LOG_TIME (%{YEAR}-%{MONTHNUM}-%{MONTHDAY}[T ]%{HOUR}:?%{MINUTE}(?::?%{SECOND})?%{ISO8601_TIMEZONE}?)
‘’’
###############################################################################
Output at the CLI:
telegraf.d]# telegraf --config /etc/telegraf/telegraf.d/egkonline.conf.bak --test
2019-12-09T13:50:14Z I! Starting Telegraf 1.12.3
Logfile:
<2019-12-09 12:12:10,897> http-0.0.0.0:8080-32 <start[1575889930884] time[12] tag[UFS.GetUpdateFlags] message[TI]> <>
<2019-12-09 12:12:11,095> http-0.0.0.0:8080-32 <start[1575889931082] time[12] tag[UFS.GetUpdateFlags] message[TI]> <>
I hope you have a idea why there are no Output from the Logfile