Skip to content

Commit

Permalink
Filebeat: apache2(httpd) log path add to module manifest (#11888)
Browse files Browse the repository at this point in the history
* Filebeat: apache2(httpd) log path add to module manifest

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: #11887

Signed-off-by: Daniel T. Lee <[email protected]>
  • Loading branch information
DanielTimLee authored and exekias committed Apr 24, 2019
1 parent 40257fb commit 1e080fd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Added support for Cisco ASA fields to the netflow input. {pull}11201[11201]
- Configurable line terminator. {pull}11015[11015]
- Add Filebeat envoyproxy module. {pull}11700[11700]
- Add apache2(httpd) log path (`/var/log/httpd`) to make apache2 module work out of the box on Redhat-family OSes. {issue}11887[11887] {pull}11888[11888]

*Heartbeat*

Expand Down
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 1e080fd

Please sign in to comment.