rsyslog should accumulate on all state machines
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
High
|
Wayne Witzel III |
Bug Description
I'm not sure what triggers what machine to forward to, but in HA mode I only see (26-juju-
:syslogtag, startswith, "juju-" @@ip-10-
& ~
Note there are 2 problems.
1) machine-1/2 in HA mode only copy their data to all-machines.log on the local machine, they should *also* forward that data on to the other API servers
2) machine-N only forwards its log to 1 API server. I'm not sure how it figures out which one to write to (it might just be the specific API server that it manages to connect to, or it might be the one that is considered 'master').
Because 'juju debug-log' is tailing /var/log/
Related branches
- Juju Engineering: Pending requested
-
Diff: 142 lines (+46/-38)2 files modifiedutils/syslog/config.go (+34/-27)
utils/syslog/testing/syslogconf.go (+12/-11)
- Juju Engineering: Pending requested
-
Diff: 698 lines (+315/-93)9 files modifiedstate/api/params/params.go (+16/-0)
state/api/rsyslog/rsyslog.go (+60/-6)
state/api/rsyslog/rsyslog_test.go (+57/-13)
state/apiserver/common/interfaces.go (+1/-1)
state/apiserver/rsyslog/config.go (+34/-0)
state/apiserver/rsyslog/rsyslog.go (+65/-2)
state/apiserver/rsyslog/rsyslog_test.go (+48/-11)
worker/rsyslog/rsyslog_test.go (+24/-47)
worker/rsyslog/worker.go (+10/-13)
Changed in juju-core: | |
assignee: | nobody → Wayne Witzel III (wwitzel3) |
Changed in juju-core: | |
status: | Triaged → In Progress |
Changed in juju-core: | |
milestone: | 1.19.1 → 2.0 |
Changed in juju-core: | |
milestone: | 2.0 → 1.20.0 |
Changed in juju-core: | |
milestone: | 1.20.0 → next-stable |
Changed in juju-core: | |
status: | In Progress → Fix Committed |
Changed in juju-core: | |
milestone: | next-stable → 1.19.3 |
Changed in juju-core: | |
milestone: | 1.19.3 → 1.19.4 |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
Now, digging around this page: www.rsyslog. com/sending- messages- to-a-remote- syslog- server/
http://
Seems to say we could just add another line like either: 72-129- 222.eu- west-1. compute. internal: 6514;LongTagFor wardFormat 33-183- 137.eu- west-1. compute. internal: 6514;LongTagFor wardFormat
:syslogtag, startswith, "juju-" @@ip-10-
& @@ip-10-
Or 72-129- 222.eu- west-1. compute. internal: 6514;LongTagFor wardFormat 33-183- 137.eu- west-1. compute. internal: 6514;LongTagFor wardFormat
:syslogtag, startswith, "juju-" @@ip-10-
:syslogtag, startswith, "juju-" @@ip-10-
or something like that. However, I couldn't actually see it logging to 2 machines.
Note that I *did* see it logging to machine-0, so the data is still at least slightly correct.