Skip to content

Commit

Permalink
Cleanup local system Fixes #1 (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Faircloth authored and GitHub committed Jul 1, 2019
1 parent 41a6c04 commit a6e7be6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 47 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,6 @@ tags
# Persistent undo
[._]*.un~

/test-results
/test-results/
/.idea/workspace.xml
/.idea/tasks.xml
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 0 additions & 45 deletions package/etc/syslog-ng.conf
Original file line number Diff line number Diff line change
Expand Up @@ -40,48 +40,3 @@ source s_sys {
internal();
};

# ===============================================================================================
# Local System destinations
# ===============================================================================================

destination d_cons { file("/dev/console"); };
destination d_mesg { file("/var/log/syslog-ng/messages"); };
destination d_auth { file("/dev/shm/secure"); };
destination d_mail { file("/dev/shm/maillog" flush_lines(10)); };
destination d_spol { file("/dev/shm/spooler"); };
destination d_boot { file("/dev/shm/boot.log"); };
destination d_cron { file("/dev/shm/cron"); };
destination d_kern { file("/dev/shm/kern"); };
destination d_mlal { usertty("*"); };
destination d_syslog { file("/var/log/syslog"); };

# ===============================================================================================
# Local System filters
# ===============================================================================================

filter f_kernel { facility(kern); };
filter f_default { level(info..emerg) and
not (facility(mail)
or facility(authpriv)
or facility(cron)); };
filter f_auth { facility(authpriv); };
filter f_mail { facility(mail); };
filter f_emergency { level(emerg); };
filter f_news { facility(uucp) or
(facility(news)
and level(crit..emerg)); };
filter f_boot { facility(local7); };
filter f_cron { facility(cron); };

# ===============================================================================================
# Local System Logging
# ===============================================================================================

log { source(s_sys); filter(f_kernel); destination(d_kern); };
log { source(s_sys); filter(f_default); destination(d_mesg); };
log { source(s_sys); filter(f_auth); destination(d_auth); };
log { source(s_sys); filter(f_mail); destination(d_mail); };
log { source(s_sys); filter(f_emergency); destination(d_mlal); };
log { source(s_sys); filter(f_news); destination(d_spol); };
log { source(s_sys); filter(f_boot); destination(d_boot); };
log { source(s_sys); filter(f_cron); destination(d_cron); };

0 comments on commit a6e7be6

Please sign in to comment.