Skip to content

Commit

Permalink
tweaks to syslog-ng to remove /dev/console failure spam
Browse files Browse the repository at this point in the history
  • Loading branch information
bretton committed Jul 22, 2021
1 parent 48bb2a6 commit b81d7e2
Show file tree
Hide file tree
Showing 14 changed files with 105 additions and 42 deletions.
6 changes: 6 additions & 0 deletions consul-tls/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
0.0.12

* Clearing syslog-ng /dev/console entries to remove log spam

---

0.0.11

* Updates to syslog-ng and standardising cert.pem key.pem ca.pem
Expand Down
15 changes: 9 additions & 6 deletions consul-tls/consul-tls.d/syslog-ng.conf
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ destination newserr { file("/var/log/news/news.err"); };
destination newsnotice { file("/var/log/news/news.notice"); };
destination slip { file("/var/log/slip.log"); };
destination ppp { file("/var/log/ppp.log"); };
destination console { file("/dev/console"); };
#destination console { file("/dev/console"); };
destination allusers { usertty("*"); };
# pot settings
destination loghost {
Expand Down Expand Up @@ -92,11 +92,14 @@ filter f_ppp { program("ppp"); };
# filter all
filter f_all { level(debug..emerg) and not (program("devd") and level(debug..info) ); };

# *.err;kern.warning;auth.notice;mail.crit /dev/console
log { source(src); filter(f_err); destination(console); };
log { source(src); filter(f_kern); filter(f_warning); destination(console); };
log { source(src); filter(f_auth); filter(f_notice); destination(console); };
log { source(src); filter(f_mail); filter(f_crit); destination(console); };
## *.err;kern.warning;auth.notice;mail.crit /dev/console
# removing to remove
# "syslog-ng[000]: Error opening file for writing; filename='/dev/console', error='No such file or directory (2)'"
# from spamming logs in jails
#log { source(src); filter(f_err); destination(console); };
#log { source(src); filter(f_kern); filter(f_warning); destination(console); };
#log { source(src); filter(f_auth); filter(f_notice); destination(console); };
#log { source(src); filter(f_mail); filter(f_crit); destination(console); };

# *.notice;authpriv.none;kern.debug;lpr.info;mail.crit /var/log/messages
log { source(src); filter(f_notice); filter(f_not_authpriv); destination(messages); };
Expand Down
6 changes: 6 additions & 0 deletions influxdb/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
0.0.4

* Clearing syslog-ng /dev/console entries to remove log spam

---

0.0.3

* Updates to syslog-ng and standardised cert.pem key.pem ca.pem
Expand Down
15 changes: 9 additions & 6 deletions influxdb/influxdb.d/syslog-ng.conf
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ destination newserr { file("/var/log/news/news.err"); };
destination newsnotice { file("/var/log/news/news.notice"); };
destination slip { file("/var/log/slip.log"); };
destination ppp { file("/var/log/ppp.log"); };
destination console { file("/dev/console"); };
#destination console { file("/dev/console"); };
destination allusers { usertty("*"); };
# pot settings
destination loghost {
Expand Down Expand Up @@ -92,11 +92,14 @@ filter f_ppp { program("ppp"); };
# filter all
filter f_all { level(debug..emerg) and not (program("devd") and level(debug..info) ); };

# *.err;kern.warning;auth.notice;mail.crit /dev/console
log { source(src); filter(f_err); destination(console); };
log { source(src); filter(f_kern); filter(f_warning); destination(console); };
log { source(src); filter(f_auth); filter(f_notice); destination(console); };
log { source(src); filter(f_mail); filter(f_crit); destination(console); };
## *.err;kern.warning;auth.notice;mail.crit /dev/console
# removing to remove
# "syslog-ng[000]: Error opening file for writing; filename='/dev/console', error='No such file or directory (2)'"
# from spamming logs in jails
#log { source(src); filter(f_err); destination(console); };
#log { source(src); filter(f_kern); filter(f_warning); destination(console); };
#log { source(src); filter(f_auth); filter(f_notice); destination(console); };
#log { source(src); filter(f_mail); filter(f_crit); destination(console); };

# *.notice;authpriv.none;kern.debug;lpr.info;mail.crit /var/log/messages
log { source(src); filter(f_notice); filter(f_not_authpriv); destination(messages); };
Expand Down
6 changes: 6 additions & 0 deletions loki/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
0.0.7

* Clearing syslog-ng /dev/console entries to remove log spam

---

0.0.6

* Added max connections option for syslog-ng, standardised cert.pem key.pem ca.pem for certificate filenames
Expand Down
15 changes: 9 additions & 6 deletions loki/loki.d/syslog-ng.conf
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ destination newscrit { file("/var/log/news/news.crit"); };
destination newserr { file("/var/log/news/news.err"); };
destination newsnotice { file("/var/log/news/news.notice"); };
destination ppp { file("/var/log/ppp.log"); };
destination console { file("/dev/console"); };
#destination console { file("/dev/console"); };
destination allusers { usertty("*"); };
# pot settings
destination lokilogs { file("/mnt/logs/$HOST.log"); };
Expand Down Expand Up @@ -112,11 +112,14 @@ filter f_ppp { program("ppp"); };
# all filter
filter f_all { level(debug..emerg) and not (program("devd") and level(debug..info)); };

# *.err;kern.warning;auth.notice;mail.crit /dev/console
log { source(src); filter(f_err); destination(console); };
log { source(src); filter(f_kern); filter(f_warning); destination(console); };
log { source(src); filter(f_auth); filter(f_notice); destination(console); };
log { source(src); filter(f_mail); filter(f_crit); destination(console); };
## *.err;kern.warning;auth.notice;mail.crit /dev/console
# removing to remove
# "syslog-ng[000]: Error opening file for writing; filename='/dev/console', error='No such file or directory (2)'"
# from spamming logs in jails
#log { source(src); filter(f_err); destination(console); };
#log { source(src); filter(f_kern); filter(f_warning); destination(console); };
#log { source(src); filter(f_auth); filter(f_notice); destination(console); };
#log { source(src); filter(f_mail); filter(f_crit); destination(console); };

# *.notice;authpriv.none;kern.debug;lpr.info;mail.crit /var/log/messages
log { source(src); filter(f_notice); filter(f_not_authpriv); destination(messages); };
Expand Down
6 changes: 6 additions & 0 deletions nomad-server-tls/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
0.9.13

* Clearing syslog-ng /dev/console entries to remove log spam

---

0.9.12

* Updates to syslog-ng and standardised cert.pem key.pem ca.pem
Expand Down
15 changes: 9 additions & 6 deletions nomad-server-tls/nomad-server-tls.d/syslog-ng.conf
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ destination newserr { file("/var/log/news/news.err"); };
destination newsnotice { file("/var/log/news/news.notice"); };
destination slip { file("/var/log/slip.log"); };
destination ppp { file("/var/log/ppp.log"); };
destination console { file("/dev/console"); };
#destination console { file("/dev/console"); };
destination allusers { usertty("*"); };
# pot settings
destination loghost {
Expand Down Expand Up @@ -92,11 +92,14 @@ filter f_ppp { program("ppp"); };
# filter all
filter f_all { level(debug..emerg) and not (program("devd") and level(debug..info) ); };

# *.err;kern.warning;auth.notice;mail.crit /dev/console
log { source(src); filter(f_err); destination(console); };
log { source(src); filter(f_kern); filter(f_warning); destination(console); };
log { source(src); filter(f_auth); filter(f_notice); destination(console); };
log { source(src); filter(f_mail); filter(f_crit); destination(console); };
## *.err;kern.warning;auth.notice;mail.crit /dev/console
# removing to remove
# "syslog-ng[000]: Error opening file for writing; filename='/dev/console', error='No such file or directory (2)'"
# from spamming logs in jails
#log { source(src); filter(f_err); destination(console); };
#log { source(src); filter(f_kern); filter(f_warning); destination(console); };
#log { source(src); filter(f_auth); filter(f_notice); destination(console); };
#log { source(src); filter(f_mail); filter(f_crit); destination(console); };

# *.notice;authpriv.none;kern.debug;lpr.info;mail.crit /var/log/messages
log { source(src); filter(f_notice); filter(f_not_authpriv); destination(messages); };
Expand Down
6 changes: 6 additions & 0 deletions postgresql-patroni/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2.0.11

* Clearing syslog-ng /dev/console entries to remove log spam

---

2.0.10

* Fixing typo in copy-in, future-proofing
Expand Down
15 changes: 9 additions & 6 deletions postgresql-patroni/postgresql-patroni.d/syslog-ng.conf
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ destination newserr { file("/var/log/news/news.err"); };
destination newsnotice { file("/var/log/news/news.notice"); };
destination slip { file("/var/log/slip.log"); };
destination ppp { file("/var/log/ppp.log"); };
destination console { file("/dev/console"); };
#destination console { file("/dev/console"); };
destination allusers { usertty("*"); };
# pot settings
destination loghost {
Expand Down Expand Up @@ -92,11 +92,14 @@ filter f_ppp { program("ppp"); };
# filter all
filter f_all { level(debug..emerg) and not (program("devd") and level(debug..info) ); };

# *.err;kern.warning;auth.notice;mail.crit /dev/console
log { source(src); filter(f_err); destination(console); };
log { source(src); filter(f_kern); filter(f_warning); destination(console); };
log { source(src); filter(f_auth); filter(f_notice); destination(console); };
log { source(src); filter(f_mail); filter(f_crit); destination(console); };
## *.err;kern.warning;auth.notice;mail.crit /dev/console
# removing to remove
# "syslog-ng[000]: Error opening file for writing; filename='/dev/console', error='No such file or directory (2)'"
# from spamming logs in jails
#log { source(src); filter(f_err); destination(console); };
#log { source(src); filter(f_kern); filter(f_warning); destination(console); };
#log { source(src); filter(f_auth); filter(f_notice); destination(console); };
#log { source(src); filter(f_mail); filter(f_crit); destination(console); };

# *.notice;authpriv.none;kern.debug;lpr.info;mail.crit /var/log/messages
log { source(src); filter(f_notice); filter(f_not_authpriv); destination(messages); };
Expand Down
6 changes: 6 additions & 0 deletions prometheus/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
0.9.13

* Clearing syslog-ng /dev/console entries to remove log spam

---

0.9.12

* Updates to syslog-ng and standardising cert.pem key.pem ca.pem
Expand Down
15 changes: 9 additions & 6 deletions prometheus/prometheus.d/syslog-ng.conf
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ destination newserr { file("/var/log/news/news.err"); };
destination newsnotice { file("/var/log/news/news.notice"); };
destination slip { file("/var/log/slip.log"); };
destination ppp { file("/var/log/ppp.log"); };
destination console { file("/dev/console"); };
#destination console { file("/dev/console"); };
destination allusers { usertty("*"); };
# pot settings
destination loghost {
Expand Down Expand Up @@ -92,11 +92,14 @@ filter f_ppp { program("ppp"); };
# filter all
filter f_all { level(debug..emerg) and not (program("devd") and level(debug..info) ); };

# *.err;kern.warning;auth.notice;mail.crit /dev/console
log { source(src); filter(f_err); destination(console); };
log { source(src); filter(f_kern); filter(f_warning); destination(console); };
log { source(src); filter(f_auth); filter(f_notice); destination(console); };
log { source(src); filter(f_mail); filter(f_crit); destination(console); };
## *.err;kern.warning;auth.notice;mail.crit /dev/console
# removing to remove
# "syslog-ng[000]: Error opening file for writing; filename='/dev/console', error='No such file or directory (2)'"
# from spamming logs in jails
#log { source(src); filter(f_err); destination(console); };
#log { source(src); filter(f_kern); filter(f_warning); destination(console); };
#log { source(src); filter(f_auth); filter(f_notice); destination(console); };
#log { source(src); filter(f_mail); filter(f_crit); destination(console); };

# *.notice;authpriv.none;kern.debug;lpr.info;mail.crit /var/log/messages
log { source(src); filter(f_notice); filter(f_not_authpriv); destination(messages); };
Expand Down
6 changes: 6 additions & 0 deletions vault/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2.0.26

* Clearing syslog-ng /dev/console entries to remove log spam

---

2.0.25

* Updating syslog-ng and standardised cert.pem key.pem ca.pem
Expand Down
15 changes: 9 additions & 6 deletions vault/vault.d/syslog-ng.conf
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ destination newserr { file("/var/log/news/news.err"); };
destination newsnotice { file("/var/log/news/news.notice"); };
destination slip { file("/var/log/slip.log"); };
destination ppp { file("/var/log/ppp.log"); };
destination console { file("/dev/console"); };
#destination console { file("/dev/console"); };
destination allusers { usertty("*"); };
# pot settings
destination loghost {
Expand Down Expand Up @@ -92,11 +92,14 @@ filter f_ppp { program("ppp"); };
# filter all
filter f_all { level(debug..emerg) and not (program("devd") and level(debug..info) ); };

# *.err;kern.warning;auth.notice;mail.crit /dev/console
log { source(src); filter(f_err); destination(console); };
log { source(src); filter(f_kern); filter(f_warning); destination(console); };
log { source(src); filter(f_auth); filter(f_notice); destination(console); };
log { source(src); filter(f_mail); filter(f_crit); destination(console); };
## *.err;kern.warning;auth.notice;mail.crit /dev/console
# removing to remove
# "syslog-ng[000]: Error opening file for writing; filename='/dev/console', error='No such file or directory (2)'"
# from spamming logs in jails
#log { source(src); filter(f_err); destination(console); };
#log { source(src); filter(f_kern); filter(f_warning); destination(console); };
#log { source(src); filter(f_auth); filter(f_notice); destination(console); };
#log { source(src); filter(f_mail); filter(f_crit); destination(console); };

# *.notice;authpriv.none;kern.debug;lpr.info;mail.crit /var/log/messages
log { source(src); filter(f_notice); filter(f_not_authpriv); destination(messages); };
Expand Down

0 comments on commit b81d7e2

Please sign in to comment.