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

Question: Retain default local config with additional config included #28

Open
anthonysomerset opened this issue Mar 7, 2022 · 2 comments

Comments

@anthonysomerset
Copy link

Hi Team

This is more a generic question on something that is unclear as i start reading the docs and config examples

My desired use case is to keep the default syslog-ng config file to keep the local logging to files intact, then i want to add config to define additional sources/filters and destinations to recieve/parse/forward logs accordingly

is this use case possible out of the box? or would i need to "rebuild" default config manually with the module?

@faxm0dem
Copy link
Member

Let me check

@faxm0dem
Copy link
Member

faxm0dem commented Mar 10, 2022

It seems this is possible, by specifying another configuration file:

class { 'syslog_ng':
  config_file => '/etc/syslog-ng/conf.d/puppet-managed.conf'
}

Just make sure you include that file in your main configuration file.
Please report back if this works. We could include your use-case in the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants