Skip to content
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

Closed
DanielTimLee opened this issue Apr 22, 2019 · 1 comment · Fixed by #11888
Closed

[Filebeat] apache2 log directory not match? #11887

DanielTimLee opened this issue Apr 22, 2019 · 1 comment · Fixed by #11888
Labels
Filebeat Filebeat module Team:Integrations Label for the Integrations team

Comments

@DanielTimLee
Copy link
Contributor

Describe the enhancement:

At Fedora, apache2 (as a httpd) package can be installed by httpd-2.4.39-2.fc29.x86_64
At RHEL 7, httpd can be installed with httpd-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 of apache2
And also, log file names are in *_log not in .log

var:
- name: paths
default:
- /var/log/apache2/access.log*
- /var/log/apache2/other_vhosts_access.log*
os.darwin:
- /usr/local/var/log/apache2/access_log*
os.windows:
- "C:/tools/Apache/httpd-2.*/Apache24/logs/access.log*"
- "C:/Program Files/Apache Software Foundation/Apache2.*/logs/access.log*"

As the upper filebeat/module/apache/access/manifest.yml manifest file only
defines 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.

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>
@ruflin ruflin added Team:Integrations Label for the Integrations team Filebeat Filebeat module labels Apr 23, 2019
@zube zube bot reopened this Apr 24, 2019
@zube zube bot closed this as completed Apr 24, 2019
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>
@zube zube bot reopened this Apr 24, 2019
@kaiyan-sheng
Copy link
Contributor

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
Labels
Filebeat Filebeat module Team:Integrations Label for the Integrations team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants