Skip to content

GCP Ops Agent Logging

Things we may implement:

Jonne was unsure if this is wise, as we get a lot of spam too these logs. This snippet has not been tested yet.

logging:
  receivers:
    ...
    ...
    supervisor_logs:
      type: files
      include_paths:
        - /tmp/tms-*.attracs.com-*-supervisor*.log
      exclude_paths:
        - /tmp/*supervisor*.log.[1-9]*

Idea for this part is to avoid any possibility of duplicates.

      exclude_paths:
        - /tmp/*supervisor*.log.[1-9]*

The ops-agent should handle duplicates by itself, I added this just in case. Potentially without this the ops-agent could retrieve logs that weren't sent due to some kind of disruption to GCP that were then moved to blabla.log.1 during a log rotation.