Telegraf is not collecting the nginx access.logs

Hi

I am trying to run telegraf in openshift Container to collect the logs from nginx access.log.
But, It is not able to collect the logs.

I am getting below logs.
2018/11/30 03:09:39 Using config file: /etc/telegraf/telegraf.conf
2018/11/30 03:09:39 Attempting connection to output: influxdb
2018/11/30 03:09:39 Successfully connected to output: influxdb
2018/11/30 03:09:39 Starting Telegraf (version 1.0.0)
2018/11/30 03:09:39 Loaded outputs: influxdb
2018/11/30 03:09:39 Loaded inputs: logparser
2018/11/30 03:09:39 Tags enabled: host=sg-log-analyzer-24-q8rj3
2018/11/30 03:09:39 Agent Config: Interval:10s, Debug:true, Quiet:false, Hostname:“sg-log-analyzer-24-q8rj3”, Flush Interval:10s
2018/11/30 03:09:39 Seeked /data/nginx/access.log - &{Offset:0 Whence:0}
2018/11/30 03:09:40 Input [logparser] gathered metrics, (10s interval) in 16.796µs
2018/11/30 03:09:50 Input [logparser] gathered metrics, (10s interval) in 12.562µs
2018/11/30 03:09:50 Output [influxdb] buffer fullness: 0 / 10000 metrics. Total gathered metrics: 0. Total dropped metrics: 0.
2018/11/30 03:10:00 Input [logparser] gathered metrics, (10s interval) in 12.615µs
2018/11/30 03:10:00 Output [influxdb] buffer fullness: 0 / 10000 metrics. Total gathered metrics: 0. Total dropped metrics: 0.

Thanks and Regards!!!
Ananth Francis.

Most likely the logparser pattern doesn’t match the log lines, it would be helpful to paste you logparser configuration as well as a line from your logfile. Wow, Telegraf 1.0.0, you should upgrade too ;).