-
Notifications
You must be signed in to change notification settings - Fork 178
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
modify systemd filebeat service file #222
Comments
I am currently doing this to get around the logging opts flag file_line { 'disable_filebeat_sys_logging':
ensure => absent,
path => '/lib/systemd/system/filebeat.service',
match => '^Environment="BEAT_LOG_OPTS=',
match_for_absence => true,
notify => Class['filebeat::service'],
} its dirty. I think the filebeat systemd service file should be managed via this module, to be honest. |
It looks like the beats project is tracking the issue too (elastic/beats#12024). In elastic/beats#12577 they suggest that this is the suggested behavior so they documented it. Luckily elastic documents a good way to override systemd changes that we'd want to use. Do you have any suggestions about what kind of customizations should be supported in the module vs. when someone should manage it themselves? |
filebeat documentaion mentions a drop in file maybe something like this if $logging != {} {
# do systemd customization here
} else {
# make sure default setting is used here
} on each filebeat upgrade, the systemd file will be replaced which means we should not edit the systemd service file but which would have contents
then add information to the doc's wit the logging to say default on systemd systems is to log into syslog. from version 7.0+ I will test this and let you know if this works.. I can create a PR also if needed |
adding the systemd config file [Service]
Environment="BEAT_LOG_OPTS=" works. I will see what I can do about a pr |
create a pull request #223 |
I'm closing this since it was fixed in #223 |
Currently installing filebeat 7.x onto a system with systemd the defaults interfer with
filebeat.yml
filethe line
with
-e
flag defaults logging to syslog and will ignore any logging configsexample:
so the question.
should this module control the filebeat systemd service file or should this be done externally?
The text was updated successfully, but these errors were encountered: