Skip to content

Instantly share code, notes, and snippets.

@littleq0903
Created May 12, 2022 03:57
Show Gist options
  • Save littleq0903/b9a0b3ade37cfba8286f4f4e6b440e1c to your computer and use it in GitHub Desktop.
Save littleq0903/b9a0b3ade37cfba8286f4f4e6b440e1c to your computer and use it in GitHub Desktop.
BBGO google-cloud-ops-agent config.yaml
logging:
receivers:
bbgo:
type: files
include_paths:
- /var/log/bbgo.log
processors:
bbgo_proc:
type: parse_regex
field: msg
regex: '^time="(?<time>[^"]*)" level=(?<level>\w*) msg="(?<msg>[^"]*)".*$'
time_key: time
time_format: "%Y-%m-%dT%H:%M:%SZ"
service:
pipelines:
bbgo_pipeline:
receivers: [bbgo]
processors: [bbgo_proc]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment