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

Custom logging manifest #89

Merged
merged 2 commits into from
May 2, 2018
Merged

Conversation

ccnifo
Copy link
Collaborator

@ccnifo ccnifo commented Apr 25, 2018

I propose this PR to add a manifest introducing logs customization.
For now, it is just the LOG_TO_SYSLOG parameter, because it's a highly valuable parameter for some log monitoring systems, but could be extended.
I took this chance to replace anchors with contain (compatible with Puppet >= 3.4.0).

Given that logging may have many different configurations, I was wondering if this solution wouldn't be interesting:
having a hash, { param1=value1, param2=value2 } to add to the logging template. That would, for example, allow someone to write

$logging params => { 'SCHEDD_DEBUG' => 'D_NETWORK,D_PROTOCOL', NEGOTIATOR_DEBUG' => 'D_FULLDEBUG', ... }

And in the end, this would be cleanly listed in the /etc/condor/config.d/14_logging.config.
If you agree that's a good change, I will add a commit with this change.

@ccnifo ccnifo force-pushed the logging_parameters branch from 8e31040 to 8315dcc Compare April 25, 2018 14:18
@kreczko
Copy link
Member

kreczko commented May 1, 2018

Thanks a lot for the contribution.
Indeed, the way you propose to add logging parameters looks good to me. I wanted to introduce something similar for some of the other knobs. Looking forward to your solution.

@ccnifo
Copy link
Collaborator Author

ccnifo commented May 2, 2018

Here it is, a hash "param=>value" to take any valid condor parameter/value.

@kreczko
Copy link
Member

kreczko commented May 2, 2018

Thanks!
I will tag a minor version today and one after the merge (need to become more rigurous with versioning)

@kreczko kreczko merged commit 4b40beb into HEP-Puppet:master May 2, 2018
@ccnifo ccnifo deleted the logging_parameters branch May 2, 2018 15:12
README.md Outdated
If you want HTCondor to use custom logging parameters, you may specify `use_custom_logs` and the `logging_parameters` hash with the `{parameter_name => desired_value}` form. For example:
```
use_custom_logs => true,
$logging_parameters => { 'SCHEDD_DEBUG' => 'D_NETWORK,D_PROTOCOL', NEGOTIATOR_DEBUG' => 'D_FULLDEBUG', ... }
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just saw a typo: $logging_parameters should be just logging_parameters. Sorry for that

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

Successfully merging this pull request may close these issues.

2 participants