How have people implemented Production Access Controls (i.e. logging and reporting on access to compute instances by services and humans over SSH). Our goal is to forward all user logon entries to our SIEM consistently across projects and ideally avoid having project specific Stackdriver sinks (and associated setup and maintenance).
We've tried the following:
- Enabled auth log forwarding in Fluentd as only syslog is done by default
- Enabled organization level sinks that send to a topic (to forward on to SIEM via HTTP subscriber) that include all children
- Can see syslog/auth at the project level for non-Container OS images (i.e. Ubuntu)
Issues we're seeing: - Limited documentation on filter format at org level (seems to differ from project level for things like logName). log_id function does appear to work - Some log types appear at the org level (things like cloudapis activity) but syslog does not appear to get processed - Container OS appears to not enable ssh/sudo forwarding by default in fluentd (or I haven't found which log type has this data). I do see this logged to journalctl on a test node
Does anyone have a consistent way to achieve this?
/var/log/auth.logto Stackdriver for the instances that you are monitoring. serverfault.com/a/955094/437769 - John Hanley