Fluentd apache format [warn]: pattern not match:

前端 未结 2 1387
忘掉有多难
忘掉有多难 2021-01-23 01:50

In my /etc/fluent/fluent.conf


  @type tail
  format apache2
  path /var/log/apache2/other_vhosts_access.log
  tag apache2.access

<         


        
2条回答
  •  滥情空心
    2021-01-23 02:19

    It seems that tail plugin does not support the format for apache log format "vhost_combined" but "combined".
    How about changing the apache configuration file as follows:

    /etc/apache2/conf-available/other-vhosts-access-log.conf
    Before:CustomLog ${APACHE_LOG_DIR}/other_vhosts_access.log vhost_combined
    (change vhost_combined to combined)
    After:CustomLog ${APACHE_LOG_DIR}/other_vhosts_access.log combined

提交回复
热议问题