Hi All,
I am a newbie to Telegraf and simple config file (~/telegraf/telegraf.conf) is as follows:
[[inputs.logparser]]
file(s) to tail:
files = ["/tmp/test.log"]
from_beginning = false
name_override = “test_metric”
For parsing logstash-style “grok” patterns:
[inputs.logparser.grok] patterns = ["%{myIP}"]
custom_patterns = “myIP (?:[0-9]{2})”
[[outputs.file]]
Files to write to, “stdout” is a specially handled file.
files = [“stdout”]
I had issued the command:
telegraf --config ~/telegraf/telegraf.conf
and then:
echo ‘55.3.244.1 GET /index.html 15824 0.043’ >> /tmp/test.log
Nothing print out to the screen.
Please shed some light.
Thanks a lot in advance