Buffer fullness issue. Telegraf is not reading log file data to collect Exception and Error metrics.


#1

Telegraf is not reading log file data to collect Exception and Error metrics. Buffer fullness issue. please assist us.
telegraf log file shows below…

2018-05-15T08:28:00Z D! Output [influxdb] buffer fullness: 0 / 1000 metrics.
2018-05-15T08:28:10Z D! Output [influxdb] buffer fullness: 0 / 1000 metrics.
2018-05-15T08:28:20Z D! Output [influxdb] buffer fullness: 0 / 1000 metrics.
2018-05-15T08:28:30Z D! Output [influxdb] buffer fullness: 0 / 1000 metrics.


#2

This message indicates that there is nothing to send. What does your configuration file look like?


#3

Hi Daniel,

thanks for ur reply.

This is telegraf config file, the same configuration working for server1 and its not working for server2…!! weird.

[global_tags]
dc = “server2”
[agent]
interval = “10s”
round_interval = true
metric_buffer_limit = 1000
flush_buffer_when_full = true
collection_jitter = “0s”
flush_interval = “10s”
flush_jitter = “0s”
debug = true
quiet = false
logfile = “/var/log/telegraf/telegraf.log”
hostname = “”

[[inputs.logparser]]
files = ["/var/log/tomcat/app.log"]
from_beginning = false
name_override = “project_info”

[inputs.logparser.grok]
patterns = ["%{MAINJAVACLASS:class:tag}: %{GREEDYDATA:block}"]
custom_patterns = ‘’’
MAINJAVACLASS (?:[a-zA-Z0-9-]+.)+[A-Za-z0-9$]+
‘’’
[inputs.logparser.tags]
project_name = “server2”

[[outputs.influxdb]]
urls = [“http://x.x.x.x:8086”] # required
database = “db1” # required
precision = “s”
timeout = “5s”


#4

I assume that the pattern isn’t matching the log file, can you post a few lines from the log?


#5

Hi Daniel,
appreciate for your support.
This issue has fixed now, i’ve given rwx permission to others in that dir of app log. this resolves… :slight_smile:

thanks again.


#6

Hi. I am also facing the same issue. Telegraf is not collecting metrics and I guess its not the permission issue as well. Because telegraf and user creating the file are in the same group.
Any working solution for this?