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

Pass --quiet to command-line arguments in systemd service file #867

Closed
kamusin opened this issue Aug 19, 2017 · 5 comments
Closed

Pass --quiet to command-line arguments in systemd service file #867

kamusin opened this issue Aug 19, 2017 · 5 comments
Labels
bug Something isn't working
Milestone

Comments

@kamusin
Copy link

kamusin commented Aug 19, 2017

  • Module version: 5.3.1
  • Puppet version: 4.10
  • OS and version: Ubuntu 16.04

Bug description

We have just upgraded all our stacks from version 0.16 to 5.3.1 recently, and so far so good. In addition to that, we upgraded our base system from Ubuntu 14.04 to 16.04, and this brought us a problem in our client nodes. Since they have just a few gigs of space on their root partition, and if the log activity gets really intense, we are filling up our disk quite quickly. This change is due to systemd configuration, to be more precise it comes from elasticsearch.systemd.erb file and those two lines:

+StandardOutput=journal
+StandardError=inherit

Those two lines are flooding the syslog.conf file with elasticsearch data. Would be possible to add an option to control this behaviour?

Thanks again for keeping this awesome module and the good work,
cheers!

[1]https://discuss.elastic.co/t/prevent-logging-to-var-log-messages/54199

@jasontedor
Copy link

I think this is a case of the systemd unit file not tracking upstream: ExecStart should contain --quiet and currently it does not.

@jasontedor
Copy link

Which means I think that there is a workaround available to you: I think that that opt_flags there means that you can work in --quiet today, until a fix is available.

@kamusin
Copy link
Author

kamusin commented Aug 19, 2017

sweet, I will have a go with this in the meantime

@tylerjl tylerjl added the bug Something isn't working label Aug 21, 2017
@tylerjl
Copy link
Contributor

tylerjl commented Aug 21, 2017

Yep, this just needs to be synced with the upstream unit, I'll revisit the unit file to ensure this and other options are up-to-date (related to elastic/elasticsearch#26246)

tylerjl added a commit to tylerjl/puppet-elasticsearch that referenced this issue Aug 21, 2017
@tylerjl tylerjl changed the title Disable logging output systemd Pass --quiet to command-line arguments in systemd service file Aug 21, 2017
@tylerjl tylerjl added this to the Next Release milestone Aug 21, 2017
@kamusin
Copy link
Author

kamusin commented Aug 22, 2017

thanks a lot!

cegeka-jenkins pushed a commit to cegeka/puppet-elasticsearch that referenced this issue Oct 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants