| 1 |
# |
| 2 |
# Copyright 2022 Google LLC |
| 3 |
# |
| 4 |
# Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 |
# you may not use this file except in compliance with the License. |
| 6 |
# You may obtain a copy of the License at |
| 7 |
# |
| 8 |
# https://www.apache.org/licenses/LICENSE-2.0 |
| 9 |
# |
| 10 |
# Unless required by applicable law or agreed to in writing, software |
| 11 |
# distributed under the License is distributed on an "AS IS" BASIS, |
| 12 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 |
# See the License for the specific language governing permissions and |
| 14 |
# limitations under the License. |
| 15 |
# |
| 16 |
|
| 17 |
# Forked from https://cos.googlesource.com/cos/overlays/board-overlays/+/refs/heads/master/project-lakitu/app-admin/fluent-bit/files/fluent-bit.conf |
| 18 |
|
| 19 |
[SERVICE] |
| 20 |
# Flush |
| 21 |
# ===== |
| 22 |
# set an interval of seconds before to flush records to a destination |
| 23 |
flush 1 |
| 24 |
# Daemon |
| 25 |
# ====== |
| 26 |
# instruct Fluent Bit to run in foreground or background mode. |
| 27 |
daemon Off |
| 28 |
# Log_Level |
| 29 |
# ========= |
| 30 |
# Set the verbosity level of the service, values can be: |
| 31 |
# |
| 32 |
# - error |
| 33 |
# - warning |
| 34 |
# - info |
| 35 |
# - debug |
| 36 |
# - trace |
| 37 |
# |
| 38 |
# by default 'info' is set, that means it includes 'error' and 'warning'. |
| 39 |
log_level info |
| 40 |
# Storage |
| 41 |
# ======= |
| 42 |
# Fluent Bit can use memory and filesystem buffering based mechanisms |
| 43 |
# |
| 44 |
# - https://docs.fluentbit.io/manual/administration/buffering-and-storage |
| 45 |
# |
| 46 |
# storage metrics |
| 47 |
# --------------- |
| 48 |
# publish storage pipeline metrics in '/api/v1/storage'. The metrics are |
| 49 |
# exported only if the 'http_server' option is enabled. |
| 50 |
# |
| 51 |
storage.metrics on |
| 52 |
|
| 53 |
# Collects CS launcher and workload logs. |
| 54 |
[INPUT] |
| 55 |
Name systemd |
| 56 |
Tag confidential-space-launcher |
| 57 |
Systemd_Filter _SYSTEMD_UNIT=container-runner.service |
| 58 |
DB /var/log/google-fluentbit/container-runner.log.db |
| 59 |
Read_From_Tail False |
| 60 |
|
| 61 |
[OUTPUT] |
| 62 |
Name stackdriver |
| 63 |
Match * |
| 64 |
Resource gce_instance |
| 65 |
severity_key severity |