-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Filebeat] apache2 log directory not match? #11887
Labels
Comments
DanielTimLee
added a commit
to DanielTimLee/beats
that referenced
this issue
Apr 22, 2019
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>
exekias
pushed a commit
that referenced
this issue
Apr 24, 2019
* 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 <danieltimlee@gmail.com>
Closing this issue since the fix #11888 is merged. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the enhancement:
At Fedora,
apache2
(as ahttpd
) package can be installed byhttpd-2.4.39-2.fc29.x86_64
At RHEL 7,
httpd
can be installed withhttpd-2.4.6-88.el7.x86_64
And on these OSes,
httpd
access/error logs are found in directory:/var/log/httpd/access_log
/var/log/httpd/error_log
The log files are located
httpd
instead ofapache2
And also, log file names are in
*_log
not in.log
beats/filebeat/module/apache/access/manifest.yml
Lines 3 to 12 in 8caa332
As the upper
filebeat/module/apache/access/manifest.yml
manifest file onlydefines the location of
var/log/apache2/access.log
Since these
httpd
packages save logs at as/var/log/httpd/*_log
a default (at RH type OS),adding this directory to the manifest file will help
filebeat apache module
to run out of the box on these environments.Describe a specific use case for the enhancement or feature:
Enhance will help
filebeat apache
to run out of the box.The text was updated successfully, but these errors were encountered: