Skip to main content

CLI Proxy

Logging from the Client

The OBLV CLI Proxy store the logs locally on the client machine. The location of these depends on the operating system as follows:

Logs are stored by default at $HOME/Library/Application Support/oblv/logs.

Configuring Log Levels

The OBLV Deploy CLI Proxy can log at various levels and can be configured as follows:

SettingDescriptionDetails/Values
log levelSupported log levels for logging.error, warn, info, debug, trace
retention periodDuration in days to retain the logs.Specified in days.
max sizeMaximum size of each log file.Specified in MBs.

To update any of the CLI Proxy logging behaviours, leverage the oblv configure sub-command as follows:

oblv configure --config config.yaml log \
--log-level <log level>
--max-size-in-mb <size>
--retaintion-period-in-days <retaintion period>

Below is an example of how to change these logging details:

Updating the Logging Behaviour
oblv configure --config config.yaml log \
--log-level info\
--max-size-in-mb 20\
--retaintion-period-in-days 15
Updated Configuration File
oblvVersion: 0.1.0
usePCRServer: true
enclave:
pcrs:
- PCR0
- PCR1
- PCR2
pcrCheck: true
pcrServer: http://pcrs.oblv-deploy.com
images:
nginx:1.25.3: sha256:c7a6ad68be85142c7fe1089e48faa1e7c7166a194caa9180ddea66345876b9d2
docker.io/fluent/fluent-bit:2.1.10: sha256:5766d881ddb1fdacd9c5b24c9f28371ae22d44faaf3f7a510e5e86e37fd6244f
public.ecr.aws/oblivious-ai/oblv-sample-fastapi:latest: sha256:5adb8754823ba1cc18308dac0d116a48019dc6afe2ea921e60ca0f7df98cf850
oryd/oathkeeper:v0.38.6: sha256:80ac597442d75f8059e6ade47bb42b01bcebbc4f6d1a61237a4402547f6f5f82
plugins:
auth-plugin:
- name: config.yaml
digest: sha256:88eabdcaac2ecd5fe2b59fe8b9a12277c43878db7cd468dfd1b0aeffcbfe0626
- name: rules.json
digest: sha256:619fac4987a4774763b61e45828b7606fdee09893e04d978dd2ef2a319d65ef7
fluentbit-logging:
- name: fluent-bit.yaml
digest: sha256:37e3c0aaa422c9245fe5a39b223f056f023e14dbc855ced8979ea066516148b1
creds:
authCreds:
clientId: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
clientSecret: XXXXXXXXXXXXXXXXXXXXXXXXXX
url: http://auth.your-auth-server.com
grantType: client_credentials
scope: competitor
maxRetries: 18
retryTimeout: 5
log:
logLevel: info
maxSizeInMb: 20
retaintionPeriodInDays: 15