1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 06:51:10 +03:00
awx/installer/roles/kubernetes/templates
Ryan Petrello e52cebc28e rsyslogd: use %rawmsg-after-pri% instead of %msg%
after some prolonged RFC reading and tinkering w/ rsyslogd...

cpython's SysLogHandler doesn't emit RFC3164 formatted messages
in the format you'd expect; it's missing the ISO date, hostname, etc...
along with other header values; the handler implementation relies on you
to specify a syslog-like formatter (we've replaced all of this with our
own *custom* logstash-esque formatter that effectively outputs valid JSON
- without dates and other syslog header values prepended)

because of this unanticipated format, rsyslogd chokes when trying to
parse the message's parts;  AWX is emitting:

<priority>RAWJSON

...so the usage of `%msg%` isn't going to work for us, because rsyslog
tries to parse *all* of the possible headers (and yells, because it
can't find a date to parse):

see: https://www.rsyslog.com/files/temp/doc-indent/configuration/properties.html#message-properties

this is fine, because we don't *need* any of that message parsing
anyways; in the end, we're *just* interested in forwarding the raw
JSON/text content to the third party log handler
2020-04-13 11:44:00 -04:00
..
configmap.yml.j2 switch memcached from tcp to unix domain socket 2020-04-06 08:35:12 -04:00
credentials.py.j2 autogenerate websocket secret 2020-03-26 10:32:37 -04:00
deployment.yml.j2 rsyslogd: use %rawmsg-after-pri% instead of %msg% 2020-04-13 11:44:00 -04:00
environment.sh.j2 switch memcached from tcp to unix domain socket 2020-04-06 08:35:12 -04:00
launch_awx.yml.j2 align with configmap changes 2020-04-02 20:05:26 -04:00
management-pod.yml.j2 Initial migration of rabbitmq -> redis for k8s installs 2020-03-18 16:10:17 -04:00
postgresql-persistent.yml.j2 Pull in downstream changes to k8s installer 2019-12-02 08:12:51 -05:00
postgresql-values.yml.j2 Configurable image registry and service account for Postgres deployment. 2019-11-20 14:15:59 +01:00
secret.yml.j2 Initial migration of rabbitmq -> redis for k8s installs 2020-03-18 16:10:17 -04:00
supervisor.yml.j2 align with configmap changes 2020-04-02 20:05:26 -04:00