Skip to content

Commit

Permalink
Filebeat: apache2(httpd) log path add to module manifest
Browse files Browse the repository at this point in the history
Fedora, RHEL7 apache package (httpd) create logs to
'/var/log/httpd' instead of '/var/log/apache2' directory,
and the log files are named as '*_log' instead of '.log' format.

To make Filebeat apache2 module work out of the box on these
environments, add '/var/log/httpd/*_log' pattern to the manifest
file will solve this problem.

Fixed: elastic#11887

Signed-off-by: Daniel T. Lee <danieltimlee@gmail.com>
  • Loading branch information
DanielTimLee committed Apr 22, 2019
1 parent 8caa332 commit 4c35955
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions filebeat/module/apache/access/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ var:
default:
- /var/log/apache2/access.log*
- /var/log/apache2/other_vhosts_access.log*
- /var/log/httpd/access_log*
os.darwin:
- /usr/local/var/log/apache2/access_log*
os.windows:
Expand Down
1 change: 1 addition & 0 deletions filebeat/module/apache/error/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ var:
- name: paths
default:
- /var/log/apache2/error.log*
- /var/log/httpd/error_log*
os.darwin:
- /usr/local/var/log/apache2/error_log*
os.windows:
Expand Down

0 comments on commit 4c35955

Please sign in to comment.