papertrail / remote_syslog2

To install, see "Releases" tab. Self-contained daemon for reading local files and emitting remote syslog (without using local syslogd).
http://help.papertrailapp.com/
MIT License
637 stars 157 forks source link

Facility from ConfigFile seems to be missing #165

Closed Jaciones closed 8 years ago

Jaciones commented 8 years ago

I am trying to set the facility from a config file(log_files.yml) and it seems like it's ignored. When looking at the code, it seems like the ConfigFile (https://github.com/papertrail/remote_syslog2/blob/3284094ffe60217df568598d217f094a1b472664/config_manager.go) doesn't even contain the facility.

Is the only way to set the facility is as a command line parameter on the init.d script? That seems like it should be something settable via config.

johlym commented 8 years ago

Hi @Jaciones. With how remote_syslog2 works and the purpose it serves (piping the contents of log files to Papertrail), setting the facility doesn't really add any value so far as I can tell. Each log file is considered a separate program and the host it runs is the sender, but that's it.

It's entirely possible I'm missing something you're seeing or coming up with so if that's the case, let me know. :)