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

FR: Support arbitrary syslog facilities #24

Closed
jaredledvina opened this issue Mar 13, 2017 · 2 comments
Closed

FR: Support arbitrary syslog facilities #24

jaredledvina opened this issue Mar 13, 2017 · 2 comments

Comments

@jaredledvina
Copy link

Due to the log volume from gopassivedns, we'd like to configure it to log to a specific syslog facility to further separate it out from the rest of the system logs. However it seems that,

gopassivedns/log.go

Lines 244 to 283 in aa047e1

case "KERN":
return syslog.LOG_KERN, nil
case "USER":
return syslog.LOG_USER, nil
case "MAIL":
return syslog.LOG_MAIL, nil
case "DAEMON":
return syslog.LOG_DAEMON, nil
case "AUTH":
return syslog.LOG_AUTH, nil
case "SYSLOG":
return syslog.LOG_SYSLOG, nil
case "LPR":
return syslog.LOG_LPR, nil
case "NEWS":
return syslog.LOG_NEWS, nil
case "UUCP":
return syslog.LOG_UUCP, nil
case "CRON":
return syslog.LOG_CRON, nil
case "AUTHPRIV":
return syslog.LOG_AUTHPRIV, nil
case "FTP":
return syslog.LOG_FTP, nil
case "LOCAL0":
return syslog.LOG_LOCAL0, nil
case "LOCAL1":
return syslog.LOG_LOCAL1, nil
case "LOCAL2":
return syslog.LOG_LOCAL2, nil
case "LOCAL3":
return syslog.LOG_LOCAL3, nil
case "LOCAL4":
return syslog.LOG_LOCAL4, nil
case "LOCAL5":
return syslog.LOG_LOCAL5, nil
case "LOCAL6":
return syslog.LOG_LOCAL6, nil
case "LOCAL7":
return syslog.LOG_LOCAL7, nil
restricts the providers.

@Phillipmartin
Copy link
Owner

I'm not sure what you're looking for here. Syslog facilities are defined in https://tools.ietf.org/html/rfc3164, as far as I know you can't add arbitrary new ones. Mostly people handle this by using one of the local* facilities. Could you tell me a little more about what you would like this to look like?

@jaredledvina
Copy link
Author

Ah whoops, I meant to superceed this with #25 but apparently missed actually doing that. Sorry!

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