Skip to content

Feature Request: Support JSON log format (OP_LOG_FORMAT=json) #108

@sebastianbuechler

Description

@sebastianbuechler

Feature Request

Add support for JSON-formatted logs via an environment variable like OP_LOG_FORMAT=json.

Problem

When running 1Password Connect on GKE/GCP, Cloud Logging cannot properly parse log severity
from the current log format. All logs appear with incorrect severity levels (e.g., INFO logs
showing as ERROR). Additionally, multi-line logs get split into separate entries.

Proposed Solution

Add an OP_LOG_FORMAT environment variable with options:

  • text (default, current behavior)
  • json (structured JSON output)

JSON format would allow cloud logging services to properly parse severity and keep
multi-line messages together.

Use Case

Kubernetes deployments on cloud platforms (GCP, AWS, Azure) that rely on structured
logging for log aggregation and alerting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions